From 1352be99993acd931d869feca1b35b26942df6a7 Mon Sep 17 00:00:00 2001 From: TaylorBeeston <39720479+TaylorBeeston@users.noreply.github.com> Date: Fri, 19 Dec 2025 20:16:14 +0000 Subject: [PATCH] Update python-client SDK to version 3.9.0 --- .../python-client/.gitignore | 2 +- .../python-client/.openapi-generator/FILES | 891 +- .../python-client/.openapi-generator/VERSION | 2 +- .../python-client/README.md | 400 +- .../python-client/docs/AppStoreAdminApi.md | 339 + .../AppStoreAdminGetAllListingsRequest.md | 31 + ...AppStoreAdminUpdateListingStatusRequest.md | 29 + ...ppStoreAdminUpdatePromotionLevelRequest.md | 29 + .../python-client/docs/AppStoreApi.md | 1217 +++ .../docs/AppStoreBrowseListedAppsRequest.md | 32 + .../docs/AppStoreCreateListingRequest.md | 30 + .../AppStoreCreateListingRequestListing.md | 43 + .../AppStoreGetInstalledApps200Response.md | 31 + ...GetInstalledApps200ResponseRecordsInner.md | 47 + .../docs/AppStoreGetListing200Response.md | 46 + ...oreGetListingsForIntegration200Response.md | 31 + ...gsForIntegration200ResponseRecordsInner.md | 46 + ...ppStoreGetListingsForIntegrationRequest.md | 30 + .../docs/AppStoreUpdateListingRequest.md | 29 + .../AppStoreUpdateListingRequestUpdates.md | 43 + .../AuthGrantsGetAuthGrantsRequestQuery.md | 6 +- .../docs/BoostAlignBoostSkillsRequest.md | 30 + ...BoostAlignBoostSkillsRequestSkillsInner.md | 30 + .../BoostAttachFrameworkToBoostRequest.md | 30 + .../docs/BoostClaimBoostWithLinkRequest.md | 30 + .../docs/BoostCountBoostChildrenRequest.md | 2 +- .../docs/BoostCountBoostParentsRequest.md | 31 + .../docs/BoostCountFamilialBoostsRequest.md | 4 +- .../docs/BoostCreateBoostRequest.md | 2 + ...BoostCreateBoostRequestClaimPermissions.md | 2 +- .../docs/BoostCreateBoostRequestCredential.md | 14 +- .../BoostCreateBoostRequestCredentialAnyOf.md | 12 +- .../docs/BoostCreateChildBoostRequest.md | 3 +- .../docs/BoostCreateChildBoostRequestBoost.md | 38 + .../BoostDetachFrameworkFromBoostRequest.md | 30 + .../docs/BoostGetBoost200Response.md | 3 +- .../docs/BoostGetBoost200ResponseBoost.md | 45 + .../BoostGetBoost200ResponseBoostIssuer.md | 49 + ...oostGetBoost200ResponseBoostIssuerAnyOf.md | 49 + ...Boost200ResponseBoostIssuerAnyOfAddress.md | 37 + ...st200ResponseBoostIssuerAnyOfAddressGeo.md | 31 + ...etBoost200ResponseBoostIssuerAnyOfImage.md | 31 + ...st200ResponseBoostIssuerAnyOfImageAnyOf.md | 31 + ...nseBoostIssuerAnyOfOtherIdentifierInner.md | 31 + ...oostGetBoost200ResponseClaimPermissions.md | 2 +- ...stGetBoost200ResponseDefaultPermissions.md | 40 + .../docs/BoostGetBoostAdmins200Response.md | 2 +- ...BoostGetBoostAlignments200ResponseInner.md | 33 + .../docs/BoostGetBoostChildrenRequest.md | 2 +- .../BoostGetBoostFrameworks200Response.md | 31 + ...tBoostFrameworks200ResponseRecordsInner.md | 36 + .../docs/BoostGetBoostFrameworksRequest.md | 32 + .../BoostGetBoostFrameworksRequestQuery.md | 34 + ...oostGetBoostFrameworksRequestQueryAnyOf.md | 29 + ...BoostFrameworksRequestQueryAnyOfOrInner.md | 33 + .../docs/BoostGetBoostParentsRequest.md | 34 + ...ostGetBoostRecipients200ResponseInnerTo.md | 3 + ...BoostRecipientsWithChildrenCountRequest.md | 33 + ...ChildrenCountRequestNumberOfGenerations.md | 28 + .../docs/BoostGetBoosts200ResponseInner.md | 1 + .../docs/BoostGetBoostsRequestQuery.md | 13 +- .../docs/BoostGetBoostsRequestQueryAnyOf.md | 29 + .../BoostGetBoostsRequestQueryAnyOfOrInner.md | 35 + ...GetBoostsRequestQueryAnyOfOrInnerStatus.md | 29 + ...ostsRequestQueryAnyOfOrInnerStatusAnyOf.md | 29 + .../docs/BoostGetBoostsRequestQueryStatus.md | 29 - .../BoostGetBoostsRequestQueryStatusAnyOf.md | 29 - .../docs/BoostGetBoostsRequestQueryUri.md | 30 - .../BoostGetBoostsRequestQueryUriAnyOf.md | 29 - .../BoostGetBoostsRequestQueryUriAnyOf1.md | 29 - ...BoostGetBoostsRequestQueryUriAnyOfAnyOf.md | 29 - ...tGetChildrenProfileManagersRequestQuery.md | 10 +- .../docs/BoostGetFamilialBoostsRequest.md | 4 +- ...tGetPaginatedBoostRecipients200Response.md | 2 +- ...dBoostRecipients200ResponseRecordsInner.md | 32 + ...oostRecipients200ResponseRecordsInnerTo.md | 47 + ...ipients200ResponseRecordsInnerToDisplay.md | 40 + ...GetPaginatedBoostRecipientsRequestQuery.md | 14 +- ...dBoostRecipientsWithChildren200Response.md | 31 + ...entsWithChildren200ResponseRecordsInner.md | 33 + ...natedBoostRecipientsWithChildrenRequest.md | 36 + ...sWithChildrenRequestNumberOfGenerations.md | 28 + ...tPaginatedBoosts200ResponseRecordsInner.md | 1 + ...SkillsAvailableForBoost200ResponseInner.md | 30 + ...ilableForBoost200ResponseInnerFramework.md | 36 + ...ableForBoost200ResponseInnerSkillsInner.md | 36 + .../docs/BoostRemoveBoostAdminRequest.md | 30 + .../docs/BoostRemoveBoostParentRequest.md | 30 + ...earchSkillsAvailableForBoost200Response.md | 31 + ...vailableForBoost200ResponseRecordsInner.md | 36 + ...ostSearchSkillsAvailableForBoostRequest.md | 32 + ...archSkillsAvailableForBoostRequestQuery.md | 35 + ...killsAvailableForBoostRequestQueryAnyOf.md | 29 + ...illsAvailableForBoostRequestQueryAnyOf1.md | 34 + ...ailableForBoostRequestQueryAnyOfOrInner.md | 34 + ...lableForBoostRequestQueryAnyOfOrInnerId.md | 31 + ...ForBoostRequestQueryAnyOfOrInnerIdAnyOf.md | 30 + ...orBoostRequestQueryAnyOfOrInnerIdAnyOf1.md | 29 + ...RequestQueryAnyOfOrInnerIdAnyOf1OrInner.md | 30 + ...stQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md | 29 + ...tQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md | 29 + ...yAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md | 28 + ...ryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md | 29 + ...ostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md | 29 + ...stRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md | 29 + ...uestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md | 28 + ...questQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md | 29 + ...rBoostRequestQueryAnyOfOrInnerStatement.md | 31 + ...eForBoostRequestQueryAnyOfOrInnerStatus.md | 29 + ...oostRequestQueryAnyOfOrInnerStatusAnyOf.md | 29 + .../docs/BoostSend200Response.md | 31 + .../BoostSendBoostRequestCredentialAnyOf.md | 2 +- ...dentialAnyOfCredentialSchemaAnyOf1Inner.md | 30 + ...tRequestCredentialAnyOfCredentialStatus.md | 2 +- ...estCredentialAnyOfCredentialStatusAnyOf.md | 30 - ...entialAnyOfCredentialSubjectAnyOf1Inner.md | 29 + ...SendBoostRequestCredentialAnyOfEvidence.md | 7 +- ...oostRequestCredentialAnyOfEvidenceAnyOf.md | 7 +- ...questCredentialAnyOfEvidenceAnyOf1Inner.md | 35 + ...tRequestCredentialAnyOfProofAnyOf1Inner.md | 36 + ...redentialAnyOfRefreshServiceAnyOf1Inner.md | 30 + ...ndBoostRequestCredentialAnyOfTermsOfUse.md | 2 +- ...stRequestCredentialAnyOfTermsOfUseAnyOf.md | 30 - .../python-client/docs/BoostSendRequest.md | 34 + .../docs/BoostSendRequestTemplate.md | 39 + ...oostSendRequestTemplateClaimPermissions.md | 40 + .../BoostSendRequestTemplateCredential.md | 46 + ...BoostSendRequestTemplateCredentialAnyOf.md | 46 + ...oostSendRequestTemplateCredentialAnyOf1.md | 45 + ...uestTemplateCredentialAnyOfContextInner.md | 28 + ...emplateCredentialAnyOfCredentialSubject.md | 29 + ...dRequestTemplateCredentialAnyOfEvidence.md | 35 + ...endRequestTemplateCredentialAnyOfIssuer.md | 49 + ...questTemplateCredentialAnyOfIssuerAnyOf.md | 49 + ...mplateCredentialAnyOfIssuerAnyOfAddress.md | 37 + ...ateCredentialAnyOfIssuerAnyOfAddressGeo.md | 31 + ...TemplateCredentialAnyOfIssuerAnyOfImage.md | 31 + ...ateCredentialAnyOfIssuerAnyOfImageAnyOf.md | 31 + ...ialAnyOfIssuerAnyOfOtherIdentifierInner.md | 31 + ...AnyOfOtherIdentifierInnerIdentifierType.md | 28 + ...tTemplateCredentialAnyOfIssuerAnyOfType.md | 28 + ...SendRequestTemplateCredentialAnyOfProof.md | 36 + ...stSendRequestTemplateDefaultPermissions.md | 40 + .../BoostSendRequestTemplateSkillsInner.md | 30 + ...ostUpdateBoostPermissionsRequestUpdates.md | 2 +- .../docs/BoostUpdateBoostRequestUpdates.md | 1 + ...BoostUpdateOtherBoostPermissionsRequest.md | 30 + ...dateOtherBoostPermissionsRequestUpdates.md | 39 + .../python-client/docs/BoostsApi.md | 858 +- .../ClaimHookCreateClaimHookRequestHook.md | 2 +- ...aimHookCreateClaimHookRequestHookOneOf2.md | 30 + ...ookCreateClaimHookRequestHookOneOf2Data.md | 30 + ...aimHooksForBoost200ResponseRecordsInner.md | 2 +- ...rBoost200ResponseRecordsInnerAllOfOneOf.md | 30 + ...Boost200ResponseRecordsInnerAllOfOneOf1.md | 30 + ...t200ResponseRecordsInnerAllOfOneOf1Data.md | 30 + ...Boost200ResponseRecordsInnerAllOfOneOf2.md | 30 + ...t200ResponseRecordsInnerAllOfOneOf2Data.md | 30 + ...st200ResponseRecordsInnerAllOfOneOfData.md | 31 + ...seRecordsInnerAllOfOneOfDataPermissions.md | 40 + ...imHookGetClaimHooksForBoostRequestQuery.md | 4 +- ...okGetClaimHooksForBoostRequestQueryData.md | 4 +- ...ooksForBoostRequestQueryDataPermissions.md | 12 +- .../python-client/docs/ContactMethodsApi.md | 254 +- ...dsCreateContactMethodSession200Response.md | 29 + ...ethodsCreateContactMethodSessionRequest.md | 30 + ...ontactMethodSessionRequestContactMethod.md | 30 + ...ontactMethodsRemoveContactMethodRequest.md | 29 + .../ContactMethodsSendChallenge200Response.md | 29 + .../ContactMethodsSendChallengeRequest.md | 31 + ...ethodsSendChallengeRequestConfiguration.md | 29 + ...thodsSetPrimaryContactMethod200Response.md | 29 - ...ctMethodsVerifyContactMethod200Response.md | 30 - ...tMethodsVerifyWithCredential200Response.md | 30 + ...yWithCredential200ResponseContactMethod.md | 35 + ...Credential200ResponseContactMethodOneOf.md | 35 + ...redential200ResponseContactMethodOneOf1.md | 35 + ...ntactMethodsVerifyWithCredentialRequest.md | 29 + ...ContractsAddAutoBoostsToContractRequest.md | 2 +- ...oBoostsToContractRequestAutoboostsInner.md | 30 + .../python-client/docs/ContractsApi.md | 734 +- .../ContractsCancelContractRequestRequest.md | 30 + .../ContractsConsentToContract200Response.md | 30 + .../docs/ContractsConsentToContractRequest.md | 1 + ...ntToContractRequestTermsReadCredentials.md | 2 +- ...uestTermsReadCredentialsCategoriesValue.md | 32 + ...tRequestAutoboostsInnerSigningAuthority.md | 2 +- ...eConsentFlowContractRequestContractRead.md | 2 +- ...wContractRequestContractReadCredentials.md | 2 +- ...tContractReadCredentialsCategoriesValue.md | 30 + ...ConsentFlowContractRequestContractWrite.md | 2 +- ...sForwardContractRequestToProfileRequest.md | 31 + ...tractRequestsForProfile200ResponseInner.md | 32 + ...uestsForProfile200ResponseInnerContract.md | 31 + ...tractsGetConsentFlowContract200Response.md | 6 +- ...tConsentFlowContract200ResponseContract.md | 30 + ...sentFlowContract200ResponseContractRead.md | 31 + ...entFlowContracts200ResponseRecordsInner.md | 4 +- ...nsentedContracts200ResponseRecordsInner.md | 4 +- ...edContracts200ResponseRecordsInnerTerms.md | 31 + ...ntracts200ResponseRecordsInnerTermsRead.md | 31 + ...esponseRecordsInnerTermsReadCredentials.md | 31 + ...nnerTermsReadCredentialsCategoriesValue.md | 32 + ...tsGetConsentedContractsRequestQueryRead.md | 2 +- ...tedContractsRequestQueryReadCredentials.md | 2 +- ...uestQueryReadCredentialsCategoriesValue.md | 32 + .../ContractsGetConsentedData200Response.md | 31 + ...GetConsentedData200ResponseRecordsInner.md | 31 + ...dDataForContract200ResponseRecordsInner.md | 2 +- ...ractsGetConsentedDataForDidRequestQuery.md | 2 +- ...GetContractSentRequests200ResponseInner.md | 31 + ...tsGetRequestStatusForProfile200Response.md | 31 + ...ansactionHistory200ResponseRecordsInner.md | 2 +- ...tionHistory200ResponseRecordsInnerTerms.md | 31 + ...istory200ResponseRecordsInnerTermsWrite.md | 30 + ...sponseRecordsInnerTermsWriteCredentials.md | 29 + ...sGetTermsTransactionHistoryRequestQuery.md | 2 +- ...TransactionHistoryRequestQueryExpiresAt.md | 31 + ...actionHistoryRequestQueryExpiresAtAnyOf.md | 30 + ...ctionHistoryRequestQueryExpiresAtAnyOf1.md | 29 + ...nHistoryRequestQueryExpiresAtAnyOfAnyOf.md | 29 + ...HistoryRequestQueryExpiresAtAnyOfAnyOf1.md | 29 + ...ermsTransactionHistoryRequestQueryTerms.md | 2 +- ...TransactionHistoryRequestQueryTermsRead.md | 31 + ...ntractsMarkContractRequestAsSeenRequest.md | 30 + ...ntractsSendAiInsightShareRequestRequest.md | 31 + ...ctsSendAiInsightsContractRequestRequest.md | 31 + ...actsUpdateConsentedContractTermsRequest.md | 2 +- ...pdateConsentedContractTermsRequestTerms.md | 31 + ...eConsentedContractTermsRequestTermsRead.md | 31 + ...ontractTermsRequestTermsReadCredentials.md | 31 + ...ntractsWriteCredentialToContractRequest.md | 2 +- ...teCredentialToContractRequestCredential.md | 52 + ...ialToContractViaSigningAuthorityRequest.md | 2 +- .../docs/CredentialAcceptCredentialRequest.md | 2 +- ...redentialAcceptCredentialRequestOptions.md | 30 + ...tialReceivedCredentials200ResponseInner.md | 1 + .../docs/CredentialSendCredentialRequest.md | 1 + ...edentialSendCredentialRequestCredential.md | 16 +- ...ialSendCredentialRequestCredentialAnyOf.md | 14 +- ...alSendCredentialRequestCredentialAnyOf1.md | 34 + ...lRequestCredentialAnyOf1RecipientsInner.md | 30 + ...stCredentialAnyOf1RecipientsInnerHeader.md | 35 + ...redentialAnyOf1RecipientsInnerHeaderEpk.md | 34 + .../python-client/docs/DIDMetadataApi.md | 6 +- .../docs/DidMetadataAddDidMetadataRequest.md | 18 +- ...ddDidMetadataRequestAuthenticationInner.md | 36 + ...MetadataRequestAuthenticationInnerAnyOf.md | 36 + ...estAuthenticationInnerAnyOfPublicKeyJwk.md | 34 + ...tadataAddDidMetadataRequestServiceInner.md | 4 +- ...adataRequestServiceInnerServiceEndpoint.md | 28 - ...dMetadataRequestVerificationMethodInner.md | 3 +- ...dataRequestVerificationMethodInnerAnyOf.md | 3 +- .../DidMetadataGetDidMetadata200Response.md | 41 + ...dMetadata200ResponseAuthenticationInner.md | 36 + ...data200ResponseAuthenticationInnerAnyOf.md | 36 + ...nseAuthenticationInnerAnyOfPublicKeyJwk.md | 34 + ...taGetDidMetadata200ResponseServiceInner.md | 31 + ...adata200ResponseVerificationMethodInner.md | 36 + ...200ResponseVerificationMethodInnerAnyOf.md | 36 + ...erificationMethodInnerAnyOfPublicKeyJwk.md | 34 + ...etadataGetMyDidMetadata200ResponseInner.md | 22 +- .../DidMetadataUpdateDidMetadataRequest.md | 2 +- ...MetadataUpdateDidMetadataRequestUpdates.md | 41 + .../python-client/docs/ErrorBADREQUEST.md | 2 +- .../docs/ErrorBADREQUESTIssuesInner.md | 29 + .../python-client/docs/ErrorFORBIDDEN.md | 2 +- .../docs/ErrorINTERNALSERVERERROR.md | 2 +- .../python-client/docs/ErrorNOTFOUND.md | 2 +- .../python-client/docs/ErrorUNAUTHORIZED.md | 2 +- .../InboxApproveGuardianRequestRequest.md | 29 + .../docs/InboxClaim200Response.md | 31 + .../InboxClaim200ResponseInboxCredential.md | 38 + ...ResponseInboxCredentialSigningAuthority.md | 30 + .../python-client/docs/InboxClaimRequest.md | 30 + .../docs/InboxClaimRequestConfiguration.md | 30 + .../docs/InboxClaimRequestCredential.md | 49 + .../docs/InboxFinalize200Response.md | 32 + ...ssuedCredentials200ResponseRecordsInner.md | 4 +- ...200ResponseRecordsInnerSigningAuthority.md | 30 + .../InboxGetMyIssuedCredentialsRequest.md | 2 +- ...InboxGetMyIssuedCredentialsRequestQuery.md | 1 + ...xGetMyIssuedCredentialsRequestRecipient.md | 30 + ...yIssuedCredentialsRequestRecipientOneOf.md | 30 + .../InboxIssue200ResponseRecipientOneOf.md | 30 + .../InboxIssue200ResponseRecipientOneOf1.md | 30 + .../docs/InboxIssueRequestCredential.md | 14 +- .../docs/InboxIssueRequestCredentialAnyOf.md | 16 +- ...boxSendGuardianApprovalEmail200Response.md | 30 + .../InboxSendGuardianApprovalEmailRequest.md | 31 + ...endGuardianApprovalEmailRequestTemplate.md | 30 + .../docs/IntegrationsAddIntegrationRequest.md | 31 + ...tegrationRequestWhitelistedDomainsInner.md | 28 + .../python-client/docs/IntegrationsApi.md | 595 ++ ...eIntegrationWithSigningAuthorityRequest.md | 32 + .../IntegrationsCountIntegrationsRequest.md | 29 + .../IntegrationsGetIntegration200Response.md | 33 + .../IntegrationsGetIntegrations200Response.md | 31 + ...sGetIntegrations200ResponseRecordsInner.md | 33 + .../IntegrationsGetIntegrationsRequest.md | 31 + ...IntegrationsGetIntegrationsRequestQuery.md | 31 + .../IntegrationsUpdateIntegrationRequest.md | 29 + ...grationsUpdateIntegrationRequestUpdates.md | 32 + ...tionSendPresentationRequestPresentation.md | 8 +- ...endPresentationRequestPresentationAnyOf.md | 6 +- ...stPresentationAnyOfVerifiableCredential.md | 14 +- .../docs/ProfileCreateProfileRequest.md | 5 +- .../ProfileCreateProfileRequestDisplay.md | 40 + .../ProfileCreateServiceProfileRequest.md | 45 + ...ofileCreateServiceProfileRequestDisplay.md | 40 + .../docs/ProfileGenerateInviteRequest.md | 1 + ...vailableProfiles200ResponseRecordsInner.md | 4 +- ...eProfiles200ResponseRecordsInnerManager.md | 37 + .../ProfileListInvites200ResponseInner.md | 32 + ...ManagerCreateChildProfileManagerRequest.md | 2 +- ...CreateChildProfileManagerRequestProfile.md | 34 + ...ofileManagerCreateManagedProfileRequest.md | 5 +- ...ProfileManagerGetManagedProfilesRequest.md | 32 + .../python-client/docs/ProfileManagersApi.md | 32 +- .../ProfileSearchProfiles200ResponseInner.md | 5 +- .../ProfileSigningAuthority200Response.md | 30 + ...SigningAuthority200ResponseRelationship.md | 31 + ...ingAuthority200ResponseSigningAuthority.md | 29 + .../docs/ProfileUpdateProfileRequest.md | 5 +- .../python-client/docs/ProfilesApi.md | 494 +- .../python-client/docs/Schema0.md | 36 + .../python-client/docs/Schema1.md | 41 + .../python-client/docs/SendApi.md | 92 + ...lFrameworksAddFrameworkAdmin200Response.md | 29 + ...SkillFrameworksAddFrameworkAdminRequest.md | 29 + ...sCountBoostsThatUseFramework200Response.md | 29 + ...killFrameworksCreateManagedBatchRequest.md | 29 + ...reateManagedBatchRequestFrameworksInner.md | 36 + .../SkillFrameworksCreateManagedRequest.md | 36 + .../docs/SkillFrameworksCreateRequest.md | 29 + ...meworksGetBoostsThatUseFrameworkRequest.md | 31 + .../docs/SkillFrameworksGetById200Response.md | 30 + ...SkillFrameworksGetById200ResponseSkills.md | 31 + ...ameworksRemoveFrameworkAdmin200Response.md | 29 + ...SkillFrameworksReplaceSkills200Response.md | 33 + .../SkillFrameworksReplaceSkillsRequest.md | 29 + .../docs/SkillFrameworksUpdateRequest.md | 33 + .../docs/SkillsAddSkillTag200ResponseInner.md | 33 + .../docs/SkillsAddSkillTagRequest.md | 30 + .../docs/SkillsAddSkillTagRequestTag.md | 30 + .../python-client/docs/SkillsApi.md | 2409 +++++ .../docs/SkillsCountSkills200Response.md | 29 + .../docs/SkillsCreate200Response.md | 38 + .../docs/SkillsCreateManyRequest.md | 31 + .../python-client/docs/SkillsCreateRequest.md | 31 + .../docs/SkillsDelete200Response.md | 30 + .../SkillsGetFrameworkSkillTree200Response.md | 31 + .../docs/SkillsGetFullSkillTree200Response.md | 29 + .../docs/SkillsGetSkill200Response.md | 38 + .../docs/SkillsGetSkillPath200Response.md | 29 + .../SkillsListSkillTags200ResponseInner.md | 33 + .../SkillsSearchFrameworkSkillsRequest.md | 32 + ...SkillsSearchFrameworkSkillsRequestQuery.md | 35 + ...sSearchFrameworkSkillsRequestQueryAnyOf.md | 29 + .../SkillsSyncFrameworkSkills200Response.md | 30 + .../python-client/docs/SkillsUpdateRequest.md | 35 + .../docs/StorageResolve200Response.md | 20 +- .../docs/StorageResolve200ResponseAnyOf.md | 24 +- .../StorageResolve200ResponseAnyOf1Read.md | 2 +- .../StorageResolve200ResponseAnyOfAnyOf.md | 28 +- .../StorageResolve200ResponseAnyOfAnyOf1.md | 30 + ...torageResolve200ResponseAnyOfAnyOf1Read.md | 31 + ...ve200ResponseAnyOfAnyOf1ReadCredentials.md | 29 + ...yOfAnyOf1ReadCredentialsCategoriesValue.md | 30 + ...200ResponseAnyOfAnyOf1ReadPersonalValue.md | 30 + ...orageResolve200ResponseAnyOfAnyOf1Write.md | 30 + ...e200ResponseAnyOfAnyOf1WriteCredentials.md | 29 + ...torageResolve200ResponseAnyOfAnyOfAnyOf.md | 48 + ...orageResolve200ResponseAnyOfAnyOfAnyOf1.md | 34 + ...ResponseAnyOfAnyOfAnyOf1RecipientsInner.md | 30 + ...seAnyOfAnyOfAnyOf1RecipientsInnerHeader.md | 35 + ...nyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md | 34 + ...eResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md | 46 + ...Resolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md | 34 + ...yOfAnyOfAnyOfAnyOf1VerifiableCredential.md | 46 + ...lve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md | 45 + ...ve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md | 46 + ...ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md | 49 + ...nseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md | 49 + ...fAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md | 37 + ...yOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md | 31 + ...yOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md | 31 + ...yOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md | 31 + ...yOfAnyOfIssuerAnyOfOtherIdentifierInner.md | 31 + ...StorageResolve200ResponseAnyOfAnyOfRead.md | 31 - ...lve200ResponseAnyOfAnyOfReadCredentials.md | 29 - ...nyOfAnyOfReadCredentialsCategoriesValue.md | 29 - ...torageResolve200ResponseAnyOfAnyOfWrite.md | 30 - .../docs/StorageStoreRequestItem.md | 18 +- .../docs/StorageStoreRequestItemAnyOf.md | 16 +- .../docs/StorageStoreRequestItemAnyOfAnyOf.md | 34 + .../python-client/docs/UniversalInboxApi.md | 419 + ...rkflowsParticipateInExchange200Response.md | 2 +- .../WorkflowsParticipateInExchangeRequest.md | 2 +- .../python-client/openapi_client/__init__.py | 595 +- .../openapi_client/api/__init__.py | 5 + .../openapi_client/api/app_store_admin_api.py | 1184 +++ .../openapi_client/api/app_store_api.py | 4214 +++++++++ .../openapi_client/api/boosts_api.py | 4806 +++++++--- .../openapi_client/api/contact_methods_api.py | 1110 ++- .../openapi_client/api/contracts_api.py | 3300 ++++++- .../openapi_client/api/credentials_api.py | 21 +- .../openapi_client/api/did_metadata_api.py | 11 +- .../openapi_client/api/integrations_api.py | 2056 ++++ .../openapi_client/api/presentations_api.py | 21 +- .../api/profile_managers_api.py | 91 +- .../openapi_client/api/profiles_api.py | 2772 ++++-- .../openapi_client/api/send_api.py | 323 + .../openapi_client/api/skills_api.py | 8351 +++++++++++++++++ .../openapi_client/api/universal_inbox_api.py | 1435 ++- .../openapi_client/api/utilities_api.py | 6 +- .../openapi_client/api/vcapi_api.py | 13 +- .../openapi_client/api/workflows_api.py | 13 +- .../openapi_client/api_client.py | 19 +- .../openapi_client/configuration.py | 10 +- .../openapi_client/exceptions.py | 9 +- .../openapi_client/models/__init__.py | 294 +- ...pp_store_admin_get_all_listings_request.py | 111 + ...ore_admin_update_listing_status_request.py | 94 + ...re_admin_update_promotion_level_request.py | 94 + .../app_store_browse_listed_apps_request.py | 118 + .../app_store_create_listing_request.py | 98 + ...pp_store_create_listing_request_listing.py | 143 + ...pp_store_get_installed_apps200_response.py | 117 + ...nstalled_apps200_response_records_inner.py | 230 + .../app_store_get_listing200_response.py | 223 + ...et_listings_for_integration200_response.py | 117 + ...r_integration200_response_records_inner.py | 145 + ...re_get_listings_for_integration_request.py | 99 + .../app_store_update_listing_request.py | 91 + ...pp_store_update_listing_request_updates.py | 146 + .../auth_grants_add_auth_grant_request.py | 25 + .../auth_grants_get_auth_grant200_response.py | 62 +- ...rants_get_auth_grants200_response_inner.py | 70 +- .../auth_grants_get_auth_grants_request.py | 10 + ...th_grants_get_auth_grants_request_query.py | 14 +- ...rants_update_auth_grant_request_updates.py | 10 + .../models/boost_add_boost_admin_request.py | 16 +- .../boost_align_boost_skills_request.py | 103 + ...align_boost_skills_request_skills_inner.py | 99 + ...boost_attach_framework_to_boost_request.py | 99 + .../boost_claim_boost_with_link_request.py | 99 + .../boost_count_boost_children_request.py | 19 +- .../boost_count_boost_parents_request.py | 99 + .../boost_count_boost_siblings_request.py | 7 +- .../boost_count_familial_boosts_request.py | 26 +- .../models/boost_create_boost_request.py | 35 +- ..._create_boost_request_claim_permissions.py | 4 +- .../boost_create_boost_request_credential.py | 28 +- ..._create_boost_request_credential_any_of.py | 34 +- .../boost_create_child_boost_request.py | 28 +- .../boost_create_child_boost_request_boost.py | 141 + ...ost_detach_framework_from_boost_request.py | 89 + .../boost_generate_claim_link200_response.py | 29 +- .../boost_generate_claim_link_request.py | 12 +- ...nerate_claim_link_request_claim_link_sa.py | 19 +- ...ost_generate_claim_link_request_options.py | 10 + .../models/boost_get_boost200_response.py | 49 +- .../boost_get_boost200_response_boost.py | 205 + ...ost_get_boost200_response_boost_issuer.py} | 34 +- ...t_boost200_response_boost_issuer_any_of.py | 246 + ...00_response_boost_issuer_any_of_address.py | 159 + ...esponse_boost_issuer_any_of_address_geo.py | 118 + ...t200_response_boost_issuer_any_of_image.py | 136 + ...sponse_boost_issuer_any_of_image_any_of.py | 119 + ...st_issuer_any_of_other_identifier_inner.py | 117 + ...get_boost200_response_claim_permissions.py | 4 +- ...t_boost200_response_default_permissions.py | 152 + .../boost_get_boost_admins200_response.py | 24 +- .../models/boost_get_boost_admins_request.py | 17 +- ..._get_boost_alignments200_response_inner.py | 108 + .../boost_get_boost_children_request.py | 26 +- .../boost_get_boost_frameworks200_response.py | 117 + ...st_frameworks200_response_records_inner.py | 108 + .../boost_get_boost_frameworks_request.py | 108 + ...oost_get_boost_frameworks_request_query.py | 134 + ...t_boost_frameworks_request_query_any_of.py | 95 + ...rameworks_request_query_any_of_or_inner.py | 111 + .../models/boost_get_boost_parents_request.py | 120 + ..._get_boost_recipients200_response_inner.py | 30 +- ...t_boost_recipients200_response_inner_to.py | 27 +- ...recipients200_response_inner_to_display.py | 48 + ..._recipients_with_children_count_request.py | 112 + ...ren_count_request_number_of_generations.py | 138 + .../boost_get_boost_siblings_request.py | 17 +- .../boost_get_boosts200_response_inner.py | 43 +- .../models/boost_get_boosts_request_query.py | 200 +- .../boost_get_boosts_request_query_any_of.py | 95 + ...et_boosts_request_query_any_of_or_inner.py | 128 + ...s_request_query_any_of_or_inner_status.py} | 34 +- ...st_query_any_of_or_inner_status_any_of.py} | 8 +- ...t_children_profile_managers200_response.py | 18 + ...file_managers200_response_records_inner.py | 49 +- ...t_get_children_profile_managers_request.py | 17 +- ...children_profile_managers_request_query.py | 22 +- ..._get_connected_boost_recipients_request.py | 10 + .../boost_get_familial_boosts_request.py | 32 +- ..._paginated_boost_recipients200_response.py | 24 +- ...st_recipients200_response_records_inner.py | 97 + ...recipients200_response_records_inner_to.py | 138 + ...ts200_response_records_inner_to_display.py | 107 + ..._get_paginated_boost_recipients_request.py | 17 +- ...aginated_boost_recipients_request_query.py | 30 +- ...st_recipients_with_children200_response.py | 117 + ...with_children200_response_records_inner.py | 122 + ..._boost_recipients_with_children_request.py | 128 + ..._children_request_number_of_generations.py | 138 + .../boost_get_paginated_boosts200_response.py | 18 + ...inated_boosts200_response_records_inner.py | 42 +- .../boost_get_paginated_boosts_request.py | 10 + ...s_available_for_boost200_response_inner.py | 114 + ...e_for_boost200_response_inner_framework.py | 151 + ...or_boost200_response_inner_skills_inner.py | 151 + .../models/boost_make_boost_parent_request.py | 16 +- .../boost_remove_boost_admin_request.py | 89 + .../boost_remove_boost_parent_request.py | 89 + ..._skills_available_for_boost200_response.py | 117 + ...ble_for_boost200_response_records_inner.py | 108 + ...arch_skills_available_for_boost_request.py | 108 + ...kills_available_for_boost_request_query.py | 134 + ...vailable_for_boost_request_query_any_of.py | 95 + ...ailable_for_boost_request_query_any_of1.py | 117 + ...for_boost_request_query_any_of_or_inner.py | 118 + ..._boost_request_query_any_of_or_inner_id.py | 134 + ...request_query_any_of_or_inner_id_any_of.py | 134 + ...equest_query_any_of_or_inner_id_any_of1.py | 95 + ...ery_any_of_or_inner_id_any_of1_or_inner.py | 134 + ..._of_or_inner_id_any_of1_or_inner_any_of.py | 136 + ...of_or_inner_id_any_of1_or_inner_any_of1.py | 91 + ...inner_id_any_of1_or_inner_any_of1_regex.py | 138 + ...nner_id_any_of1_or_inner_any_of_any_of.py} | 8 +- ..._query_any_of_or_inner_id_any_of_any_of.py | 136 + ...query_any_of_or_inner_id_any_of_any_of1.py | 91 + ...ny_of_or_inner_id_any_of_any_of1_regex.py} | 37 +- ...any_of_or_inner_id_any_of_any_of_any_of.py | 87 + ...request_query_any_of_or_inner_statement.py | 134 + ...st_request_query_any_of_or_inner_status.py | 136 + ...est_query_any_of_or_inner_status_any_of.py | 95 + .../models/boost_send200_response.py | 121 + .../models/boost_send_boost_request.py | 7 +- ...st_send_boost_request_credential_any_of.py | 37 +- ...t_send_boost_request_credential_any_of1.py | 33 +- ...est_credential_any_of1_recipients_inner.py | 9 +- ...dential_any_of1_recipients_inner_header.py | 36 +- ...ial_any_of1_recipients_inner_header_epk.py | 30 + ...est_credential_any_of_credential_schema.py | 21 +- ...dential_any_of_credential_schema_any_of.py | 16 +- ...any_of_credential_schema_any_of1_inner.py} | 16 +- ...est_credential_any_of_credential_status.py | 36 +- ...st_credential_any_of_credential_subject.py | 21 +- ...ential_any_of_credential_subject_any_of.py | 5 + ...ny_of_credential_subject_any_of1_inner.py} | 12 +- ...oost_request_credential_any_of_evidence.py | 21 +- ...quest_credential_any_of_evidence_any_of.py | 55 +- ...redential_any_of_evidence_any_of1_inner.py | 113 + ...request_credential_any_of_issuer_any_of.py | 85 +- ...credential_any_of_issuer_any_of_address.py | 35 + ...ential_any_of_issuer_any_of_address_geo.py | 9 +- ...ntial_any_of_issuer_any_of_image_any_of.py | 19 +- ...of_issuer_any_of_other_identifier_inner.py | 9 +- ...d_boost_request_credential_any_of_proof.py | 21 +- ..._request_credential_any_of_proof_any_of.py | 48 +- ...t_credential_any_of_proof_any_of1_inner.py | 114 + ...quest_credential_any_of_refresh_service.py | 21 +- ...redential_any_of_refresh_service_any_of.py | 12 +- ...al_any_of_refresh_service_any_of1_inner.py | 102 + ..._request_credential_any_of_terms_of_use.py | 36 +- ...end_boost_via_signing_authority_request.py | 7 +- ...ing_authority_request_signing_authority.py | 16 +- .../models/boost_send_request.py | 127 + .../models/boost_send_request_template.py | 153 + ...send_request_template_claim_permissions.py | 139 + .../boost_send_request_template_credential.py | 134 + ...send_request_template_credential_any_of.py | 176 + ...end_request_template_credential_any_of1.py | 205 + ...emplate_credential_any_of_context_inner.py | 138 + ...te_credential_any_of_credential_subject.py | 136 + ...est_template_credential_any_of_evidence.py | 136 + ...quest_template_credential_any_of_issuer.py | 136 + ...emplate_credential_any_of_issuer_any_of.py | 176 + ...credential_any_of_issuer_any_of_address.py | 111 + ...ential_any_of_issuer_any_of_address_geo.py | 95 + ...e_credential_any_of_issuer_any_of_image.py | 136 + ...ntial_any_of_issuer_any_of_image_any_of.py | 91 + ...of_issuer_any_of_other_identifier_inner.py | 99 + ..._other_identifier_inner_identifier_type.py | 138 + ...te_credential_any_of_issuer_any_of_type.py | 139 + ...equest_template_credential_any_of_proof.py | 136 + ...nd_request_template_default_permissions.py | 139 + ...oost_send_request_template_skills_inner.py | 89 + .../boost_update_boost_permissions_request.py | 9 +- ...pdate_boost_permissions_request_updates.py | 29 +- .../models/boost_update_boost_request.py | 9 +- .../boost_update_boost_request_updates.py | 25 +- ..._update_other_boost_permissions_request.py | 93 + ...other_boost_permissions_request_updates.py | 107 + ...aim_hook_create_claim_hook_request_hook.py | 30 +- ...te_claim_hook_request_hook_one_of1_data.py | 16 +- ..._create_claim_hook_request_hook_one_of2.py | 100 + ...te_claim_hook_request_hook_one_of2_data.py | 89 + ...ate_claim_hook_request_hook_one_of_data.py | 16 +- .../claim_hook_delete_claim_hook_request.py | 9 +- ...k_get_claim_hooks_for_boost200_response.py | 18 + ...oks_for_boost200_response_records_inner.py | 33 +- ...00_response_records_inner_all_of_one_of.py | 113 + ...0_response_records_inner_all_of_one_of1.py | 113 + ...ponse_records_inner_all_of_one_of1_data.py | 112 + ...0_response_records_inner_all_of_one_of2.py | 113 + ...ponse_records_inner_all_of_one_of2_data.py | 89 + ...sponse_records_inner_all_of_one_of_data.py | 118 + ...ds_inner_all_of_one_of_data_permissions.py | 152 + ..._hook_get_claim_hooks_for_boost_request.py | 17 +- ...get_claim_hooks_for_boost_request_query.py | 10 +- ...laim_hooks_for_boost_request_query_data.py | 10 +- ...or_boost_request_query_data_permissions.py | 26 +- ..._methods_add_contact_method200_response.py | 29 +- ...eate_contact_method_session200_response.py | 105 + ...s_create_contact_method_session_request.py | 98 + ...t_method_session_request_contact_method.py | 101 + ...ontact_methods200_response_inner_one_of.py | 42 +- ...ntact_methods200_response_inner_one_of1.py | 39 +- ...t_methods_remove_contact_method_request.py | 87 + ...act_methods_send_challenge200_response.py} | 8 +- .../contact_methods_send_challenge_request.py | 107 + ...ds_send_challenge_request_configuration.py | 92 + ...hods_set_primary_contact_method_request.py | 9 +- ...t_methods_verify_contact_method_request.py | 9 +- ...hods_verify_with_credential200_response.py | 111 + ...h_credential200_response_contact_method.py | 137 + ...ntial200_response_contact_method_one_of.py | 114 + ...tial200_response_contact_method_one_of1.py | 106 + ..._methods_verify_with_credential_request.py | 92 + ...cts_add_auto_boosts_to_contract_request.py | 15 +- ...ts_to_contract_request_autoboosts_inner.py | 93 + ...ntracts_cancel_contract_request_request.py | 89 + ...ntracts_consent_to_contract200_response.py | 112 + .../contracts_consent_to_contract_request.py | 23 +- ...contract_request_terms_read_credentials.py | 6 +- ...terms_read_credentials_categories_value.py | 98 + ...ts_create_consent_flow_contract_request.py | 42 +- ..._flow_contract_request_autoboosts_inner.py | 9 +- ...uest_autoboosts_inner_signing_authority.py | 8 +- ...ent_flow_contract_request_contract_read.py | 6 +- ...tract_request_contract_read_credentials.py | 6 +- ...tract_read_credentials_categories_value.py | 89 + ...nt_flow_contract_request_contract_write.py | 6 +- ...ard_contract_request_to_profile_request.py | 106 + ..._requests_for_profile200_response_inner.py | 144 + ..._for_profile200_response_inner_contract.py | 117 + ...s_get_all_credentials_for_terms_request.py | 10 + ...s_get_consent_flow_contract200_response.py | 92 +- ...sent_flow_contract200_response_contract.py | 110 + ...flow_contract200_response_contract_read.py | 121 + ..._get_consent_flow_contracts200_response.py | 18 + ...low_contracts200_response_records_inner.py | 88 +- ...acts_get_consent_flow_contracts_request.py | 10 + ...cts_get_consented_contracts200_response.py | 18 + ...ted_contracts200_response_records_inner.py | 37 +- ...ntracts200_response_records_inner_terms.py | 112 + ...ts200_response_records_inner_terms_read.py | 108 + ...se_records_inner_terms_read_credentials.py | 104 + ...terms_read_credentials_categories_value.py | 93 + ...ntracts_get_consented_contracts_request.py | 10 + ..._consented_contracts_request_query_read.py | 2 +- ...ontracts_request_query_read_credentials.py | 6 +- ...query_read_credentials_categories_value.py | 93 + ...ontracts_get_consented_data200_response.py | 117 + ...onsented_data200_response_records_inner.py | 113 + ...consented_data_for_contract200_response.py | 18 + ..._for_contract200_response_records_inner.py | 24 +- ...t200_response_records_inner_credentials.py | 13 + ...get_consented_data_for_contract_request.py | 17 +- ..._get_consented_data_for_did200_response.py | 18 + ..._data_for_did200_response_records_inner.py | 29 +- ...esponse_records_inner_credentials_inner.py | 29 +- ...acts_get_consented_data_for_did_request.py | 17 +- ...et_consented_data_for_did_request_query.py | 6 +- .../contracts_get_consented_data_request.py | 10 + ...ontract_sent_requests200_response_inner.py | 138 + ...et_credentials_for_contract200_response.py | 18 + ..._for_contract200_response_records_inner.py | 53 +- ...ts_get_credentials_for_contract_request.py | 17 +- ..._request_status_for_profile200_response.py | 138 + ...t_terms_transaction_history200_response.py | 18 + ...ction_history200_response_records_inner.py | 38 +- ...history200_response_records_inner_terms.py | 112 + ...y200_response_records_inner_terms_write.py | 93 + ...e_records_inner_terms_write_credentials.py | 87 + ...s_get_terms_transaction_history_request.py | 17 +- ...terms_transaction_history_request_query.py | 5 +- ...tion_history_request_query_date_any_of1.py | 9 +- ...istory_request_query_date_any_of_any_of.py | 9 +- ...story_request_query_date_any_of_any_of1.py | 9 +- ...action_history_request_query_expires_at.py | 134 + ...history_request_query_expires_at_any_of.py | 134 + ...istory_request_query_expires_at_any_of1.py | 87 + ..._request_query_expires_at_any_of_any_of.py | 87 + ...request_query_expires_at_any_of_any_of1.py | 87 + ...transaction_history_request_query_terms.py | 6 +- ...action_history_request_query_terms_read.py | 95 + ...s_mark_contract_request_as_seen_request.py | 99 + ...emove_auto_boosts_from_contract_request.py | 9 +- ...s_send_ai_insight_share_request_request.py | 106 + ...nd_ai_insights_contract_request_request.py | 106 + ...ts_sync_credentials_to_contract_request.py | 9 +- ...update_consented_contract_terms_request.py | 18 +- ..._consented_contract_terms_request_terms.py | 99 + ...ented_contract_terms_request_terms_read.py | 95 + ...ct_terms_request_terms_read_credentials.py | 104 + ...ts_write_credential_to_contract_request.py | 29 +- ...edential_to_contract_request_credential.py | 134 + ..._contract_via_signing_authority_request.py | 29 +- .../credential_accept_credential_request.py | 13 +- ...ntial_accept_credential_request_options.py | 89 + ..._received_credentials200_response_inner.py | 62 +- .../credential_send_credential_request.py | 8 +- ...tial_send_credential_request_credential.py | 28 +- ...nd_credential_request_credential_any_of.py | 28 +- ...d_credential_request_credential_any_of1.py | 105 + ...est_credential_any_of1_recipients_inner.py | 93 + ...dential_any_of1_recipients_inner_header.py | 103 + ...ial_any_of1_recipients_inner_header_epk.py | 97 + .../did_metadata_add_did_metadata_request.py | 53 +- ...d_metadata_request_authentication_inner.py | 136 + ...ata_request_authentication_inner_any_of.py | 126 + ...hentication_inner_any_of_public_key_jwk.py | 97 + ..._add_did_metadata_request_service_inner.py | 27 +- ...equest_verification_method_inner_any_of.py | 46 +- ...tion_method_inner_any_of_public_key_jwk.py | 36 +- ...d_metadata_get_did_metadata200_response.py | 209 + ...tadata200_response_authentication_inner.py | 136 + ...00_response_authentication_inner_any_of.py | 126 + ...hentication_inner_any_of_public_key_jwk.py | 97 + ..._did_metadata200_response_service_inner.py | 114 + ...a200_response_verification_method_inner.py | 136 + ...sponse_verification_method_inner_any_of.py | 156 + ...tion_method_inner_any_of_public_key_jwk.py | 140 + ...a_get_my_did_metadata200_response_inner.py | 66 +- ...id_metadata_update_did_metadata_request.py | 6 +- ...ata_update_did_metadata_request_updates.py | 198 + .../openapi_client/models/error_badrequest.py | 19 +- .../models/error_badrequest_issues_inner.py | 92 + .../openapi_client/models/error_forbidden.py | 19 +- .../models/error_internalservererror.py | 19 +- .../openapi_client/models/error_notfound.py | 19 +- .../models/error_unauthorized.py | 19 +- .../inbox_approve_guardian_request_request.py | 87 + .../models/inbox_claim200_response.py | 118 + ...nbox_claim200_response_inbox_credential.py | 159 + ...onse_inbox_credential_signing_authority.py | 112 + .../models/inbox_claim_request.py | 97 + .../inbox_claim_request_configuration.py | 99 + ...i.py => inbox_claim_request_credential.py} | 50 +- .../models/inbox_finalize200_response.py | 129 + ...x_get_my_issued_credentials200_response.py | 18 + ...d_credentials200_response_records_inner.py | 18 +- ...esponse_records_inner_signing_authority.py | 89 + ...inbox_get_my_issued_credentials_request.py | 16 +- ...get_my_issued_credentials_request_query.py | 18 +- ...my_issued_credentials_request_recipient.py | 137 + ...ed_credentials_request_recipient_one_of.py | 96 + .../models/inbox_issue200_response.py | 29 +- .../inbox_issue200_response_recipient.py | 48 +- ...nbox_issue200_response_recipient_one_of.py | 117 + ...box_issue200_response_recipient_one_of1.py | 114 + ...request_configuration_signing_authority.py | 9 +- .../inbox_issue_request_credential_any_of.py | 44 +- .../inbox_issue_request_recipient_one_of.py | 12 +- .../inbox_issue_request_recipient_one_of1.py | 9 +- ...end_guardian_approval_email200_response.py | 112 + ...ox_send_guardian_approval_email_request.py | 103 + ...uardian_approval_email_request_template.py | 94 + .../integrations_add_integration_request.py | 109 + ...ation_request_whitelisted_domains_inner.py | 139 + ...egration_with_signing_authority_request.py | 111 + ...integrations_count_integrations_request.py | 91 + ...ntegrations_get_integration200_response.py | 136 + ...tegrations_get_integrations200_response.py | 117 + ..._integrations200_response_records_inner.py | 103 + .../integrations_get_integrations_request.py | 105 + ...grations_get_integrations_request_query.py | 101 + ...integrations_update_integration_request.py | 91 + ...ions_update_integration_request_updates.py | 111 + ...resentation_accept_presentation_request.py | 9 +- ..._send_presentation_request_presentation.py | 28 +- ...resentation_request_presentation_any_of.py | 28 +- ...esentation_any_of_verifiable_credential.py | 36 +- .../models/profile_create_profile_request.py | 20 +- .../profile_create_profile_request_display.py | 142 + .../profile_create_service_profile_request.py | 134 + ..._create_service_profile_request_display.py | 107 + .../profile_generate_invite200_response.py | 27 +- .../models/profile_generate_invite_request.py | 14 +- ...file_get_available_profiles200_response.py | 18 + ...able_profiles200_response_records_inner.py | 25 +- ...files200_response_records_inner_manager.py | 103 + .../profile_get_available_profiles_request.py | 10 + .../profile_list_invites200_response_inner.py | 126 + ...er_create_child_profile_manager_request.py | 15 +- ...e_child_profile_manager_request_profile.py | 97 + ..._manager_create_managed_profile_request.py | 20 +- ..._manager_create_profile_manager_request.py | 15 + ...le_manager_get_managed_profiles_request.py | 97 + ...file_register_signing_authority_request.py | 16 +- ...ofile_search_profiles200_response_inner.py | 31 +- ...e_set_primary_signing_authority_request.py | 9 +- ...e_signing_authorities200_response_inner.py | 13 + ...horities200_response_inner_relationship.py | 20 +- ...ies200_response_inner_signing_authority.py | 22 +- .../profile_signing_authority200_response.py | 97 + ...ning_authority200_response_relationship.py | 99 + ...authority200_response_signing_authority.py | 87 + .../models/profile_update_profile_request.py | 20 +- .../openapi_client/models/schema0.py | 120 + .../openapi_client/models/schema1.py | 132 + ...meworks_add_framework_admin200_response.py | 100 + ..._frameworks_add_framework_admin_request.py | 92 + ...t_boosts_that_use_framework200_response.py | 105 + ...frameworks_create_managed_batch_request.py | 96 + ..._managed_batch_request_frameworks_inner.py | 120 + ...skill_frameworks_create_managed_request.py | 135 + ....py => skill_frameworks_create_request.py} | 20 +- ...s_get_boosts_that_use_framework_request.py | 101 + .../skill_frameworks_get_by_id200_response.py | 110 + ...frameworks_get_by_id200_response_skills.py | 117 + ...rks_remove_framework_admin200_response.py} | 14 +- ...l_frameworks_replace_skills200_response.py | 109 + ...skill_frameworks_replace_skills_request.py | 96 + .../models/skill_frameworks_update_request.py | 116 + .../skills_add_skill_tag200_response_inner.py | 96 + ...nse.py => skills_add_skill_tag_request.py} | 33 +- .../skills_add_skill_tag_request_tag.py | 90 + .../models/skills_count_skills200_response.py | 101 + .../models/skills_create200_response.py | 112 + .../models/skills_create_many_request.py | 110 + .../models/skills_create_request.py | 105 + .../models/skills_delete200_response.py | 107 + ...ls_get_framework_skill_tree200_response.py | 104 + .../skills_get_full_skill_tree200_response.py | 108 + .../models/skills_get_skill200_response.py | 165 + .../skills_get_skill_path200_response.py | 108 + ...kills_list_skill_tags200_response_inner.py | 124 + .../skills_search_framework_skills_request.py | 108 + ...s_search_framework_skills_request_query.py | 134 + ...h_framework_skills_request_query_any_of.py | 95 + ...kills_sync_framework_skills200_response.py | 110 + .../models/skills_update_request.py | 139 + .../storage_resolve200_response_any_of.py | 40 +- .../storage_resolve200_response_any_of1.py | 13 + ...torage_resolve200_response_any_of1_read.py | 15 +- ...ve200_response_any_of1_read_credentials.py | 13 + ...y_of1_read_credentials_categories_value.py | 18 + ...orage_resolve200_response_any_of1_write.py | 13 + ...e200_response_any_of1_write_credentials.py | 13 + ...orage_resolve200_response_any_of_any_of.py | 167 +- ...rage_resolve200_response_any_of_any_of1.py | 110 + ...esolve200_response_any_of_any_of1_read.py} | 33 +- ...esponse_any_of_any_of1_read_credentials.py | 113 + ...y_of1_read_credentials_categories_value.py | 102 + ...onse_any_of_any_of1_read_personal_value.py | 89 + ...solve200_response_any_of_any_of1_write.py} | 33 +- ...ponse_any_of_any_of1_write_credentials.py} | 14 +- ...esolve200_response_any_of_any_of_any_of.py | 134 + ...solve200_response_any_of_any_of_any_of1.py | 143 + ..._any_of_any_of_any_of1_recipients_inner.py | 111 + ..._any_of_any_of1_recipients_inner_header.py | 146 + ..._of_any_of1_recipients_inner_header_epk.py | 140 + ...00_response_any_of_any_of_any_of_any_of.py | 134 + ...0_response_any_of_any_of_any_of_any_of1.py | 140 + ...of_any_of_any_of1_verifiable_credential.py | 136 + ...onse_any_of_any_of_any_of_any_of_any_of.py | 170 + ...nse_any_of_any_of_any_of_any_of_any_of1.py | 211 + ...y_of_any_of_any_of_any_of_any_of_issuer.py | 136 + ...y_of_any_of_any_of_any_of_issuer_any_of.py | 176 + ..._of_any_of_any_of_issuer_any_of_address.py | 111 + ...any_of_any_of_issuer_any_of_address_geo.py | 95 + ...ny_of_any_of_any_of_issuer_any_of_image.py | 136 + ...ny_of_any_of_issuer_any_of_image_any_of.py | 91 + ...of_issuer_any_of_other_identifier_inner.py | 99 + .../models/storage_store_request_item.py | 28 +- .../storage_store_request_item_any_of.py | 28 +- ...torage_store_request_item_any_of_any_of.py | 130 + ...ows_participate_in_exchange200_response.py | 24 +- ...esponse_verifiable_presentation_request.py | 29 +- ...fiable_presentation_request_query_inner.py | 20 +- ...uest_query_inner_credential_query_inner.py | 18 + ...rkflows_participate_in_exchange_request.py | 6 +- .../python-client/openapi_client/rest.py | 9 +- .../python-client/pyproject.toml | 3 +- .../test/test_app_store_admin_api.py | 59 + ...pp_store_admin_get_all_listings_request.py | 53 + ...ore_admin_update_listing_status_request.py | 52 + ...re_admin_update_promotion_level_request.py | 52 + .../python-client/test/test_app_store_api.py | 136 + ...st_app_store_browse_listed_apps_request.py | 54 + .../test_app_store_create_listing_request.py | 92 + ...pp_store_create_listing_request_listing.py | 75 + ...pp_store_get_installed_apps200_response.py | 105 + ...nstalled_apps200_response_records_inner.py | 82 + .../test_app_store_get_listing200_response.py | 80 + ...et_listings_for_integration200_response.py | 103 + ...r_integration200_response_records_inner.py | 80 + ...re_get_listings_for_integration_request.py | 52 + .../test_app_store_update_listing_request.py | 90 + ...pp_store_update_listing_request_updates.py | 69 + ..._auth_grants_get_auth_grant200_response.py | 2 +- ...rants_get_auth_grants200_response_inner.py | 4 +- .../test_boost_align_boost_skills_request.py | 62 + ...align_boost_skills_request_skills_inner.py | 54 + ...boost_attach_framework_to_boost_request.py | 54 + ...est_boost_claim_boost_with_link_request.py | 54 + ...test_boost_count_boost_children_request.py | 13 +- .../test_boost_count_boost_parents_request.py | 54 + ...test_boost_count_boost_siblings_request.py | 11 +- ...est_boost_count_familial_boosts_request.py | 15 +- .../test/test_boost_create_boost_request.py | 20 +- .../test_boost_create_child_boost_request.py | 37 +- ..._boost_create_child_boost_request_boost.py | 87 + ...ost_detach_framework_from_boost_request.py | 54 + .../test/test_boost_get_boost200_response.py | 13 + .../test_boost_get_boost200_response_boost.py | 79 + ...oost_get_boost200_response_boost_issuer.py | 90 + ...t_boost200_response_boost_issuer_any_of.py | 90 + ...00_response_boost_issuer_any_of_address.py | 63 + ...esponse_boost_issuer_any_of_address_geo.py | 56 + ...t200_response_boost_issuer_any_of_image.py | 55 + ...sponse_boost_issuer_any_of_image_any_of.py | 55 + ...st_issuer_any_of_other_identifier_inner.py | 56 + ...t_boost200_response_default_permissions.py | 73 + ...test_boost_get_boost_admins200_response.py | 26 +- ..._get_boost_alignments200_response_inner.py | 55 + .../test_boost_get_boost_children_request.py | 11 +- ..._boost_get_boost_frameworks200_response.py | 75 + ...st_frameworks200_response_records_inner.py | 61 + ...est_boost_get_boost_frameworks_request.py} | 29 +- ...oost_get_boost_frameworks_request_query.py | 71 + ...t_boost_frameworks_request_query_any_of.py | 66 + ...rameworks_request_query_any_of_or_inner.py | 55 + ...> test_boost_get_boost_parents_request.py} | 37 +- ..._get_boost_recipients200_response_inner.py | 18 +- ...t_boost_recipients200_response_inner_to.py | 9 +- ..._recipients_with_children_count_request.py | 64 + ...ren_count_request_number_of_generations.py | 50 + .../test_boost_get_boost_siblings_request.py | 11 +- ...test_boost_get_boosts200_response_inner.py | 13 + .../test/test_boost_get_boosts_request.py | 11 +- .../test_boost_get_boosts_request_query.py | 24 + ...t_boost_get_boosts_request_query_any_of.py | 74 + ...t_boosts_request_query_any_of_or_inner.py} | 37 +- ...s_request_query_any_of_or_inner_status.py} | 22 +- ...st_query_any_of_or_inner_status_any_of.py} | 22 +- ..._boosts_request_query_uri_any_of_any_of.py | 56 - .../test_boost_get_familial_boosts_request.py | 15 +- ..._paginated_boost_recipients200_response.py | 30 +- ...st_recipients200_response_records_inner.py | 120 + ...recipients200_response_records_inner_to.py | 87 + ...ts200_response_records_inner_to_display.py | 61 + ...st_recipients_with_children200_response.py | 141 + ...with_children200_response_records_inner.py | 128 + ..._boost_recipients_with_children_request.py | 67 + ..._children_request_number_of_generations.py | 50 + ..._boost_get_paginated_boosts200_response.py | 26 + ...inated_boosts200_response_records_inner.py | 13 + ...test_boost_get_paginated_boosts_request.py | 11 +- ...s_available_for_boost200_response_inner.py | 90 + ...e_for_boost200_response_inner_framework.py | 61 + ...or_boost200_response_inner_skills_inner.py | 62 + .../test_boost_remove_boost_admin_request.py | 54 + .../test_boost_remove_boost_parent_request.py | 54 + ..._skills_available_for_boost200_response.py | 76 + ...ble_for_boost200_response_records_inner.py | 62 + ...arch_skills_available_for_boost_request.py | 56 + ...kills_available_for_boost_request_query.py | 74 + ...vailable_for_boost_request_query_any_of.py | 68 + ...ailable_for_boost_request_query_any_of1.py | 56 + ...for_boost_request_query_any_of_or_inner.py | 56 + ..._boost_request_query_any_of_or_inner_id.py | 64 + ...request_query_any_of_or_inner_id_any_of.py | 58 + ...equest_query_any_of_or_inner_id_any_of1.py | 56 + ...ery_any_of_or_inner_id_any_of1_or_inner.py | 58 + ..._of_or_inner_id_any_of1_or_inner_any_of.py | 56 + ...of_or_inner_id_any_of1_or_inner_any_of1.py | 52 + ...inner_id_any_of1_or_inner_any_of1_regex.py | 50 + ...inner_id_any_of1_or_inner_any_of_any_of.py | 56 + ..._query_any_of_or_inner_id_any_of_any_of.py | 56 + ...query_any_of_or_inner_id_any_of_any_of1.py | 52 + ...any_of_or_inner_id_any_of_any_of1_regex.py | 50 + ...any_of_or_inner_id_any_of_any_of_any_of.py | 56 + ...request_query_any_of_or_inner_statement.py | 64 + ...st_request_query_any_of_or_inner_status.py | 56 + ...est_query_any_of_or_inner_status_any_of.py | 56 + .../test/test_boost_send200_response.py | 56 + ..._any_of_credential_schema_any_of1_inner.py | 54 + ...est_credential_any_of_credential_status.py | 6 +- ...ny_of_credential_subject_any_of1_inner.py} | 25 +- ...oost_request_credential_any_of_evidence.py | 15 +- ...quest_credential_any_of_evidence_any_of.py | 15 +- ...redential_any_of_evidence_any_of1_inner.py | 62 + ..._boost_request_credential_any_of_issuer.py | 4 +- ...request_credential_any_of_issuer_any_of.py | 2 +- ...t_credential_any_of_proof_any_of1_inner.py | 62 + ...l_any_of_refresh_service_any_of1_inner.py} | 26 +- ..._request_credential_any_of_terms_of_use.py | 4 +- .../test/test_boost_send_request.py | 101 + .../test/test_boost_send_request_template.py | 92 + ...send_request_template_claim_permissions.py | 62 + ..._boost_send_request_template_credential.py | 81 + ...send_request_template_credential_any_of.py | 81 + ...end_request_template_credential_any_of1.py | 79 + ...emplate_credential_any_of_context_inner.py | 50 + ...te_credential_any_of_credential_subject.py | 51 + ...est_template_credential_any_of_evidence.py | 62 + ...quest_template_credential_any_of_issuer.py | 90 + ...emplate_credential_any_of_issuer_any_of.py | 90 + ...credential_any_of_issuer_any_of_address.py | 63 + ...ential_any_of_issuer_any_of_address_geo.py | 56 + ...e_credential_any_of_issuer_any_of_image.py | 55 + ...ntial_any_of_issuer_any_of_image_any_of.py | 55 + ...of_issuer_any_of_other_identifier_inner.py | 56 + ..._other_identifier_inner_identifier_type.py | 50 + ...te_credential_any_of_issuer_any_of_type.py | 50 + ...equest_template_credential_any_of_proof.py | 62 + ...nd_request_template_default_permissions.py | 73 + ...oost_send_request_template_skills_inner.py | 54 + .../test/test_boost_update_boost_request.py | 30 +- ...test_boost_update_boost_request_updates.py | 15 +- ..._update_other_boost_permissions_request.py | 76 + ...other_boost_permissions_request_updates.py | 61 + .../python-client/test/test_boosts_api.py | 63 + ...st_claim_hook_create_claim_hook_request.py | 4 +- ...aim_hook_create_claim_hook_request_hook.py | 4 +- ..._create_claim_hook_request_hook_one_of2.py | 58 + ...te_claim_hook_request_hook_one_of2_data.py | 54 + ...oks_for_boost200_response_records_inner.py | 8 +- ...00_response_records_inner_all_of_one_of.py | 84 + ...0_response_records_inner_all_of_one_of1.py | 58 + ...ponse_records_inner_all_of_one_of1_data.py | 54 + ...0_response_records_inner_all_of_one_of2.py | 58 + ...ponse_records_inner_all_of_one_of2_data.py | 54 + ...sponse_records_inner_all_of_one_of_data.py | 80 + ...ds_inner_all_of_one_of_data_permissions.py | 62 + ...get_claim_hooks_for_boost_request_query.py | 17 + .../test/test_contact_methods_api.py | 21 + ...eate_contact_method_session200_response.py | 52 + ...s_create_contact_method_session_request.py | 58 + ...t_method_session_request_contact_method.py | 54 + ...ontact_methods200_response_inner_one_of.py | 4 +- ...t_methods_remove_contact_method_request.py | 52 + ...act_methods_send_challenge200_response.py} | 22 +- ..._contact_methods_send_challenge_request.py | 58 + ...ds_send_challenge_request_configuration.py | 52 + ...hods_verify_with_credential200_response.py | 54 + ...h_credential200_response_contact_method.py | 63 + ...ntial200_response_contact_method_one_of.py | 63 + ...tial200_response_contact_method_one_of1.py | 63 + ...methods_verify_with_credential_request.py} | 28 +- ...cts_add_auto_boosts_to_contract_request.py | 12 +- ...ts_to_contract_request_autoboosts_inner.py | 58 + .../python-client/test/test_contracts_api.py | 56 + ...ntracts_cancel_contract_request_request.py | 54 + ...ntracts_consent_to_contract200_response.py | 53 + ...t_contracts_consent_to_contract_request.py | 7 +- ...racts_consent_to_contract_request_terms.py | 2 +- ..._consent_to_contract_request_terms_read.py | 2 +- ...contract_request_terms_read_credentials.py | 2 +- ...terms_read_credentials_categories_value.py | 56 + ...ts_create_consent_flow_contract_request.py | 24 +- ..._flow_contract_request_autoboosts_inner.py | 8 +- ...uest_autoboosts_inner_signing_authority.py | 6 +- ..._consent_flow_contract_request_contract.py | 20 +- ...ent_flow_contract_request_contract_read.py | 10 +- ...tract_request_contract_read_credentials.py | 5 +- ...tract_read_credentials_categories_value.py | 53 + ...nt_flow_contract_request_contract_write.py | 10 +- ...ard_contract_request_to_profile_request.py | 55 + ..._requests_for_profile200_response_inner.py | 165 + ..._for_profile200_response_inner_contract.py | 102 + ...s_get_consent_flow_contract200_response.py | 79 +- ...sent_flow_contract200_response_contract.py | 100 + ...flow_contract200_response_contract_read.py | 73 + ..._get_consent_flow_contracts200_response.py | 66 +- ...low_contracts200_response_records_inner.py | 53 +- ...cts_get_consented_contracts200_response.py | 98 +- ...ted_contracts200_response_records_inner.py | 124 +- ...ntracts200_response_records_inner_terms.py | 103 + ...ts200_response_records_inner_terms_read.py | 81 + ...se_records_inner_terms_read_credentials.py | 70 + ...terms_read_credentials_categories_value.py | 56 + ...ntracts_get_consented_contracts_request.py | 2 +- ...s_get_consented_contracts_request_query.py | 2 +- ..._consented_contracts_request_query_read.py | 2 +- ...ontracts_request_query_read_credentials.py | 2 +- ...query_read_credentials_categories_value.py | 56 + ...ontracts_get_consented_data200_response.py | 79 + ...onsented_data200_response_records_inner.py | 70 + ...ontract_sent_requests200_response_inner.py | 119 + ..._request_status_for_profile200_response.py | 119 + ...t_terms_transaction_history200_response.py | 24 +- ...ction_history200_response_records_inner.py | 12 +- ...history200_response_records_inner_terms.py | 103 + ...y200_response_records_inner_terms_write.py | 64 + ...e_records_inner_terms_write_credentials.py | 56 + ...s_get_terms_transaction_history_request.py | 4 +- ...terms_transaction_history_request_query.py | 4 +- ...action_history_request_query_expires_at.py | 56 + ...history_request_query_expires_at_any_of.py | 54 + ...istory_request_query_expires_at_any_of1.py | 52 + ..._request_query_expires_at_any_of_any_of.py | 52 + ...request_query_expires_at_any_of_any_of1.py | 52 + ...transaction_history_request_query_terms.py | 4 +- ...action_history_request_query_terms_read.py | 66 + ...s_mark_contract_request_as_seen_request.py | 54 + ...s_send_ai_insight_share_request_request.py | 55 + ...nd_ai_insights_contract_request_request.py | 56 + ...update_consented_contract_terms_request.py | 16 +- ..._consented_contract_terms_request_terms.py | 78 + ...ented_contract_terms_request_terms_read.py | 66 + ...ct_terms_request_terms_read_credentials.py | 61 + ...edential_to_contract_request_credential.py | 108 + ..._contract_via_signing_authority_request.py | 4 +- ...st_credential_accept_credential_request.py | 7 +- ...ntial_accept_credential_request_options.py | 54 + ..._received_credentials200_response_inner.py | 5 +- ...test_credential_send_credential_request.py | 5 +- ...tial_send_credential_request_credential.py | 6 +- ...d_credential_request_credential_any_of1.py | 77 + ...est_credential_any_of1_recipients_inner.py | 80 + ...dential_any_of1_recipients_inner_header.py | 66 + ...ial_any_of1_recipients_inner_header_epk.py | 56 + ...d_metadata_request_authentication_inner.py | 69 + ...ata_request_authentication_inner_any_of.py | 69 + ...hentication_inner_any_of_public_key_jwk.py | 59 + ..._add_did_metadata_request_service_inner.py | 7 +- ..._request_service_inner_service_endpoint.py | 50 - ...adata_request_verification_method_inner.py | 1 + ...equest_verification_method_inner_any_of.py | 1 + ...d_metadata_get_did_metadata200_response.py | 83 + ...tadata200_response_authentication_inner.py | 69 + ...00_response_authentication_inner_any_of.py | 69 + ...hentication_inner_any_of_public_key_jwk.py | 59 + ..._did_metadata200_response_service_inner.py | 60 + ...a200_response_verification_method_inner.py | 69 + ...sponse_verification_method_inner_any_of.py | 69 + ...tion_method_inner_any_of_public_key_jwk.py | 59 + ...ata_update_did_metadata_request_updates.py | 83 + .../test_error_badrequest_issues_inner.py | 52 + ..._inbox_approve_guardian_request_request.py | 52 + .../test/test_inbox_claim200_response.py | 79 + ...nbox_claim200_response_inbox_credential.py | 69 + ...onse_inbox_credential_signing_authority.py | 52 + .../test/test_inbox_claim_request.py | 55 + .../test_inbox_claim_request_configuration.py | 53 + .../test_inbox_claim_request_credential.py | 83 + .../test/test_inbox_finalize200_response.py | 66 + ...x_get_my_issued_credentials200_response.py | 12 +- ...d_credentials200_response_records_inner.py | 6 +- ...esponse_records_inner_signing_authority.py | 52 + ...inbox_get_my_issued_credentials_request.py | 1 + ...get_my_issued_credentials_request_query.py | 1 + ...my_issued_credentials_request_recipient.py | 54 + ...ed_credentials_request_recipient_one_of.py | 54 + .../test/test_inbox_issue200_response.py | 4 +- ...nbox_issue200_response_recipient_one_of.py | 54 + ...box_issue200_response_recipient_one_of1.py | 54 + .../test/test_inbox_issue_request.py | 4 +- ...st_inbox_issue_request_recipient_one_of.py | 4 +- ...end_guardian_approval_email200_response.py | 54 + ...ox_send_guardian_approval_email_request.py | 58 + ...uardian_approval_email_request_template.py | 54 + ...st_integrations_add_integration_request.py | 56 + ...ation_request_whitelisted_domains_inner.py | 50 + .../test/test_integrations_api.py | 80 + ...egration_with_signing_authority_request.py | 57 + ...integrations_count_integrations_request.py | 54 + ...ntegrations_get_integration200_response.py | 63 + ...tegrations_get_integrations200_response.py | 73 + ..._integrations200_response_records_inner.py | 63 + ...t_integrations_get_integrations_request.py | 56 + ...grations_get_integrations_request_query.py | 53 + ...integrations_update_integration_request.py | 64 + ...ions_update_integration_request_updates.py | 56 + ..._send_presentation_request_presentation.py | 6 +- .../test_profile_create_profile_request.py | 11 +- ..._profile_create_profile_request_display.py | 61 + ..._profile_create_service_profile_request.py | 81 + ..._create_service_profile_request_display.py | 61 + .../test_profile_generate_invite_request.py | 3 +- ...file_get_available_profiles200_response.py | 30 +- ...able_profiles200_response_records_inner.py | 28 +- ...files200_response_records_inner_manager.py | 62 + ..._profile_list_invites200_response_inner.py | 58 + ...er_create_child_profile_manager_request.py | 4 +- ...e_child_profile_manager_request_profile.py | 56 + ..._manager_create_managed_profile_request.py | 11 +- ...le_manager_get_managed_profiles_request.py | 62 + ...ofile_search_profiles200_response_inner.py | 9 +- ...t_profile_signing_authority200_response.py | 62 + ...ning_authority200_response_relationship.py | 55 + ...authority200_response_signing_authority.py | 52 + .../test_profile_update_profile_request.py | 11 +- .../python-client/test/test_profiles_api.py | 35 + .../python-client/test/test_schema0.py | 78 + .../python-client/test/test_schema1.py | 133 + .../python-client/test/test_send_api.py | 38 + ...meworks_add_framework_admin200_response.py | 52 + ..._frameworks_add_framework_admin_request.py | 52 + ...t_boosts_that_use_framework200_response.py | 52 + ...frameworks_create_managed_batch_request.py | 114 + ..._managed_batch_request_frameworks_inner.py | 80 + ...skill_frameworks_create_managed_request.py | 80 + .../test_skill_frameworks_create_request.py | 52 + ...s_get_boosts_that_use_framework_request.py | 53 + ..._skill_frameworks_get_by_id200_response.py | 140 + ...frameworks_get_by_id200_response_skills.py | 120 + ...orks_remove_framework_admin200_response.py | 52 + ...l_frameworks_replace_skills200_response.py | 60 + ...skill_frameworks_replace_skills_request.py | 90 + .../test_skill_frameworks_update_request.py | 55 + ..._skills_add_skill_tag200_response_inner.py | 58 + .../test/test_skills_add_skill_tag_request.py | 58 + .../test_skills_add_skill_tag_request_tag.py | 54 + .../python-client/test/test_skills_api.py | 227 + .../test_skills_count_skills200_response.py | 52 + .../test/test_skills_create200_response.py | 64 + .../test/test_skills_create_many_request.py | 93 + .../test/test_skills_create_request.py | 89 + .../test/test_skills_delete200_response.py | 54 + ...ls_get_framework_skill_tree200_response.py | 120 + ..._skills_get_full_skill_tree200_response.py | 116 + .../test/test_skills_get_skill200_response.py | 64 + .../test_skills_get_skill_path200_response.py | 76 + ...kills_list_skill_tags200_response_inner.py | 58 + ..._skills_search_framework_skills_request.py | 56 + ...s_search_framework_skills_request_query.py | 74 + ...h_framework_skills_request_query_any_of.py | 68 + ...kills_sync_framework_skills200_response.py | 140 + .../test/test_skills_update_request.py | 58 + .../test/test_storage_resolve200_response.py | 6 +- ...test_storage_resolve200_response_any_of.py | 62 +- ...orage_resolve200_response_any_of_any_of.py | 98 +- ...rage_resolve200_response_any_of_any_of1.py | 100 + ...resolve200_response_any_of_any_of1_read.py | 73 + ...esponse_any_of_any_of1_read_credentials.py | 60 + ...y_of1_read_credentials_categories_value.py | 53 + ...nse_any_of_any_of1_read_personal_value.py} | 25 +- ...esolve200_response_any_of_any_of1_write.py | 72 + ...ponse_any_of_any_of1_write_credentials.py} | 32 +- ...esolve200_response_any_of_any_of_any_of.py | 79 + ...solve200_response_any_of_any_of_any_of1.py | 77 + ..._any_of_any_of_any_of1_recipients_inner.py | 80 + ..._any_of_any_of1_recipients_inner_header.py | 66 + ..._of_any_of1_recipients_inner_header_epk.py | 56 + ...00_response_any_of_any_of_any_of_any_of.py | 81 + ...0_response_any_of_any_of_any_of_any_of1.py | 63 + ...of_any_of_any_of1_verifiable_credential.py | 81 + ...onse_any_of_any_of_any_of_any_of_any_of.py | 79 + ...nse_any_of_any_of_any_of_any_of_any_of1.py | 81 + ...y_of_any_of_any_of_any_of_any_of_issuer.py | 90 + ...y_of_any_of_any_of_any_of_issuer_any_of.py | 90 + ..._of_any_of_any_of_issuer_any_of_address.py | 63 + ...any_of_any_of_issuer_any_of_address_geo.py | 56 + ...ny_of_any_of_any_of_issuer_any_of_image.py | 55 + ...ny_of_any_of_issuer_any_of_image_any_of.py | 55 + ...of_issuer_any_of_other_identifier_inner.py | 56 + ..._resolve200_response_any_of_any_of_read.py | 69 - ...resolve200_response_any_of_any_of_write.py | 68 - .../test/test_storage_store_request_item.py | 6 +- ...torage_store_request_item_any_of_any_of.py | 63 + .../test/test_universal_inbox_api.py | 35 + 1274 files changed, 100633 insertions(+), 5537 deletions(-) create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreAdminApi.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreAdminGetAllListingsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdateListingStatusRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdatePromotionLevelRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreApi.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreBrowseListedAppsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequestListing.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetListing200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegrationRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequestUpdates.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequestSkillsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostAttachFrameworkToBoostRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostClaimBoostWithLinkRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostCountBoostParentsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequestBoost.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostDetachFrameworkFromBoostRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoost.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuer.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseDefaultPermissions.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAlignments200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQuery.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostParentsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatus.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatusAnyOf.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUri.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf1.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostAdminRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostParentRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQuery.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSend200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplate.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateClaimPermissions.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredential.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfProof.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateDefaultPermissions.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateSkillsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSession200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsRemoveContactMethodRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallenge200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequestConfiguration.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsSetPrimaryContactMethod200Response.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyContactMethod200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredentialRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsCancelContractRequestRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContract200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsForwardContractRequestToProfileRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContract.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContractRead.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetContractSentRequests200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetRequestStatusForProfile200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsMarkContractRequestAsSeenRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightShareRequestRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightsContractRequestRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTerms.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequestCredential.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequestOptions.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseServiceInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequestUpdates.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUESTIssuesInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxApproveGuardianRequestRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaim200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredential.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaimRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestConfiguration.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestCredential.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxFinalize200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipient.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmail200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequestTemplate.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsApi.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsCountIntegrationsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegration200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200ResponseRecordsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequestQuery.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequestUpdates.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequestDisplay.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequestDisplay.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileListInvites200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequestProfile.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileManagerGetManagedProfilesRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseRelationship.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseSigningAuthority.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/Schema0.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/Schema1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SendApi.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdmin200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdminRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCountBoostsThatUseFramework200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200ResponseSkills.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksRemoveFrameworkAdmin200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkills200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkillsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillFrameworksUpdateRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTag200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequestTag.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsApi.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsCountSkills200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsCreate200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsCreateManyRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsCreateRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsDelete200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsGetFrameworkSkillTree200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsGetFullSkillTree200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsGetSkill200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsGetSkillPath200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsListSkillTags200ResponseInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQuery.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsSyncFrameworkSkills200Response.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/SkillsUpdateRequest.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Read.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Write.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfRead.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md delete mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfWrite.md create mode 100644 packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOfAnyOf.md create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_admin_api.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_api.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/api/integrations_api.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/api/send_api.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/api/skills_api.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_get_all_listings_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_listing_status_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_promotion_level_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_browse_listed_apps_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request_listing.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listing200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_attach_framework_to_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_claim_boost_with_link_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_parents_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request_boost.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_detach_framework_from_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_uri_any_of.py => boost_get_boost200_response_boost_issuer.py} (72%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_default_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_alignments200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of_or_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_parents_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request_number_of_generations.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_status.py => boost_get_boosts_request_query_any_of_or_inner_status.py} (74%) rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_status_any_of.py => boost_get_boosts_request_query_any_of_or_inner_status_any_of.py} (88%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to_display.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_framework.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_admin_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_parent_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_uri_any_of_any_of.py => boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py} (83%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{did_metadata_add_did_metadata_request_service_inner_service_endpoint.py => boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py} (76%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send200_response.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_send_boost_request_credential_any_of_credential_status_any_of.py => boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py} (88%) rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_send_boost_request_credential_any_of_terms_of_use_any_of.py => boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py} (90%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of1_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_claim_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_context_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_credential_subject.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_evidence.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_type.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_proof.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_default_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2_data.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request_contact_method.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_remove_contact_method_request.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{contact_methods_set_primary_contact_method200_response.py => contact_methods_send_challenge200_response.py} (87%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request_configuration.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_cancel_contract_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_forward_contract_request_to_profile_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner_contract.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract_read.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_contract_sent_requests200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_request_status_for_profile200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_mark_contract_request_as_seen_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insight_share_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insights_contract_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request_options.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_service_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest_issues_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_approve_guardian_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_configuration.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_uri.py => inbox_claim_request_credential.py} (60%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_finalize200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request_template.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request_whitelisted_domains_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_associate_integration_with_signing_authority_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_count_integrations_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integration200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request_display.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request_display.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner_manager.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_list_invites200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request_profile.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_get_managed_profiles_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_relationship.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/schema0.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/schema1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_count_boosts_that_use_framework200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request_frameworks_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_request.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{boost_get_boosts_request_query_uri_any_of1.py => skill_frameworks_create_request.py} (78%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_boosts_that_use_framework_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response_skills.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py => skill_frameworks_remove_framework_admin200_response.py} (80%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_update_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag200_response_inner.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{contact_methods_verify_contact_method200_response.py => skills_add_skill_tag_request.py} (67%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request_tag.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_count_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_many_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_delete200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_framework_skill_tree200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_full_skill_tree200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill_path200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_list_skill_tags200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_sync_framework_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/skills_update_request.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{storage_resolve200_response_any_of_any_of_read.py => storage_resolve200_response_any_of_any_of1_read.py} (71%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_personal_value.py rename packages/open-api-lcn-clients/python-client/openapi_client/models/{storage_resolve200_response_any_of_any_of_write.py => storage_resolve200_response_any_of_any_of1_write.py} (70%) rename packages/open-api-lcn-clients/python-client/openapi_client/models/{storage_resolve200_response_any_of_any_of_read_credentials.py => storage_resolve200_response_any_of_any_of1_write_credentials.py} (85%) create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_admin_api.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_admin_get_all_listings_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_listing_status_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_promotion_level_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_api.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_browse_listed_apps_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request_listing.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_listing200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_attach_framework_to_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_claim_boost_with_link_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_parents_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request_boost.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_detach_framework_from_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_default_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_alignments200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response_records_inner.py rename packages/open-api-lcn-clients/python-client/test/{test_boost_get_boosts_request_query_uri_any_of1.py => test_boost_get_boost_frameworks_request.py} (53%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of_or_inner.py rename packages/open-api-lcn-clients/python-client/test/{test_boost_get_boosts_request_query_uri.py => test_boost_get_boost_parents_request.py} (52%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request_number_of_generations.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of.py rename packages/open-api-lcn-clients/python-client/test/{test_boost_get_boosts_request_query_uri_any_of.py => test_boost_get_boosts_request_query_any_of_or_inner.py} (50%) rename packages/open-api-lcn-clients/python-client/test/{test_boost_get_boosts_request_query_status_any_of.py => test_boost_get_boosts_request_query_any_of_or_inner_status.py} (60%) rename packages/open-api-lcn-clients/python-client/test/{test_boost_get_boosts_request_query_status.py => test_boost_get_boosts_request_query_any_of_or_inner_status_any_of.py} (58%) delete mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to_display.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_framework.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_admin_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_parent_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py rename packages/open-api-lcn-clients/python-client/test/{test_boost_send_boost_request_credential_any_of_credential_status_any_of.py => test_boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py} (60%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_proof_any_of1_inner.py rename packages/open-api-lcn-clients/python-client/test/{test_boost_send_boost_request_credential_any_of_terms_of_use_any_of.py => test_boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py} (53%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_claim_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_context_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_credential_subject.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_evidence.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_type.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_proof.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_default_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_skills_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2_data.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request_contact_method.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_remove_contact_method_request.py rename packages/open-api-lcn-clients/python-client/test/{test_contact_methods_set_primary_contact_method200_response.py => test_contact_methods_send_challenge200_response.py} (56%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request_configuration.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of1.py rename packages/open-api-lcn-clients/python-client/test/{test_contact_methods_verify_contact_method200_response.py => test_contact_methods_verify_with_credential_request.py} (52%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_cancel_contract_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_forward_contract_request_to_profile_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner_contract.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract_read.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials_categories_value.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_contract_sent_requests200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_request_status_for_profile200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_mark_contract_request_as_seen_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insight_share_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insights_contract_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_request_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request_options.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py delete mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner_service_endpoint.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_service_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_did_metadata_update_did_metadata_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_error_badrequest_issues_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_approve_guardian_request_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_configuration.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_finalize200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request_template.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request_whitelisted_domains_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_api.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_associate_integration_with_signing_authority_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_count_integrations_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_get_integration200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response_records_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request_updates.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request_display.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request_display.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner_manager.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_list_invites200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request_profile.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_manager_get_managed_profiles_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_relationship.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_signing_authority.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_schema0.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_schema1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_send_api.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_count_boosts_that_use_framework200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request_frameworks_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_boosts_that_use_framework_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response_skills.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_remove_framework_admin200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_update_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request_tag.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_api.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_count_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_create200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_create_many_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_create_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_delete200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_get_framework_skill_tree200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_get_full_skill_tree200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_get_skill200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_get_skill_path200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_list_skill_tags200_response_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_sync_framework_skills200_response.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_skills_update_request.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py rename packages/open-api-lcn-clients/python-client/test/{test_storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py => test_storage_resolve200_response_any_of_any_of1_read_personal_value.py} (52%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write.py rename packages/open-api-lcn-clients/python-client/test/{test_storage_resolve200_response_any_of_any_of_read_credentials.py => test_storage_resolve200_response_any_of_any_of1_write_credentials.py} (51%) create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py delete mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read.py delete mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_write.py create mode 100644 packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item_any_of_any_of.py diff --git a/packages/open-api-lcn-clients/python-client/.gitignore b/packages/open-api-lcn-clients/python-client/.gitignore index 43995bd42f..65b06b9554 100644 --- a/packages/open-api-lcn-clients/python-client/.gitignore +++ b/packages/open-api-lcn-clients/python-client/.gitignore @@ -62,5 +62,5 @@ docs/_build/ # PyBuilder target/ -#Ipython Notebook +# Ipython Notebook .ipynb_checkpoints diff --git a/packages/open-api-lcn-clients/python-client/.openapi-generator/FILES b/packages/open-api-lcn-clients/python-client/.openapi-generator/FILES index bd7fa99128..75fdda9098 100644 --- a/packages/open-api-lcn-clients/python-client/.openapi-generator/FILES +++ b/packages/open-api-lcn-clients/python-client/.openapi-generator/FILES @@ -4,6 +4,22 @@ .openapi-generator-ignore .travis.yml README.md +docs/AppStoreAdminApi.md +docs/AppStoreAdminGetAllListingsRequest.md +docs/AppStoreAdminUpdateListingStatusRequest.md +docs/AppStoreAdminUpdatePromotionLevelRequest.md +docs/AppStoreApi.md +docs/AppStoreBrowseListedAppsRequest.md +docs/AppStoreCreateListingRequest.md +docs/AppStoreCreateListingRequestListing.md +docs/AppStoreGetInstalledApps200Response.md +docs/AppStoreGetInstalledApps200ResponseRecordsInner.md +docs/AppStoreGetListing200Response.md +docs/AppStoreGetListingsForIntegration200Response.md +docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md +docs/AppStoreGetListingsForIntegrationRequest.md +docs/AppStoreUpdateListingRequest.md +docs/AppStoreUpdateListingRequestUpdates.md docs/AuthGrantsAddAuthGrantRequest.md docs/AuthGrantsApi.md docs/AuthGrantsGetAuthGrant200Response.md @@ -13,7 +29,12 @@ docs/AuthGrantsGetAuthGrantsRequestQuery.md docs/AuthGrantsUpdateAuthGrantRequest.md docs/AuthGrantsUpdateAuthGrantRequestUpdates.md docs/BoostAddBoostAdminRequest.md +docs/BoostAlignBoostSkillsRequest.md +docs/BoostAlignBoostSkillsRequestSkillsInner.md +docs/BoostAttachFrameworkToBoostRequest.md +docs/BoostClaimBoostWithLinkRequest.md docs/BoostCountBoostChildrenRequest.md +docs/BoostCountBoostParentsRequest.md docs/BoostCountBoostSiblingsRequest.md docs/BoostCountFamilialBoostsRequest.md docs/BoostCreateBoostRequest.md @@ -21,28 +42,47 @@ docs/BoostCreateBoostRequestClaimPermissions.md docs/BoostCreateBoostRequestCredential.md docs/BoostCreateBoostRequestCredentialAnyOf.md docs/BoostCreateChildBoostRequest.md +docs/BoostCreateChildBoostRequestBoost.md +docs/BoostDetachFrameworkFromBoostRequest.md docs/BoostGenerateClaimLink200Response.md docs/BoostGenerateClaimLinkRequest.md docs/BoostGenerateClaimLinkRequestClaimLinkSA.md docs/BoostGenerateClaimLinkRequestOptions.md docs/BoostGetBoost200Response.md +docs/BoostGetBoost200ResponseBoost.md +docs/BoostGetBoost200ResponseBoostIssuer.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md +docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md docs/BoostGetBoost200ResponseClaimPermissions.md +docs/BoostGetBoost200ResponseDefaultPermissions.md docs/BoostGetBoostAdmins200Response.md docs/BoostGetBoostAdminsRequest.md +docs/BoostGetBoostAlignments200ResponseInner.md docs/BoostGetBoostChildrenRequest.md +docs/BoostGetBoostFrameworks200Response.md +docs/BoostGetBoostFrameworks200ResponseRecordsInner.md +docs/BoostGetBoostFrameworksRequest.md +docs/BoostGetBoostFrameworksRequestQuery.md +docs/BoostGetBoostFrameworksRequestQueryAnyOf.md +docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md +docs/BoostGetBoostParentsRequest.md docs/BoostGetBoostRecipients200ResponseInner.md docs/BoostGetBoostRecipients200ResponseInnerTo.md docs/BoostGetBoostRecipients200ResponseInnerToDisplay.md +docs/BoostGetBoostRecipientsWithChildrenCountRequest.md +docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md docs/BoostGetBoostSiblingsRequest.md docs/BoostGetBoosts200ResponseInner.md docs/BoostGetBoostsRequest.md docs/BoostGetBoostsRequestQuery.md -docs/BoostGetBoostsRequestQueryStatus.md -docs/BoostGetBoostsRequestQueryStatusAnyOf.md -docs/BoostGetBoostsRequestQueryUri.md -docs/BoostGetBoostsRequestQueryUriAnyOf.md -docs/BoostGetBoostsRequestQueryUriAnyOf1.md -docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md +docs/BoostGetBoostsRequestQueryAnyOf.md +docs/BoostGetBoostsRequestQueryAnyOfOrInner.md +docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md +docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md docs/BoostGetChildrenProfileManagers200Response.md docs/BoostGetChildrenProfileManagers200ResponseRecordsInner.md docs/BoostGetChildrenProfileManagersRequest.md @@ -50,12 +90,47 @@ docs/BoostGetChildrenProfileManagersRequestQuery.md docs/BoostGetConnectedBoostRecipientsRequest.md docs/BoostGetFamilialBoostsRequest.md docs/BoostGetPaginatedBoostRecipients200Response.md +docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md +docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md +docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md docs/BoostGetPaginatedBoostRecipientsRequest.md docs/BoostGetPaginatedBoostRecipientsRequestQuery.md +docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md +docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md +docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md +docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md docs/BoostGetPaginatedBoosts200Response.md docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md docs/BoostGetPaginatedBoostsRequest.md +docs/BoostGetSkillsAvailableForBoost200ResponseInner.md +docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md +docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md docs/BoostMakeBoostParentRequest.md +docs/BoostRemoveBoostAdminRequest.md +docs/BoostRemoveBoostParentRequest.md +docs/BoostSearchSkillsAvailableForBoost200Response.md +docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md +docs/BoostSearchSkillsAvailableForBoostRequest.md +docs/BoostSearchSkillsAvailableForBoostRequestQuery.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md +docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md +docs/BoostSend200Response.md docs/BoostSendBoostRequest.md docs/BoostSendBoostRequestCredential.md docs/BoostSendBoostRequestCredentialAnyOf.md @@ -66,12 +141,14 @@ docs/BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md docs/BoostSendBoostRequestCredentialAnyOfContextInner.md docs/BoostSendBoostRequestCredentialAnyOfCredentialSchema.md docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf.md +docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md -docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md docs/BoostSendBoostRequestCredentialAnyOfCredentialSubject.md docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf.md +docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md docs/BoostSendBoostRequestCredentialAnyOfEvidence.md docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md +docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md docs/BoostSendBoostRequestCredentialAnyOfIssuer.md docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOf.md docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress.md @@ -84,27 +161,60 @@ docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifi docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md docs/BoostSendBoostRequestCredentialAnyOfProof.md docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf.md +docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md docs/BoostSendBoostRequestCredentialAnyOfRefreshService.md docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf.md +docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md -docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md docs/BoostSendBoostRequestOptions.md docs/BoostSendBoostViaSigningAuthorityRequest.md docs/BoostSendBoostViaSigningAuthorityRequestSigningAuthority.md +docs/BoostSendRequest.md +docs/BoostSendRequestTemplate.md +docs/BoostSendRequestTemplateClaimPermissions.md +docs/BoostSendRequestTemplateCredential.md +docs/BoostSendRequestTemplateCredentialAnyOf.md +docs/BoostSendRequestTemplateCredentialAnyOf1.md +docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md +docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md +docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md +docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md +docs/BoostSendRequestTemplateCredentialAnyOfProof.md +docs/BoostSendRequestTemplateDefaultPermissions.md +docs/BoostSendRequestTemplateSkillsInner.md docs/BoostUpdateBoostPermissionsRequest.md docs/BoostUpdateBoostPermissionsRequestUpdates.md docs/BoostUpdateBoostRequest.md docs/BoostUpdateBoostRequestUpdates.md +docs/BoostUpdateOtherBoostPermissionsRequest.md +docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md docs/BoostsApi.md docs/ClaimHookCreateClaimHookRequest.md docs/ClaimHookCreateClaimHookRequestHook.md docs/ClaimHookCreateClaimHookRequestHookOneOf.md docs/ClaimHookCreateClaimHookRequestHookOneOf1.md docs/ClaimHookCreateClaimHookRequestHookOneOf1Data.md +docs/ClaimHookCreateClaimHookRequestHookOneOf2.md +docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md docs/ClaimHookCreateClaimHookRequestHookOneOfData.md docs/ClaimHookDeleteClaimHookRequest.md docs/ClaimHookGetClaimHooksForBoost200Response.md docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md +docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md docs/ClaimHookGetClaimHooksForBoostRequest.md docs/ClaimHookGetClaimHooksForBoostRequestQuery.md docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md @@ -113,19 +223,33 @@ docs/ClaimHooksApi.md docs/ContactMethodsAddContactMethod200Response.md docs/ContactMethodsAddContactMethodRequest.md docs/ContactMethodsApi.md +docs/ContactMethodsCreateContactMethodSession200Response.md +docs/ContactMethodsCreateContactMethodSessionRequest.md +docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md docs/ContactMethodsGetMyContactMethods200ResponseInner.md docs/ContactMethodsGetMyContactMethods200ResponseInnerOneOf.md docs/ContactMethodsGetMyContactMethods200ResponseInnerOneOf1.md -docs/ContactMethodsSetPrimaryContactMethod200Response.md +docs/ContactMethodsRemoveContactMethodRequest.md +docs/ContactMethodsSendChallenge200Response.md +docs/ContactMethodsSendChallengeRequest.md +docs/ContactMethodsSendChallengeRequestConfiguration.md docs/ContactMethodsSetPrimaryContactMethodRequest.md -docs/ContactMethodsVerifyContactMethod200Response.md docs/ContactMethodsVerifyContactMethodRequest.md +docs/ContactMethodsVerifyWithCredential200Response.md +docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md +docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md +docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md +docs/ContactMethodsVerifyWithCredentialRequest.md docs/ContractsAddAutoBoostsToContractRequest.md +docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md docs/ContractsApi.md +docs/ContractsCancelContractRequestRequest.md +docs/ContractsConsentToContract200Response.md docs/ContractsConsentToContractRequest.md docs/ContractsConsentToContractRequestTerms.md docs/ContractsConsentToContractRequestTermsRead.md docs/ContractsConsentToContractRequestTermsReadCredentials.md +docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md docs/ContractsConsentToContractRequestTermsWrite.md docs/ContractsConsentToContractRequestTermsWriteCredentials.md docs/ContractsCreateConsentFlowContractRequest.md @@ -134,9 +258,15 @@ docs/ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md docs/ContractsCreateConsentFlowContractRequestContract.md docs/ContractsCreateConsentFlowContractRequestContractRead.md docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md +docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md docs/ContractsCreateConsentFlowContractRequestContractWrite.md +docs/ContractsForwardContractRequestToProfileRequest.md +docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md +docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md docs/ContractsGetAllCredentialsForTermsRequest.md docs/ContractsGetConsentFlowContract200Response.md +docs/ContractsGetConsentFlowContract200ResponseContract.md +docs/ContractsGetConsentFlowContract200ResponseContractRead.md docs/ContractsGetConsentFlowContracts200Response.md docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md docs/ContractsGetConsentFlowContractsRequest.md @@ -147,11 +277,18 @@ docs/ContractsGetConsentFlowContractsRequestQueryReadCredentialsCategoriesValue. docs/ContractsGetConsentFlowContractsRequestQueryWrite.md docs/ContractsGetConsentedContracts200Response.md docs/ContractsGetConsentedContracts200ResponseRecordsInner.md +docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md +docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md +docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md +docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md docs/ContractsGetConsentedContractsRequest.md docs/ContractsGetConsentedContractsRequestQuery.md docs/ContractsGetConsentedContractsRequestQueryRead.md docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md +docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md docs/ContractsGetConsentedContractsRequestQueryWrite.md +docs/ContractsGetConsentedData200Response.md +docs/ContractsGetConsentedData200ResponseRecordsInner.md docs/ContractsGetConsentedDataForContract200Response.md docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md docs/ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials.md @@ -164,11 +301,16 @@ docs/ContractsGetConsentedDataForDid200ResponseRecordsInnerCredentialsInner.md docs/ContractsGetConsentedDataForDidRequest.md docs/ContractsGetConsentedDataForDidRequestQuery.md docs/ContractsGetConsentedDataRequest.md +docs/ContractsGetContractSentRequests200ResponseInner.md docs/ContractsGetCredentialsForContract200Response.md docs/ContractsGetCredentialsForContract200ResponseRecordsInner.md docs/ContractsGetCredentialsForContractRequest.md +docs/ContractsGetRequestStatusForProfile200Response.md docs/ContractsGetTermsTransactionHistory200Response.md docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md +docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md +docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md +docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md docs/ContractsGetTermsTransactionHistoryRequest.md docs/ContractsGetTermsTransactionHistoryRequestQuery.md docs/ContractsGetTermsTransactionHistoryRequestQueryAction.md @@ -177,38 +319,81 @@ docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf.md docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1.md docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf.md docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1.md +docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md +docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md +docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md +docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md +docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md +docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md +docs/ContractsMarkContractRequestAsSeenRequest.md docs/ContractsRemoveAutoBoostsFromContractRequest.md +docs/ContractsSendAiInsightShareRequestRequest.md +docs/ContractsSendAiInsightsContractRequestRequest.md docs/ContractsSyncCredentialsToContractRequest.md docs/ContractsUpdateConsentedContractTermsRequest.md +docs/ContractsUpdateConsentedContractTermsRequestTerms.md +docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md +docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md docs/ContractsWriteCredentialToContractRequest.md +docs/ContractsWriteCredentialToContractRequestCredential.md docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md docs/CredentialAcceptCredentialRequest.md +docs/CredentialAcceptCredentialRequestOptions.md docs/CredentialReceivedCredentials200ResponseInner.md docs/CredentialSendCredentialRequest.md docs/CredentialSendCredentialRequestCredential.md docs/CredentialSendCredentialRequestCredentialAnyOf.md +docs/CredentialSendCredentialRequestCredentialAnyOf1.md +docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md +docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md +docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md docs/CredentialsApi.md docs/DIDMetadataApi.md docs/DidMetadataAddDidMetadataRequest.md +docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md +docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md +docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md docs/DidMetadataAddDidMetadataRequestServiceInner.md -docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk.md +docs/DidMetadataGetDidMetadata200Response.md +docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md +docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md +docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md +docs/DidMetadataGetDidMetadata200ResponseServiceInner.md +docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md +docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md +docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md docs/DidMetadataGetMyDidMetadata200ResponseInner.md docs/DidMetadataUpdateDidMetadataRequest.md +docs/DidMetadataUpdateDidMetadataRequestUpdates.md docs/ErrorBADREQUEST.md +docs/ErrorBADREQUESTIssuesInner.md docs/ErrorFORBIDDEN.md docs/ErrorINTERNALSERVERERROR.md docs/ErrorNOTFOUND.md docs/ErrorUNAUTHORIZED.md +docs/InboxApproveGuardianRequestRequest.md +docs/InboxClaim200Response.md +docs/InboxClaim200ResponseInboxCredential.md +docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md +docs/InboxClaimRequest.md +docs/InboxClaimRequestConfiguration.md +docs/InboxClaimRequestCredential.md +docs/InboxFinalize200Response.md docs/InboxGetMyIssuedCredentials200Response.md docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md +docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md docs/InboxGetMyIssuedCredentialsRequest.md docs/InboxGetMyIssuedCredentialsRequestQuery.md +docs/InboxGetMyIssuedCredentialsRequestRecipient.md +docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md docs/InboxIssue200Response.md docs/InboxIssue200ResponseRecipient.md +docs/InboxIssue200ResponseRecipientOneOf.md +docs/InboxIssue200ResponseRecipientOneOf1.md docs/InboxIssueRequest.md docs/InboxIssueRequestConfiguration.md docs/InboxIssueRequestConfigurationDelivery.md @@ -223,6 +408,21 @@ docs/InboxIssueRequestCredentialAnyOf.md docs/InboxIssueRequestRecipient.md docs/InboxIssueRequestRecipientOneOf.md docs/InboxIssueRequestRecipientOneOf1.md +docs/InboxSendGuardianApprovalEmail200Response.md +docs/InboxSendGuardianApprovalEmailRequest.md +docs/InboxSendGuardianApprovalEmailRequestTemplate.md +docs/IntegrationsAddIntegrationRequest.md +docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md +docs/IntegrationsApi.md +docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md +docs/IntegrationsCountIntegrationsRequest.md +docs/IntegrationsGetIntegration200Response.md +docs/IntegrationsGetIntegrations200Response.md +docs/IntegrationsGetIntegrations200ResponseRecordsInner.md +docs/IntegrationsGetIntegrationsRequest.md +docs/IntegrationsGetIntegrationsRequestQuery.md +docs/IntegrationsUpdateIntegrationRequest.md +docs/IntegrationsUpdateIntegrationRequestUpdates.md docs/PresentationAcceptPresentationRequest.md docs/PresentationSendPresentationRequest.md docs/PresentationSendPresentationRequestPresentation.md @@ -230,14 +430,21 @@ docs/PresentationSendPresentationRequestPresentationAnyOf.md docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md docs/PresentationsApi.md docs/ProfileCreateProfileRequest.md +docs/ProfileCreateProfileRequestDisplay.md +docs/ProfileCreateServiceProfileRequest.md +docs/ProfileCreateServiceProfileRequestDisplay.md docs/ProfileGenerateInvite200Response.md docs/ProfileGenerateInviteRequest.md docs/ProfileGetAvailableProfiles200Response.md docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md +docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md docs/ProfileGetAvailableProfilesRequest.md +docs/ProfileListInvites200ResponseInner.md docs/ProfileManagerCreateChildProfileManagerRequest.md +docs/ProfileManagerCreateChildProfileManagerRequestProfile.md docs/ProfileManagerCreateManagedProfileRequest.md docs/ProfileManagerCreateProfileManagerRequest.md +docs/ProfileManagerGetManagedProfilesRequest.md docs/ProfileManagersApi.md docs/ProfileRegisterSigningAuthorityRequest.md docs/ProfileSearchProfiles200ResponseInner.md @@ -245,8 +452,47 @@ docs/ProfileSetPrimarySigningAuthorityRequest.md docs/ProfileSigningAuthorities200ResponseInner.md docs/ProfileSigningAuthorities200ResponseInnerRelationship.md docs/ProfileSigningAuthorities200ResponseInnerSigningAuthority.md +docs/ProfileSigningAuthority200Response.md +docs/ProfileSigningAuthority200ResponseRelationship.md +docs/ProfileSigningAuthority200ResponseSigningAuthority.md docs/ProfileUpdateProfileRequest.md docs/ProfilesApi.md +docs/Schema0.md +docs/Schema1.md +docs/SendApi.md +docs/SkillFrameworksAddFrameworkAdmin200Response.md +docs/SkillFrameworksAddFrameworkAdminRequest.md +docs/SkillFrameworksCountBoostsThatUseFramework200Response.md +docs/SkillFrameworksCreateManagedBatchRequest.md +docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md +docs/SkillFrameworksCreateManagedRequest.md +docs/SkillFrameworksCreateRequest.md +docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md +docs/SkillFrameworksGetById200Response.md +docs/SkillFrameworksGetById200ResponseSkills.md +docs/SkillFrameworksRemoveFrameworkAdmin200Response.md +docs/SkillFrameworksReplaceSkills200Response.md +docs/SkillFrameworksReplaceSkillsRequest.md +docs/SkillFrameworksUpdateRequest.md +docs/SkillsAddSkillTag200ResponseInner.md +docs/SkillsAddSkillTagRequest.md +docs/SkillsAddSkillTagRequestTag.md +docs/SkillsApi.md +docs/SkillsCountSkills200Response.md +docs/SkillsCreate200Response.md +docs/SkillsCreateManyRequest.md +docs/SkillsCreateRequest.md +docs/SkillsDelete200Response.md +docs/SkillsGetFrameworkSkillTree200Response.md +docs/SkillsGetFullSkillTree200Response.md +docs/SkillsGetSkill200Response.md +docs/SkillsGetSkillPath200Response.md +docs/SkillsListSkillTags200ResponseInner.md +docs/SkillsSearchFrameworkSkillsRequest.md +docs/SkillsSearchFrameworkSkillsRequestQuery.md +docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md +docs/SkillsSyncFrameworkSkills200Response.md +docs/SkillsUpdateRequest.md docs/StorageApi.md docs/StorageResolve200Response.md docs/StorageResolve200ResponseAnyOf.md @@ -257,13 +503,34 @@ docs/StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue.md docs/StorageResolve200ResponseAnyOf1Write.md docs/StorageResolve200ResponseAnyOf1WriteCredentials.md docs/StorageResolve200ResponseAnyOfAnyOf.md -docs/StorageResolve200ResponseAnyOfAnyOfRead.md -docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md -docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md -docs/StorageResolve200ResponseAnyOfAnyOfWrite.md +docs/StorageResolve200ResponseAnyOfAnyOf1.md +docs/StorageResolve200ResponseAnyOfAnyOf1Read.md +docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md +docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md +docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md +docs/StorageResolve200ResponseAnyOfAnyOf1Write.md +docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md +docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md docs/StorageStoreRequest.md docs/StorageStoreRequestItem.md docs/StorageStoreRequestItemAnyOf.md +docs/StorageStoreRequestItemAnyOfAnyOf.md docs/UniversalInboxApi.md docs/UtilitiesApi.md docs/VCAPIApi.md @@ -276,6 +543,8 @@ docs/WorkflowsParticipateInExchangeRequest.md git_push.sh openapi_client/__init__.py openapi_client/api/__init__.py +openapi_client/api/app_store_admin_api.py +openapi_client/api/app_store_api.py openapi_client/api/auth_grants_api.py openapi_client/api/boosts_api.py openapi_client/api/claim_hooks_api.py @@ -283,9 +552,12 @@ openapi_client/api/contact_methods_api.py openapi_client/api/contracts_api.py openapi_client/api/credentials_api.py openapi_client/api/did_metadata_api.py +openapi_client/api/integrations_api.py openapi_client/api/presentations_api.py openapi_client/api/profile_managers_api.py openapi_client/api/profiles_api.py +openapi_client/api/send_api.py +openapi_client/api/skills_api.py openapi_client/api/storage_api.py openapi_client/api/universal_inbox_api.py openapi_client/api/utilities_api.py @@ -296,6 +568,20 @@ openapi_client/api_response.py openapi_client/configuration.py openapi_client/exceptions.py openapi_client/models/__init__.py +openapi_client/models/app_store_admin_get_all_listings_request.py +openapi_client/models/app_store_admin_update_listing_status_request.py +openapi_client/models/app_store_admin_update_promotion_level_request.py +openapi_client/models/app_store_browse_listed_apps_request.py +openapi_client/models/app_store_create_listing_request.py +openapi_client/models/app_store_create_listing_request_listing.py +openapi_client/models/app_store_get_installed_apps200_response.py +openapi_client/models/app_store_get_installed_apps200_response_records_inner.py +openapi_client/models/app_store_get_listing200_response.py +openapi_client/models/app_store_get_listings_for_integration200_response.py +openapi_client/models/app_store_get_listings_for_integration200_response_records_inner.py +openapi_client/models/app_store_get_listings_for_integration_request.py +openapi_client/models/app_store_update_listing_request.py +openapi_client/models/app_store_update_listing_request_updates.py openapi_client/models/auth_grants_add_auth_grant_request.py openapi_client/models/auth_grants_get_auth_grant200_response.py openapi_client/models/auth_grants_get_auth_grants200_response_inner.py @@ -304,7 +590,12 @@ openapi_client/models/auth_grants_get_auth_grants_request_query.py openapi_client/models/auth_grants_update_auth_grant_request.py openapi_client/models/auth_grants_update_auth_grant_request_updates.py openapi_client/models/boost_add_boost_admin_request.py +openapi_client/models/boost_align_boost_skills_request.py +openapi_client/models/boost_align_boost_skills_request_skills_inner.py +openapi_client/models/boost_attach_framework_to_boost_request.py +openapi_client/models/boost_claim_boost_with_link_request.py openapi_client/models/boost_count_boost_children_request.py +openapi_client/models/boost_count_boost_parents_request.py openapi_client/models/boost_count_boost_siblings_request.py openapi_client/models/boost_count_familial_boosts_request.py openapi_client/models/boost_create_boost_request.py @@ -312,28 +603,47 @@ openapi_client/models/boost_create_boost_request_claim_permissions.py openapi_client/models/boost_create_boost_request_credential.py openapi_client/models/boost_create_boost_request_credential_any_of.py openapi_client/models/boost_create_child_boost_request.py +openapi_client/models/boost_create_child_boost_request_boost.py +openapi_client/models/boost_detach_framework_from_boost_request.py openapi_client/models/boost_generate_claim_link200_response.py openapi_client/models/boost_generate_claim_link_request.py openapi_client/models/boost_generate_claim_link_request_claim_link_sa.py openapi_client/models/boost_generate_claim_link_request_options.py openapi_client/models/boost_get_boost200_response.py +openapi_client/models/boost_get_boost200_response_boost.py +openapi_client/models/boost_get_boost200_response_boost_issuer.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address_geo.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image_any_of.py +openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py openapi_client/models/boost_get_boost200_response_claim_permissions.py +openapi_client/models/boost_get_boost200_response_default_permissions.py openapi_client/models/boost_get_boost_admins200_response.py openapi_client/models/boost_get_boost_admins_request.py +openapi_client/models/boost_get_boost_alignments200_response_inner.py openapi_client/models/boost_get_boost_children_request.py +openapi_client/models/boost_get_boost_frameworks200_response.py +openapi_client/models/boost_get_boost_frameworks200_response_records_inner.py +openapi_client/models/boost_get_boost_frameworks_request.py +openapi_client/models/boost_get_boost_frameworks_request_query.py +openapi_client/models/boost_get_boost_frameworks_request_query_any_of.py +openapi_client/models/boost_get_boost_frameworks_request_query_any_of_or_inner.py +openapi_client/models/boost_get_boost_parents_request.py openapi_client/models/boost_get_boost_recipients200_response_inner.py openapi_client/models/boost_get_boost_recipients200_response_inner_to.py openapi_client/models/boost_get_boost_recipients200_response_inner_to_display.py +openapi_client/models/boost_get_boost_recipients_with_children_count_request.py +openapi_client/models/boost_get_boost_recipients_with_children_count_request_number_of_generations.py openapi_client/models/boost_get_boost_siblings_request.py openapi_client/models/boost_get_boosts200_response_inner.py openapi_client/models/boost_get_boosts_request.py openapi_client/models/boost_get_boosts_request_query.py -openapi_client/models/boost_get_boosts_request_query_status.py -openapi_client/models/boost_get_boosts_request_query_status_any_of.py -openapi_client/models/boost_get_boosts_request_query_uri.py -openapi_client/models/boost_get_boosts_request_query_uri_any_of.py -openapi_client/models/boost_get_boosts_request_query_uri_any_of1.py -openapi_client/models/boost_get_boosts_request_query_uri_any_of_any_of.py +openapi_client/models/boost_get_boosts_request_query_any_of.py +openapi_client/models/boost_get_boosts_request_query_any_of_or_inner.py +openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status.py +openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status_any_of.py openapi_client/models/boost_get_children_profile_managers200_response.py openapi_client/models/boost_get_children_profile_managers200_response_records_inner.py openapi_client/models/boost_get_children_profile_managers_request.py @@ -341,12 +651,47 @@ openapi_client/models/boost_get_children_profile_managers_request_query.py openapi_client/models/boost_get_connected_boost_recipients_request.py openapi_client/models/boost_get_familial_boosts_request.py openapi_client/models/boost_get_paginated_boost_recipients200_response.py +openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner.py +openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to.py +openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to_display.py openapi_client/models/boost_get_paginated_boost_recipients_request.py openapi_client/models/boost_get_paginated_boost_recipients_request_query.py +openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response.py +openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response_records_inner.py +openapi_client/models/boost_get_paginated_boost_recipients_with_children_request.py +openapi_client/models/boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py openapi_client/models/boost_get_paginated_boosts200_response.py openapi_client/models/boost_get_paginated_boosts200_response_records_inner.py openapi_client/models/boost_get_paginated_boosts_request.py +openapi_client/models/boost_get_skills_available_for_boost200_response_inner.py +openapi_client/models/boost_get_skills_available_for_boost200_response_inner_framework.py +openapi_client/models/boost_get_skills_available_for_boost200_response_inner_skills_inner.py openapi_client/models/boost_make_boost_parent_request.py +openapi_client/models/boost_remove_boost_admin_request.py +openapi_client/models/boost_remove_boost_parent_request.py +openapi_client/models/boost_search_skills_available_for_boost200_response.py +openapi_client/models/boost_search_skills_available_for_boost200_response_records_inner.py +openapi_client/models/boost_search_skills_available_for_boost_request.py +openapi_client/models/boost_search_skills_available_for_boost_request_query.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of1.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py +openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py +openapi_client/models/boost_send200_response.py openapi_client/models/boost_send_boost_request.py openapi_client/models/boost_send_boost_request_credential.py openapi_client/models/boost_send_boost_request_credential_any_of.py @@ -357,12 +702,14 @@ openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inn openapi_client/models/boost_send_boost_request_credential_any_of_context_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema.py openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of.py +openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_credential_status.py -openapi_client/models/boost_send_boost_request_credential_any_of_credential_status_any_of.py openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject.py openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of.py +openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_evidence.py openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of.py +openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_issuer.py openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of.py openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address.py @@ -375,44 +722,91 @@ openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_o openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_type.py openapi_client/models/boost_send_boost_request_credential_any_of_proof.py openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of.py +openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of1_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service.py openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of.py +openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use.py -openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use_any_of.py openapi_client/models/boost_send_boost_request_options.py openapi_client/models/boost_send_boost_via_signing_authority_request.py openapi_client/models/boost_send_boost_via_signing_authority_request_signing_authority.py +openapi_client/models/boost_send_request.py +openapi_client/models/boost_send_request_template.py +openapi_client/models/boost_send_request_template_claim_permissions.py +openapi_client/models/boost_send_request_template_credential.py +openapi_client/models/boost_send_request_template_credential_any_of.py +openapi_client/models/boost_send_request_template_credential_any_of1.py +openapi_client/models/boost_send_request_template_credential_any_of_context_inner.py +openapi_client/models/boost_send_request_template_credential_any_of_credential_subject.py +openapi_client/models/boost_send_request_template_credential_any_of_evidence.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py +openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_type.py +openapi_client/models/boost_send_request_template_credential_any_of_proof.py +openapi_client/models/boost_send_request_template_default_permissions.py +openapi_client/models/boost_send_request_template_skills_inner.py openapi_client/models/boost_update_boost_permissions_request.py openapi_client/models/boost_update_boost_permissions_request_updates.py openapi_client/models/boost_update_boost_request.py openapi_client/models/boost_update_boost_request_updates.py +openapi_client/models/boost_update_other_boost_permissions_request.py +openapi_client/models/boost_update_other_boost_permissions_request_updates.py openapi_client/models/claim_hook_create_claim_hook_request.py openapi_client/models/claim_hook_create_claim_hook_request_hook.py openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of.py openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1.py openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1_data.py +openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2.py +openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2_data.py openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of_data.py openapi_client/models/claim_hook_delete_claim_hook_request.py openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response.py openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py +openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py openapi_client/models/claim_hook_get_claim_hooks_for_boost_request.py openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query.py openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data.py openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.py openapi_client/models/contact_methods_add_contact_method200_response.py openapi_client/models/contact_methods_add_contact_method_request.py +openapi_client/models/contact_methods_create_contact_method_session200_response.py +openapi_client/models/contact_methods_create_contact_method_session_request.py +openapi_client/models/contact_methods_create_contact_method_session_request_contact_method.py openapi_client/models/contact_methods_get_my_contact_methods200_response_inner.py openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of.py openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of1.py -openapi_client/models/contact_methods_set_primary_contact_method200_response.py +openapi_client/models/contact_methods_remove_contact_method_request.py +openapi_client/models/contact_methods_send_challenge200_response.py +openapi_client/models/contact_methods_send_challenge_request.py +openapi_client/models/contact_methods_send_challenge_request_configuration.py openapi_client/models/contact_methods_set_primary_contact_method_request.py -openapi_client/models/contact_methods_verify_contact_method200_response.py openapi_client/models/contact_methods_verify_contact_method_request.py +openapi_client/models/contact_methods_verify_with_credential200_response.py +openapi_client/models/contact_methods_verify_with_credential200_response_contact_method.py +openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of.py +openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of1.py +openapi_client/models/contact_methods_verify_with_credential_request.py openapi_client/models/contracts_add_auto_boosts_to_contract_request.py +openapi_client/models/contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py +openapi_client/models/contracts_cancel_contract_request_request.py +openapi_client/models/contracts_consent_to_contract200_response.py openapi_client/models/contracts_consent_to_contract_request.py openapi_client/models/contracts_consent_to_contract_request_terms.py openapi_client/models/contracts_consent_to_contract_request_terms_read.py openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials.py +openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials_categories_value.py openapi_client/models/contracts_consent_to_contract_request_terms_write.py openapi_client/models/contracts_consent_to_contract_request_terms_write_credentials.py openapi_client/models/contracts_create_consent_flow_contract_request.py @@ -421,9 +815,15 @@ openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_ openapi_client/models/contracts_create_consent_flow_contract_request_contract.py openapi_client/models/contracts_create_consent_flow_contract_request_contract_read.py openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials.py +openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py openapi_client/models/contracts_create_consent_flow_contract_request_contract_write.py +openapi_client/models/contracts_forward_contract_request_to_profile_request.py +openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner.py +openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner_contract.py openapi_client/models/contracts_get_all_credentials_for_terms_request.py openapi_client/models/contracts_get_consent_flow_contract200_response.py +openapi_client/models/contracts_get_consent_flow_contract200_response_contract.py +openapi_client/models/contracts_get_consent_flow_contract200_response_contract_read.py openapi_client/models/contracts_get_consent_flow_contracts200_response.py openapi_client/models/contracts_get_consent_flow_contracts200_response_records_inner.py openapi_client/models/contracts_get_consent_flow_contracts_request.py @@ -434,11 +834,18 @@ openapi_client/models/contracts_get_consent_flow_contracts_request_query_read_cr openapi_client/models/contracts_get_consent_flow_contracts_request_query_write.py openapi_client/models/contracts_get_consented_contracts200_response.py openapi_client/models/contracts_get_consented_contracts200_response_records_inner.py +openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms.py +openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read.py +openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py +openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py openapi_client/models/contracts_get_consented_contracts_request.py openapi_client/models/contracts_get_consented_contracts_request_query.py openapi_client/models/contracts_get_consented_contracts_request_query_read.py openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials.py +openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials_categories_value.py openapi_client/models/contracts_get_consented_contracts_request_query_write.py +openapi_client/models/contracts_get_consented_data200_response.py +openapi_client/models/contracts_get_consented_data200_response_records_inner.py openapi_client/models/contracts_get_consented_data_for_contract200_response.py openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner.py openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner_credentials.py @@ -451,11 +858,16 @@ openapi_client/models/contracts_get_consented_data_for_did200_response_records_i openapi_client/models/contracts_get_consented_data_for_did_request.py openapi_client/models/contracts_get_consented_data_for_did_request_query.py openapi_client/models/contracts_get_consented_data_request.py +openapi_client/models/contracts_get_contract_sent_requests200_response_inner.py openapi_client/models/contracts_get_credentials_for_contract200_response.py openapi_client/models/contracts_get_credentials_for_contract200_response_records_inner.py openapi_client/models/contracts_get_credentials_for_contract_request.py +openapi_client/models/contracts_get_request_status_for_profile200_response.py openapi_client/models/contracts_get_terms_transaction_history200_response.py openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner.py +openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms.py +openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write.py +openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py openapi_client/models/contracts_get_terms_transaction_history_request.py openapi_client/models/contracts_get_terms_transaction_history_request_query.py openapi_client/models/contracts_get_terms_transaction_history_request_query_action.py @@ -464,36 +876,79 @@ openapi_client/models/contracts_get_terms_transaction_history_request_query_date openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of1.py openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py openapi_client/models/contracts_get_terms_transaction_history_request_query_terms.py +openapi_client/models/contracts_get_terms_transaction_history_request_query_terms_read.py +openapi_client/models/contracts_mark_contract_request_as_seen_request.py openapi_client/models/contracts_remove_auto_boosts_from_contract_request.py +openapi_client/models/contracts_send_ai_insight_share_request_request.py +openapi_client/models/contracts_send_ai_insights_contract_request_request.py openapi_client/models/contracts_sync_credentials_to_contract_request.py openapi_client/models/contracts_update_consented_contract_terms_request.py +openapi_client/models/contracts_update_consented_contract_terms_request_terms.py +openapi_client/models/contracts_update_consented_contract_terms_request_terms_read.py +openapi_client/models/contracts_update_consented_contract_terms_request_terms_read_credentials.py openapi_client/models/contracts_write_credential_to_contract_request.py +openapi_client/models/contracts_write_credential_to_contract_request_credential.py openapi_client/models/contracts_write_credential_to_contract_via_signing_authority_request.py openapi_client/models/credential_accept_credential_request.py +openapi_client/models/credential_accept_credential_request_options.py openapi_client/models/credential_received_credentials200_response_inner.py openapi_client/models/credential_send_credential_request.py openapi_client/models/credential_send_credential_request_credential.py openapi_client/models/credential_send_credential_request_credential_any_of.py +openapi_client/models/credential_send_credential_request_credential_any_of1.py +openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner.py +openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header.py +openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py openapi_client/models/did_metadata_add_did_metadata_request.py +openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner.py +openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of.py +openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py openapi_client/models/did_metadata_add_did_metadata_request_service_inner.py -openapi_client/models/did_metadata_add_did_metadata_request_service_inner_service_endpoint.py openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner.py openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of.py openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py +openapi_client/models/did_metadata_get_did_metadata200_response.py +openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner.py +openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of.py +openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py +openapi_client/models/did_metadata_get_did_metadata200_response_service_inner.py +openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner.py +openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py +openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py openapi_client/models/did_metadata_get_my_did_metadata200_response_inner.py openapi_client/models/did_metadata_update_did_metadata_request.py +openapi_client/models/did_metadata_update_did_metadata_request_updates.py openapi_client/models/error_badrequest.py +openapi_client/models/error_badrequest_issues_inner.py openapi_client/models/error_forbidden.py openapi_client/models/error_internalservererror.py openapi_client/models/error_notfound.py openapi_client/models/error_unauthorized.py +openapi_client/models/inbox_approve_guardian_request_request.py +openapi_client/models/inbox_claim200_response.py +openapi_client/models/inbox_claim200_response_inbox_credential.py +openapi_client/models/inbox_claim200_response_inbox_credential_signing_authority.py +openapi_client/models/inbox_claim_request.py +openapi_client/models/inbox_claim_request_configuration.py +openapi_client/models/inbox_claim_request_credential.py +openapi_client/models/inbox_finalize200_response.py openapi_client/models/inbox_get_my_issued_credentials200_response.py openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner.py +openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py openapi_client/models/inbox_get_my_issued_credentials_request.py openapi_client/models/inbox_get_my_issued_credentials_request_query.py +openapi_client/models/inbox_get_my_issued_credentials_request_recipient.py +openapi_client/models/inbox_get_my_issued_credentials_request_recipient_one_of.py openapi_client/models/inbox_issue200_response.py openapi_client/models/inbox_issue200_response_recipient.py +openapi_client/models/inbox_issue200_response_recipient_one_of.py +openapi_client/models/inbox_issue200_response_recipient_one_of1.py openapi_client/models/inbox_issue_request.py openapi_client/models/inbox_issue_request_configuration.py openapi_client/models/inbox_issue_request_configuration_delivery.py @@ -508,27 +963,85 @@ openapi_client/models/inbox_issue_request_credential_any_of.py openapi_client/models/inbox_issue_request_recipient.py openapi_client/models/inbox_issue_request_recipient_one_of.py openapi_client/models/inbox_issue_request_recipient_one_of1.py +openapi_client/models/inbox_send_guardian_approval_email200_response.py +openapi_client/models/inbox_send_guardian_approval_email_request.py +openapi_client/models/inbox_send_guardian_approval_email_request_template.py +openapi_client/models/integrations_add_integration_request.py +openapi_client/models/integrations_add_integration_request_whitelisted_domains_inner.py +openapi_client/models/integrations_associate_integration_with_signing_authority_request.py +openapi_client/models/integrations_count_integrations_request.py +openapi_client/models/integrations_get_integration200_response.py +openapi_client/models/integrations_get_integrations200_response.py +openapi_client/models/integrations_get_integrations200_response_records_inner.py +openapi_client/models/integrations_get_integrations_request.py +openapi_client/models/integrations_get_integrations_request_query.py +openapi_client/models/integrations_update_integration_request.py +openapi_client/models/integrations_update_integration_request_updates.py openapi_client/models/presentation_accept_presentation_request.py openapi_client/models/presentation_send_presentation_request.py openapi_client/models/presentation_send_presentation_request_presentation.py openapi_client/models/presentation_send_presentation_request_presentation_any_of.py openapi_client/models/presentation_send_presentation_request_presentation_any_of_verifiable_credential.py openapi_client/models/profile_create_profile_request.py +openapi_client/models/profile_create_profile_request_display.py +openapi_client/models/profile_create_service_profile_request.py +openapi_client/models/profile_create_service_profile_request_display.py openapi_client/models/profile_generate_invite200_response.py openapi_client/models/profile_generate_invite_request.py openapi_client/models/profile_get_available_profiles200_response.py openapi_client/models/profile_get_available_profiles200_response_records_inner.py +openapi_client/models/profile_get_available_profiles200_response_records_inner_manager.py openapi_client/models/profile_get_available_profiles_request.py +openapi_client/models/profile_list_invites200_response_inner.py openapi_client/models/profile_manager_create_child_profile_manager_request.py +openapi_client/models/profile_manager_create_child_profile_manager_request_profile.py openapi_client/models/profile_manager_create_managed_profile_request.py openapi_client/models/profile_manager_create_profile_manager_request.py +openapi_client/models/profile_manager_get_managed_profiles_request.py openapi_client/models/profile_register_signing_authority_request.py openapi_client/models/profile_search_profiles200_response_inner.py openapi_client/models/profile_set_primary_signing_authority_request.py openapi_client/models/profile_signing_authorities200_response_inner.py openapi_client/models/profile_signing_authorities200_response_inner_relationship.py openapi_client/models/profile_signing_authorities200_response_inner_signing_authority.py +openapi_client/models/profile_signing_authority200_response.py +openapi_client/models/profile_signing_authority200_response_relationship.py +openapi_client/models/profile_signing_authority200_response_signing_authority.py openapi_client/models/profile_update_profile_request.py +openapi_client/models/schema0.py +openapi_client/models/schema1.py +openapi_client/models/skill_frameworks_add_framework_admin200_response.py +openapi_client/models/skill_frameworks_add_framework_admin_request.py +openapi_client/models/skill_frameworks_count_boosts_that_use_framework200_response.py +openapi_client/models/skill_frameworks_create_managed_batch_request.py +openapi_client/models/skill_frameworks_create_managed_batch_request_frameworks_inner.py +openapi_client/models/skill_frameworks_create_managed_request.py +openapi_client/models/skill_frameworks_create_request.py +openapi_client/models/skill_frameworks_get_boosts_that_use_framework_request.py +openapi_client/models/skill_frameworks_get_by_id200_response.py +openapi_client/models/skill_frameworks_get_by_id200_response_skills.py +openapi_client/models/skill_frameworks_remove_framework_admin200_response.py +openapi_client/models/skill_frameworks_replace_skills200_response.py +openapi_client/models/skill_frameworks_replace_skills_request.py +openapi_client/models/skill_frameworks_update_request.py +openapi_client/models/skills_add_skill_tag200_response_inner.py +openapi_client/models/skills_add_skill_tag_request.py +openapi_client/models/skills_add_skill_tag_request_tag.py +openapi_client/models/skills_count_skills200_response.py +openapi_client/models/skills_create200_response.py +openapi_client/models/skills_create_many_request.py +openapi_client/models/skills_create_request.py +openapi_client/models/skills_delete200_response.py +openapi_client/models/skills_get_framework_skill_tree200_response.py +openapi_client/models/skills_get_full_skill_tree200_response.py +openapi_client/models/skills_get_skill200_response.py +openapi_client/models/skills_get_skill_path200_response.py +openapi_client/models/skills_list_skill_tags200_response_inner.py +openapi_client/models/skills_search_framework_skills_request.py +openapi_client/models/skills_search_framework_skills_request_query.py +openapi_client/models/skills_search_framework_skills_request_query_any_of.py +openapi_client/models/skills_sync_framework_skills200_response.py +openapi_client/models/skills_update_request.py openapi_client/models/storage_resolve200_response.py openapi_client/models/storage_resolve200_response_any_of.py openapi_client/models/storage_resolve200_response_any_of1.py @@ -538,13 +1051,34 @@ openapi_client/models/storage_resolve200_response_any_of1_read_credentials_categ openapi_client/models/storage_resolve200_response_any_of1_write.py openapi_client/models/storage_resolve200_response_any_of1_write_credentials.py openapi_client/models/storage_resolve200_response_any_of_any_of.py -openapi_client/models/storage_resolve200_response_any_of_any_of_read.py -openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials.py -openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py -openapi_client/models/storage_resolve200_response_any_of_any_of_write.py +openapi_client/models/storage_resolve200_response_any_of_any_of1.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_read.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_read_personal_value.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_write.py +openapi_client/models/storage_resolve200_response_any_of_any_of1_write_credentials.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py +openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py openapi_client/models/storage_store_request.py openapi_client/models/storage_store_request_item.py openapi_client/models/storage_store_request_item_any_of.py +openapi_client/models/storage_store_request_item_any_of_any_of.py openapi_client/models/workflows_participate_in_exchange200_response.py openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request.py openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner.py @@ -558,6 +1092,22 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_app_store_admin_api.py +test/test_app_store_admin_get_all_listings_request.py +test/test_app_store_admin_update_listing_status_request.py +test/test_app_store_admin_update_promotion_level_request.py +test/test_app_store_api.py +test/test_app_store_browse_listed_apps_request.py +test/test_app_store_create_listing_request.py +test/test_app_store_create_listing_request_listing.py +test/test_app_store_get_installed_apps200_response.py +test/test_app_store_get_installed_apps200_response_records_inner.py +test/test_app_store_get_listing200_response.py +test/test_app_store_get_listings_for_integration200_response.py +test/test_app_store_get_listings_for_integration200_response_records_inner.py +test/test_app_store_get_listings_for_integration_request.py +test/test_app_store_update_listing_request.py +test/test_app_store_update_listing_request_updates.py test/test_auth_grants_add_auth_grant_request.py test/test_auth_grants_api.py test/test_auth_grants_get_auth_grant200_response.py @@ -567,7 +1117,12 @@ test/test_auth_grants_get_auth_grants_request_query.py test/test_auth_grants_update_auth_grant_request.py test/test_auth_grants_update_auth_grant_request_updates.py test/test_boost_add_boost_admin_request.py +test/test_boost_align_boost_skills_request.py +test/test_boost_align_boost_skills_request_skills_inner.py +test/test_boost_attach_framework_to_boost_request.py +test/test_boost_claim_boost_with_link_request.py test/test_boost_count_boost_children_request.py +test/test_boost_count_boost_parents_request.py test/test_boost_count_boost_siblings_request.py test/test_boost_count_familial_boosts_request.py test/test_boost_create_boost_request.py @@ -575,28 +1130,47 @@ test/test_boost_create_boost_request_claim_permissions.py test/test_boost_create_boost_request_credential.py test/test_boost_create_boost_request_credential_any_of.py test/test_boost_create_child_boost_request.py +test/test_boost_create_child_boost_request_boost.py +test/test_boost_detach_framework_from_boost_request.py test/test_boost_generate_claim_link200_response.py test/test_boost_generate_claim_link_request.py test/test_boost_generate_claim_link_request_claim_link_sa.py test/test_boost_generate_claim_link_request_options.py test/test_boost_get_boost200_response.py +test/test_boost_get_boost200_response_boost.py +test/test_boost_get_boost200_response_boost_issuer.py +test/test_boost_get_boost200_response_boost_issuer_any_of.py +test/test_boost_get_boost200_response_boost_issuer_any_of_address.py +test/test_boost_get_boost200_response_boost_issuer_any_of_address_geo.py +test/test_boost_get_boost200_response_boost_issuer_any_of_image.py +test/test_boost_get_boost200_response_boost_issuer_any_of_image_any_of.py +test/test_boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py test/test_boost_get_boost200_response_claim_permissions.py +test/test_boost_get_boost200_response_default_permissions.py test/test_boost_get_boost_admins200_response.py test/test_boost_get_boost_admins_request.py +test/test_boost_get_boost_alignments200_response_inner.py test/test_boost_get_boost_children_request.py +test/test_boost_get_boost_frameworks200_response.py +test/test_boost_get_boost_frameworks200_response_records_inner.py +test/test_boost_get_boost_frameworks_request.py +test/test_boost_get_boost_frameworks_request_query.py +test/test_boost_get_boost_frameworks_request_query_any_of.py +test/test_boost_get_boost_frameworks_request_query_any_of_or_inner.py +test/test_boost_get_boost_parents_request.py test/test_boost_get_boost_recipients200_response_inner.py test/test_boost_get_boost_recipients200_response_inner_to.py test/test_boost_get_boost_recipients200_response_inner_to_display.py +test/test_boost_get_boost_recipients_with_children_count_request.py +test/test_boost_get_boost_recipients_with_children_count_request_number_of_generations.py test/test_boost_get_boost_siblings_request.py test/test_boost_get_boosts200_response_inner.py test/test_boost_get_boosts_request.py test/test_boost_get_boosts_request_query.py -test/test_boost_get_boosts_request_query_status.py -test/test_boost_get_boosts_request_query_status_any_of.py -test/test_boost_get_boosts_request_query_uri.py -test/test_boost_get_boosts_request_query_uri_any_of.py -test/test_boost_get_boosts_request_query_uri_any_of1.py -test/test_boost_get_boosts_request_query_uri_any_of_any_of.py +test/test_boost_get_boosts_request_query_any_of.py +test/test_boost_get_boosts_request_query_any_of_or_inner.py +test/test_boost_get_boosts_request_query_any_of_or_inner_status.py +test/test_boost_get_boosts_request_query_any_of_or_inner_status_any_of.py test/test_boost_get_children_profile_managers200_response.py test/test_boost_get_children_profile_managers200_response_records_inner.py test/test_boost_get_children_profile_managers_request.py @@ -604,12 +1178,47 @@ test/test_boost_get_children_profile_managers_request_query.py test/test_boost_get_connected_boost_recipients_request.py test/test_boost_get_familial_boosts_request.py test/test_boost_get_paginated_boost_recipients200_response.py +test/test_boost_get_paginated_boost_recipients200_response_records_inner.py +test/test_boost_get_paginated_boost_recipients200_response_records_inner_to.py +test/test_boost_get_paginated_boost_recipients200_response_records_inner_to_display.py test/test_boost_get_paginated_boost_recipients_request.py test/test_boost_get_paginated_boost_recipients_request_query.py +test/test_boost_get_paginated_boost_recipients_with_children200_response.py +test/test_boost_get_paginated_boost_recipients_with_children200_response_records_inner.py +test/test_boost_get_paginated_boost_recipients_with_children_request.py +test/test_boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py test/test_boost_get_paginated_boosts200_response.py test/test_boost_get_paginated_boosts200_response_records_inner.py test/test_boost_get_paginated_boosts_request.py +test/test_boost_get_skills_available_for_boost200_response_inner.py +test/test_boost_get_skills_available_for_boost200_response_inner_framework.py +test/test_boost_get_skills_available_for_boost200_response_inner_skills_inner.py test/test_boost_make_boost_parent_request.py +test/test_boost_remove_boost_admin_request.py +test/test_boost_remove_boost_parent_request.py +test/test_boost_search_skills_available_for_boost200_response.py +test/test_boost_search_skills_available_for_boost200_response_records_inner.py +test/test_boost_search_skills_available_for_boost_request.py +test/test_boost_search_skills_available_for_boost_request_query.py +test/test_boost_search_skills_available_for_boost_request_query_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of1.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py +test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py +test/test_boost_send200_response.py test/test_boost_send_boost_request.py test/test_boost_send_boost_request_credential.py test/test_boost_send_boost_request_credential_any_of.py @@ -620,12 +1229,14 @@ test/test_boost_send_boost_request_credential_any_of1_recipients_inner_header_ep test/test_boost_send_boost_request_credential_any_of_context_inner.py test/test_boost_send_boost_request_credential_any_of_credential_schema.py test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of.py +test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py test/test_boost_send_boost_request_credential_any_of_credential_status.py -test/test_boost_send_boost_request_credential_any_of_credential_status_any_of.py test/test_boost_send_boost_request_credential_any_of_credential_subject.py test/test_boost_send_boost_request_credential_any_of_credential_subject_any_of.py +test/test_boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py test/test_boost_send_boost_request_credential_any_of_evidence.py test/test_boost_send_boost_request_credential_any_of_evidence_any_of.py +test/test_boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py test/test_boost_send_boost_request_credential_any_of_issuer.py test/test_boost_send_boost_request_credential_any_of_issuer_any_of.py test/test_boost_send_boost_request_credential_any_of_issuer_any_of_address.py @@ -638,27 +1249,60 @@ test/test_boost_send_boost_request_credential_any_of_issuer_any_of_other_identif test/test_boost_send_boost_request_credential_any_of_issuer_any_of_type.py test/test_boost_send_boost_request_credential_any_of_proof.py test/test_boost_send_boost_request_credential_any_of_proof_any_of.py +test/test_boost_send_boost_request_credential_any_of_proof_any_of1_inner.py test/test_boost_send_boost_request_credential_any_of_refresh_service.py test/test_boost_send_boost_request_credential_any_of_refresh_service_any_of.py +test/test_boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py test/test_boost_send_boost_request_credential_any_of_terms_of_use.py -test/test_boost_send_boost_request_credential_any_of_terms_of_use_any_of.py test/test_boost_send_boost_request_options.py test/test_boost_send_boost_via_signing_authority_request.py test/test_boost_send_boost_via_signing_authority_request_signing_authority.py +test/test_boost_send_request.py +test/test_boost_send_request_template.py +test/test_boost_send_request_template_claim_permissions.py +test/test_boost_send_request_template_credential.py +test/test_boost_send_request_template_credential_any_of.py +test/test_boost_send_request_template_credential_any_of1.py +test/test_boost_send_request_template_credential_any_of_context_inner.py +test/test_boost_send_request_template_credential_any_of_credential_subject.py +test/test_boost_send_request_template_credential_any_of_evidence.py +test/test_boost_send_request_template_credential_any_of_issuer.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_address.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_image.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py +test/test_boost_send_request_template_credential_any_of_issuer_any_of_type.py +test/test_boost_send_request_template_credential_any_of_proof.py +test/test_boost_send_request_template_default_permissions.py +test/test_boost_send_request_template_skills_inner.py test/test_boost_update_boost_permissions_request.py test/test_boost_update_boost_permissions_request_updates.py test/test_boost_update_boost_request.py test/test_boost_update_boost_request_updates.py +test/test_boost_update_other_boost_permissions_request.py +test/test_boost_update_other_boost_permissions_request_updates.py test/test_boosts_api.py test/test_claim_hook_create_claim_hook_request.py test/test_claim_hook_create_claim_hook_request_hook.py test/test_claim_hook_create_claim_hook_request_hook_one_of.py test/test_claim_hook_create_claim_hook_request_hook_one_of1.py test/test_claim_hook_create_claim_hook_request_hook_one_of1_data.py +test/test_claim_hook_create_claim_hook_request_hook_one_of2.py +test/test_claim_hook_create_claim_hook_request_hook_one_of2_data.py test/test_claim_hook_create_claim_hook_request_hook_one_of_data.py test/test_claim_hook_delete_claim_hook_request.py test/test_claim_hook_get_claim_hooks_for_boost200_response.py test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py +test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py test/test_claim_hook_get_claim_hooks_for_boost_request.py test/test_claim_hook_get_claim_hooks_for_boost_request_query.py test/test_claim_hook_get_claim_hooks_for_boost_request_query_data.py @@ -667,19 +1311,33 @@ test/test_claim_hooks_api.py test/test_contact_methods_add_contact_method200_response.py test/test_contact_methods_add_contact_method_request.py test/test_contact_methods_api.py +test/test_contact_methods_create_contact_method_session200_response.py +test/test_contact_methods_create_contact_method_session_request.py +test/test_contact_methods_create_contact_method_session_request_contact_method.py test/test_contact_methods_get_my_contact_methods200_response_inner.py test/test_contact_methods_get_my_contact_methods200_response_inner_one_of.py test/test_contact_methods_get_my_contact_methods200_response_inner_one_of1.py -test/test_contact_methods_set_primary_contact_method200_response.py +test/test_contact_methods_remove_contact_method_request.py +test/test_contact_methods_send_challenge200_response.py +test/test_contact_methods_send_challenge_request.py +test/test_contact_methods_send_challenge_request_configuration.py test/test_contact_methods_set_primary_contact_method_request.py -test/test_contact_methods_verify_contact_method200_response.py test/test_contact_methods_verify_contact_method_request.py +test/test_contact_methods_verify_with_credential200_response.py +test/test_contact_methods_verify_with_credential200_response_contact_method.py +test/test_contact_methods_verify_with_credential200_response_contact_method_one_of.py +test/test_contact_methods_verify_with_credential200_response_contact_method_one_of1.py +test/test_contact_methods_verify_with_credential_request.py test/test_contracts_add_auto_boosts_to_contract_request.py +test/test_contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py test/test_contracts_api.py +test/test_contracts_cancel_contract_request_request.py +test/test_contracts_consent_to_contract200_response.py test/test_contracts_consent_to_contract_request.py test/test_contracts_consent_to_contract_request_terms.py test/test_contracts_consent_to_contract_request_terms_read.py test/test_contracts_consent_to_contract_request_terms_read_credentials.py +test/test_contracts_consent_to_contract_request_terms_read_credentials_categories_value.py test/test_contracts_consent_to_contract_request_terms_write.py test/test_contracts_consent_to_contract_request_terms_write_credentials.py test/test_contracts_create_consent_flow_contract_request.py @@ -688,9 +1346,15 @@ test/test_contracts_create_consent_flow_contract_request_autoboosts_inner_signin test/test_contracts_create_consent_flow_contract_request_contract.py test/test_contracts_create_consent_flow_contract_request_contract_read.py test/test_contracts_create_consent_flow_contract_request_contract_read_credentials.py +test/test_contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py test/test_contracts_create_consent_flow_contract_request_contract_write.py +test/test_contracts_forward_contract_request_to_profile_request.py +test/test_contracts_get_all_contract_requests_for_profile200_response_inner.py +test/test_contracts_get_all_contract_requests_for_profile200_response_inner_contract.py test/test_contracts_get_all_credentials_for_terms_request.py test/test_contracts_get_consent_flow_contract200_response.py +test/test_contracts_get_consent_flow_contract200_response_contract.py +test/test_contracts_get_consent_flow_contract200_response_contract_read.py test/test_contracts_get_consent_flow_contracts200_response.py test/test_contracts_get_consent_flow_contracts200_response_records_inner.py test/test_contracts_get_consent_flow_contracts_request.py @@ -701,11 +1365,18 @@ test/test_contracts_get_consent_flow_contracts_request_query_read_credentials_ca test/test_contracts_get_consent_flow_contracts_request_query_write.py test/test_contracts_get_consented_contracts200_response.py test/test_contracts_get_consented_contracts200_response_records_inner.py +test/test_contracts_get_consented_contracts200_response_records_inner_terms.py +test/test_contracts_get_consented_contracts200_response_records_inner_terms_read.py +test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py +test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py test/test_contracts_get_consented_contracts_request.py test/test_contracts_get_consented_contracts_request_query.py test/test_contracts_get_consented_contracts_request_query_read.py test/test_contracts_get_consented_contracts_request_query_read_credentials.py +test/test_contracts_get_consented_contracts_request_query_read_credentials_categories_value.py test/test_contracts_get_consented_contracts_request_query_write.py +test/test_contracts_get_consented_data200_response.py +test/test_contracts_get_consented_data200_response_records_inner.py test/test_contracts_get_consented_data_for_contract200_response.py test/test_contracts_get_consented_data_for_contract200_response_records_inner.py test/test_contracts_get_consented_data_for_contract200_response_records_inner_credentials.py @@ -718,11 +1389,16 @@ test/test_contracts_get_consented_data_for_did200_response_records_inner_credent test/test_contracts_get_consented_data_for_did_request.py test/test_contracts_get_consented_data_for_did_request_query.py test/test_contracts_get_consented_data_request.py +test/test_contracts_get_contract_sent_requests200_response_inner.py test/test_contracts_get_credentials_for_contract200_response.py test/test_contracts_get_credentials_for_contract200_response_records_inner.py test/test_contracts_get_credentials_for_contract_request.py +test/test_contracts_get_request_status_for_profile200_response.py test/test_contracts_get_terms_transaction_history200_response.py test/test_contracts_get_terms_transaction_history200_response_records_inner.py +test/test_contracts_get_terms_transaction_history200_response_records_inner_terms.py +test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write.py +test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py test/test_contracts_get_terms_transaction_history_request.py test/test_contracts_get_terms_transaction_history_request_query.py test/test_contracts_get_terms_transaction_history_request_query_action.py @@ -731,38 +1407,81 @@ test/test_contracts_get_terms_transaction_history_request_query_date_any_of.py test/test_contracts_get_terms_transaction_history_request_query_date_any_of1.py test/test_contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py test/test_contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py +test/test_contracts_get_terms_transaction_history_request_query_expires_at.py +test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of.py +test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py +test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py +test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py test/test_contracts_get_terms_transaction_history_request_query_terms.py +test/test_contracts_get_terms_transaction_history_request_query_terms_read.py +test/test_contracts_mark_contract_request_as_seen_request.py test/test_contracts_remove_auto_boosts_from_contract_request.py +test/test_contracts_send_ai_insight_share_request_request.py +test/test_contracts_send_ai_insights_contract_request_request.py test/test_contracts_sync_credentials_to_contract_request.py test/test_contracts_update_consented_contract_terms_request.py +test/test_contracts_update_consented_contract_terms_request_terms.py +test/test_contracts_update_consented_contract_terms_request_terms_read.py +test/test_contracts_update_consented_contract_terms_request_terms_read_credentials.py test/test_contracts_write_credential_to_contract_request.py +test/test_contracts_write_credential_to_contract_request_credential.py test/test_contracts_write_credential_to_contract_via_signing_authority_request.py test/test_credential_accept_credential_request.py +test/test_credential_accept_credential_request_options.py test/test_credential_received_credentials200_response_inner.py test/test_credential_send_credential_request.py test/test_credential_send_credential_request_credential.py test/test_credential_send_credential_request_credential_any_of.py +test/test_credential_send_credential_request_credential_any_of1.py +test/test_credential_send_credential_request_credential_any_of1_recipients_inner.py +test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header.py +test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py test/test_credentials_api.py test/test_did_metadata_add_did_metadata_request.py +test/test_did_metadata_add_did_metadata_request_authentication_inner.py +test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of.py +test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py test/test_did_metadata_add_did_metadata_request_service_inner.py -test/test_did_metadata_add_did_metadata_request_service_inner_service_endpoint.py test/test_did_metadata_add_did_metadata_request_verification_method_inner.py test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of.py test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py test/test_did_metadata_api.py +test/test_did_metadata_get_did_metadata200_response.py +test/test_did_metadata_get_did_metadata200_response_authentication_inner.py +test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of.py +test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py +test/test_did_metadata_get_did_metadata200_response_service_inner.py +test/test_did_metadata_get_did_metadata200_response_verification_method_inner.py +test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py +test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py test/test_did_metadata_get_my_did_metadata200_response_inner.py test/test_did_metadata_update_did_metadata_request.py +test/test_did_metadata_update_did_metadata_request_updates.py test/test_error_badrequest.py +test/test_error_badrequest_issues_inner.py test/test_error_forbidden.py test/test_error_internalservererror.py test/test_error_notfound.py test/test_error_unauthorized.py +test/test_inbox_approve_guardian_request_request.py +test/test_inbox_claim200_response.py +test/test_inbox_claim200_response_inbox_credential.py +test/test_inbox_claim200_response_inbox_credential_signing_authority.py +test/test_inbox_claim_request.py +test/test_inbox_claim_request_configuration.py +test/test_inbox_claim_request_credential.py +test/test_inbox_finalize200_response.py test/test_inbox_get_my_issued_credentials200_response.py test/test_inbox_get_my_issued_credentials200_response_records_inner.py +test/test_inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py test/test_inbox_get_my_issued_credentials_request.py test/test_inbox_get_my_issued_credentials_request_query.py +test/test_inbox_get_my_issued_credentials_request_recipient.py +test/test_inbox_get_my_issued_credentials_request_recipient_one_of.py test/test_inbox_issue200_response.py test/test_inbox_issue200_response_recipient.py +test/test_inbox_issue200_response_recipient_one_of.py +test/test_inbox_issue200_response_recipient_one_of1.py test/test_inbox_issue_request.py test/test_inbox_issue_request_configuration.py test/test_inbox_issue_request_configuration_delivery.py @@ -777,6 +1496,21 @@ test/test_inbox_issue_request_credential_any_of.py test/test_inbox_issue_request_recipient.py test/test_inbox_issue_request_recipient_one_of.py test/test_inbox_issue_request_recipient_one_of1.py +test/test_inbox_send_guardian_approval_email200_response.py +test/test_inbox_send_guardian_approval_email_request.py +test/test_inbox_send_guardian_approval_email_request_template.py +test/test_integrations_add_integration_request.py +test/test_integrations_add_integration_request_whitelisted_domains_inner.py +test/test_integrations_api.py +test/test_integrations_associate_integration_with_signing_authority_request.py +test/test_integrations_count_integrations_request.py +test/test_integrations_get_integration200_response.py +test/test_integrations_get_integrations200_response.py +test/test_integrations_get_integrations200_response_records_inner.py +test/test_integrations_get_integrations_request.py +test/test_integrations_get_integrations_request_query.py +test/test_integrations_update_integration_request.py +test/test_integrations_update_integration_request_updates.py test/test_presentation_accept_presentation_request.py test/test_presentation_send_presentation_request.py test/test_presentation_send_presentation_request_presentation.py @@ -784,14 +1518,21 @@ test/test_presentation_send_presentation_request_presentation_any_of.py test/test_presentation_send_presentation_request_presentation_any_of_verifiable_credential.py test/test_presentations_api.py test/test_profile_create_profile_request.py +test/test_profile_create_profile_request_display.py +test/test_profile_create_service_profile_request.py +test/test_profile_create_service_profile_request_display.py test/test_profile_generate_invite200_response.py test/test_profile_generate_invite_request.py test/test_profile_get_available_profiles200_response.py test/test_profile_get_available_profiles200_response_records_inner.py +test/test_profile_get_available_profiles200_response_records_inner_manager.py test/test_profile_get_available_profiles_request.py +test/test_profile_list_invites200_response_inner.py test/test_profile_manager_create_child_profile_manager_request.py +test/test_profile_manager_create_child_profile_manager_request_profile.py test/test_profile_manager_create_managed_profile_request.py test/test_profile_manager_create_profile_manager_request.py +test/test_profile_manager_get_managed_profiles_request.py test/test_profile_managers_api.py test/test_profile_register_signing_authority_request.py test/test_profile_search_profiles200_response_inner.py @@ -799,8 +1540,47 @@ test/test_profile_set_primary_signing_authority_request.py test/test_profile_signing_authorities200_response_inner.py test/test_profile_signing_authorities200_response_inner_relationship.py test/test_profile_signing_authorities200_response_inner_signing_authority.py +test/test_profile_signing_authority200_response.py +test/test_profile_signing_authority200_response_relationship.py +test/test_profile_signing_authority200_response_signing_authority.py test/test_profile_update_profile_request.py test/test_profiles_api.py +test/test_schema0.py +test/test_schema1.py +test/test_send_api.py +test/test_skill_frameworks_add_framework_admin200_response.py +test/test_skill_frameworks_add_framework_admin_request.py +test/test_skill_frameworks_count_boosts_that_use_framework200_response.py +test/test_skill_frameworks_create_managed_batch_request.py +test/test_skill_frameworks_create_managed_batch_request_frameworks_inner.py +test/test_skill_frameworks_create_managed_request.py +test/test_skill_frameworks_create_request.py +test/test_skill_frameworks_get_boosts_that_use_framework_request.py +test/test_skill_frameworks_get_by_id200_response.py +test/test_skill_frameworks_get_by_id200_response_skills.py +test/test_skill_frameworks_remove_framework_admin200_response.py +test/test_skill_frameworks_replace_skills200_response.py +test/test_skill_frameworks_replace_skills_request.py +test/test_skill_frameworks_update_request.py +test/test_skills_add_skill_tag200_response_inner.py +test/test_skills_add_skill_tag_request.py +test/test_skills_add_skill_tag_request_tag.py +test/test_skills_api.py +test/test_skills_count_skills200_response.py +test/test_skills_create200_response.py +test/test_skills_create_many_request.py +test/test_skills_create_request.py +test/test_skills_delete200_response.py +test/test_skills_get_framework_skill_tree200_response.py +test/test_skills_get_full_skill_tree200_response.py +test/test_skills_get_skill200_response.py +test/test_skills_get_skill_path200_response.py +test/test_skills_list_skill_tags200_response_inner.py +test/test_skills_search_framework_skills_request.py +test/test_skills_search_framework_skills_request_query.py +test/test_skills_search_framework_skills_request_query_any_of.py +test/test_skills_sync_framework_skills200_response.py +test/test_skills_update_request.py test/test_storage_api.py test/test_storage_resolve200_response.py test/test_storage_resolve200_response_any_of.py @@ -811,13 +1591,34 @@ test/test_storage_resolve200_response_any_of1_read_credentials_categories_value. test/test_storage_resolve200_response_any_of1_write.py test/test_storage_resolve200_response_any_of1_write_credentials.py test/test_storage_resolve200_response_any_of_any_of.py -test/test_storage_resolve200_response_any_of_any_of_read.py -test/test_storage_resolve200_response_any_of_any_of_read_credentials.py -test/test_storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py -test/test_storage_resolve200_response_any_of_any_of_write.py +test/test_storage_resolve200_response_any_of_any_of1.py +test/test_storage_resolve200_response_any_of_any_of1_read.py +test/test_storage_resolve200_response_any_of_any_of1_read_credentials.py +test/test_storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py +test/test_storage_resolve200_response_any_of_any_of1_read_personal_value.py +test/test_storage_resolve200_response_any_of_any_of1_write.py +test/test_storage_resolve200_response_any_of_any_of1_write_credentials.py +test/test_storage_resolve200_response_any_of_any_of_any_of.py +test/test_storage_resolve200_response_any_of_any_of_any_of1.py +test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py +test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py +test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py +test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py test/test_storage_store_request.py test/test_storage_store_request_item.py test/test_storage_store_request_item_any_of.py +test/test_storage_store_request_item_any_of_any_of.py test/test_universal_inbox_api.py test/test_utilities_api.py test/test_vcapi_api.py diff --git a/packages/open-api-lcn-clients/python-client/.openapi-generator/VERSION b/packages/open-api-lcn-clients/python-client/.openapi-generator/VERSION index e465da4315..2fb556b606 100644 --- a/packages/open-api-lcn-clients/python-client/.openapi-generator/VERSION +++ b/packages/open-api-lcn-clients/python-client/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.18.0-SNAPSHOT diff --git a/packages/open-api-lcn-clients/python-client/README.md b/packages/open-api-lcn-clients/python-client/README.md index 85aa783499..fa666c138e 100644 --- a/packages/open-api-lcn-clients/python-client/README.md +++ b/packages/open-api-lcn-clients/python-client/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0.0 - Package version: 1.0.0 -- Generator version: 7.14.0 +- Generator version: 7.18.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -61,30 +61,21 @@ configuration = openapi_client.Configuration( host = "https://network.learncard.com/api" ) -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: Authorization -configuration = openapi_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = openapi_client.AuthGrantsApi(api_client) - auth_grants_add_auth_grant_request = openapi_client.AuthGrantsAddAuthGrantRequest() # AuthGrantsAddAuthGrantRequest | + api_instance = openapi_client.AppStoreApi(api_client) + app_store_browse_listed_apps_request = openapi_client.AppStoreBrowseListedAppsRequest() # AppStoreBrowseListedAppsRequest | (optional) try: - # Add AuthGrant to your profile - api_response = api_instance.auth_grants_add_auth_grant(auth_grants_add_auth_grant_request) - print("The response of AuthGrantsApi->auth_grants_add_auth_grant:\n") + # Browse App Store + api_response = api_instance.app_store_browse_listed_apps(app_store_browse_listed_apps_request=app_store_browse_listed_apps_request) + print("The response of AppStoreApi->app_store_browse_listed_apps:\n") pprint(api_response) except ApiException as e: - print("Exception when calling AuthGrantsApi->auth_grants_add_auth_grant: %s\n" % e) + print("Exception when calling AppStoreApi->app_store_browse_listed_apps: %s\n" % e) ``` @@ -94,6 +85,25 @@ All URIs are relative to *https://network.learncard.com/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AppStoreApi* | [**app_store_browse_listed_apps**](docs/AppStoreApi.md#app_store_browse_listed_apps) | **POST** /app-store/browse | Browse App Store +*AppStoreApi* | [**app_store_count_installed_apps**](docs/AppStoreApi.md#app_store_count_installed_apps) | **GET** /app-store/installed/count | Count Installed Apps +*AppStoreApi* | [**app_store_count_listings_for_integration**](docs/AppStoreApi.md#app_store_count_listings_for_integration) | **GET** /app-store/integration/{integrationId}/listings/count | Count Listings for Integration +*AppStoreApi* | [**app_store_create_listing**](docs/AppStoreApi.md#app_store_create_listing) | **POST** /app-store/listing/create | Create App Store Listing +*AppStoreApi* | [**app_store_delete_listing**](docs/AppStoreApi.md#app_store_delete_listing) | **DELETE** /app-store/listing/{listingId} | Delete App Store Listing +*AppStoreApi* | [**app_store_get_installed_apps**](docs/AppStoreApi.md#app_store_get_installed_apps) | **POST** /app-store/installed | Get Installed Apps +*AppStoreApi* | [**app_store_get_listing**](docs/AppStoreApi.md#app_store_get_listing) | **GET** /app-store/listing/{listingId} | Get App Store Listing (Owner) +*AppStoreApi* | [**app_store_get_listing_install_count**](docs/AppStoreApi.md#app_store_get_listing_install_count) | **GET** /app-store/listing/{listingId}/install-count | Get App Install Count +*AppStoreApi* | [**app_store_get_listings_for_integration**](docs/AppStoreApi.md#app_store_get_listings_for_integration) | **POST** /app-store/integration/{integrationId}/listings | Get Listings for Integration +*AppStoreApi* | [**app_store_get_public_listing**](docs/AppStoreApi.md#app_store_get_public_listing) | **GET** /app-store/public/listing/{listingId} | Get Public App Listing +*AppStoreApi* | [**app_store_install_app**](docs/AppStoreApi.md#app_store_install_app) | **POST** /app-store/listing/{listingId}/install | Install App +*AppStoreApi* | [**app_store_is_app_installed**](docs/AppStoreApi.md#app_store_is_app_installed) | **GET** /app-store/listing/{listingId}/is-installed | Check if App is Installed +*AppStoreApi* | [**app_store_submit_for_review**](docs/AppStoreApi.md#app_store_submit_for_review) | **POST** /app-store/listing/{listingId}/submit-for-review | Submit Listing for Review +*AppStoreApi* | [**app_store_uninstall_app**](docs/AppStoreApi.md#app_store_uninstall_app) | **POST** /app-store/listing/{listingId}/uninstall | Uninstall App +*AppStoreApi* | [**app_store_update_listing**](docs/AppStoreApi.md#app_store_update_listing) | **POST** /app-store/listing/{listingId}/update | Update App Store Listing +*AppStoreAdminApi* | [**app_store_admin_get_all_listings**](docs/AppStoreAdminApi.md#app_store_admin_get_all_listings) | **POST** /app-store/admin/listings | Get All Listings (Admin) +*AppStoreAdminApi* | [**app_store_admin_update_listing_status**](docs/AppStoreAdminApi.md#app_store_admin_update_listing_status) | **POST** /app-store/admin/listing/{listingId}/status | Update Listing Status (Admin) +*AppStoreAdminApi* | [**app_store_admin_update_promotion_level**](docs/AppStoreAdminApi.md#app_store_admin_update_promotion_level) | **POST** /app-store/admin/listing/{listingId}/promotion | Update Promotion Level (Admin) +*AppStoreAdminApi* | [**app_store_is_admin**](docs/AppStoreAdminApi.md#app_store_is_admin) | **GET** /app-store/admin/check | Check Admin Status *AuthGrantsApi* | [**auth_grants_add_auth_grant**](docs/AuthGrantsApi.md#auth_grants_add_auth_grant) | **POST** /auth-grant/create | Add AuthGrant to your profile *AuthGrantsApi* | [**auth_grants_delete_auth_grant**](docs/AuthGrantsApi.md#auth_grants_delete_auth_grant) | **DELETE** /auth-grant/{id} | Delete AuthGrant *AuthGrantsApi* | [**auth_grants_get_auth_grant**](docs/AuthGrantsApi.md#auth_grants_get_auth_grant) | **GET** /auth-grant/{id} | Get AuthGrant @@ -101,6 +111,8 @@ Class | Method | HTTP request | Description *AuthGrantsApi* | [**auth_grants_revoke_auth_grant**](docs/AuthGrantsApi.md#auth_grants_revoke_auth_grant) | **POST** /auth-grant/{id}/revoke | Revoke AuthGrant *AuthGrantsApi* | [**auth_grants_update_auth_grant**](docs/AuthGrantsApi.md#auth_grants_update_auth_grant) | **POST** /auth-grant/update/{id} | Update AuthGrant *BoostsApi* | [**boost_add_boost_admin**](docs/BoostsApi.md#boost_add_boost_admin) | **POST** /boost/add-admin | Add a Boost admin +*BoostsApi* | [**boost_align_boost_skills**](docs/BoostsApi.md#boost_align_boost_skills) | **POST** /boost/align-skills | Align skills to boost +*BoostsApi* | [**boost_attach_framework_to_boost**](docs/BoostsApi.md#boost_attach_framework_to_boost) | **POST** /boost/attach-framework | Attach framework to boost *BoostsApi* | [**boost_claim_boost_with_link**](docs/BoostsApi.md#boost_claim_boost_with_link) | **POST** /boost/claim | Claim a boost using a claim link *BoostsApi* | [**boost_count_boost_children**](docs/BoostsApi.md#boost_count_boost_children) | **POST** /boost/children/count | Count boost children *BoostsApi* | [**boost_count_boost_parents**](docs/BoostsApi.md#boost_count_boost_parents) | **POST** /boost/parents/count | Count boost parents @@ -110,14 +122,18 @@ Class | Method | HTTP request | Description *BoostsApi* | [**boost_create_boost**](docs/BoostsApi.md#boost_create_boost) | **POST** /boost/create | Creates a boost *BoostsApi* | [**boost_create_child_boost**](docs/BoostsApi.md#boost_create_child_boost) | **POST** /boost/create/child | Creates a boost *BoostsApi* | [**boost_delete_boost**](docs/BoostsApi.md#boost_delete_boost) | **DELETE** /boost | Delete a boost +*BoostsApi* | [**boost_detach_framework_from_boost**](docs/BoostsApi.md#boost_detach_framework_from_boost) | **POST** /boost/detach-framework | Detach framework from boost *BoostsApi* | [**boost_generate_claim_link**](docs/BoostsApi.md#boost_generate_claim_link) | **POST** /boost/generate-claim-link | Generate a claim link for a boost *BoostsApi* | [**boost_get_boost**](docs/BoostsApi.md#boost_get_boost) | **GET** /boost | Get boost *BoostsApi* | [**boost_get_boost_admins**](docs/BoostsApi.md#boost_get_boost_admins) | **POST** /boost/admins | Get boost admins +*BoostsApi* | [**boost_get_boost_alignments**](docs/BoostsApi.md#boost_get_boost_alignments) | **GET** /boost/alignments | Get OBv3 alignments for a boost *BoostsApi* | [**boost_get_boost_children**](docs/BoostsApi.md#boost_get_boost_children) | **POST** /boost/children | Get boost children +*BoostsApi* | [**boost_get_boost_frameworks**](docs/BoostsApi.md#boost_get_boost_frameworks) | **POST** /boost/frameworks | List frameworks used by a boost (paginated) *BoostsApi* | [**boost_get_boost_parents**](docs/BoostsApi.md#boost_get_boost_parents) | **POST** /boost/parents | Get boost parents *BoostsApi* | [**boost_get_boost_permissions**](docs/BoostsApi.md#boost_get_boost_permissions) | **GET** /boost/permissions | Get boost permissions *BoostsApi* | [**boost_get_boost_recipient_count**](docs/BoostsApi.md#boost_get_boost_recipient_count) | **GET** /boost/recipients/count | Get boost recipients count *BoostsApi* | [**boost_get_boost_recipients**](docs/BoostsApi.md#boost_get_boost_recipients) | **GET** /boost/recipients | Get boost recipients +*BoostsApi* | [**boost_get_boost_recipients_with_children_count**](docs/BoostsApi.md#boost_get_boost_recipients_with_children_count) | **POST** /boost/recipients-with-children/count | Count boost recipients with children *BoostsApi* | [**boost_get_boost_siblings**](docs/BoostsApi.md#boost_get_boost_siblings) | **POST** /boost/siblings | Get boost siblings *BoostsApi* | [**boost_get_boosts**](docs/BoostsApi.md#boost_get_boosts) | **POST** /boost/all | Get boosts *BoostsApi* | [**boost_get_children_profile_managers**](docs/BoostsApi.md#boost_get_children_profile_managers) | **POST** /boost/children-profile-managers | Get Profile Managers that are a child of a boost @@ -126,10 +142,13 @@ Class | Method | HTTP request | Description *BoostsApi* | [**boost_get_familial_boosts**](docs/BoostsApi.md#boost_get_familial_boosts) | **POST** /boost/family | Get familial boosts *BoostsApi* | [**boost_get_other_boost_permissions**](docs/BoostsApi.md#boost_get_other_boost_permissions) | **GET** /boost/permissions/{profileId} | Get boost permissions for someone else *BoostsApi* | [**boost_get_paginated_boost_recipients**](docs/BoostsApi.md#boost_get_paginated_boost_recipients) | **POST** /boost/recipients/paginated | Get boost recipients +*BoostsApi* | [**boost_get_paginated_boost_recipients_with_children**](docs/BoostsApi.md#boost_get_paginated_boost_recipients_with_children) | **POST** /boost/recipients-with-children/paginated | Get boost recipients with children *BoostsApi* | [**boost_get_paginated_boosts**](docs/BoostsApi.md#boost_get_paginated_boosts) | **POST** /boost/paginated | Get boosts +*BoostsApi* | [**boost_get_skills_available_for_boost**](docs/BoostsApi.md#boost_get_skills_available_for_boost) | **GET** /boost/skills/available | List available skills for a boost *BoostsApi* | [**boost_make_boost_parent**](docs/BoostsApi.md#boost_make_boost_parent) | **POST** /boost/make-parent | Make Boost Parent *BoostsApi* | [**boost_remove_boost_admin**](docs/BoostsApi.md#boost_remove_boost_admin) | **POST** /boost/remove-admin | Remove a Boost admin *BoostsApi* | [**boost_remove_boost_parent**](docs/BoostsApi.md#boost_remove_boost_parent) | **POST** /boost/remove-parent | Remove Boost Parent +*BoostsApi* | [**boost_search_skills_available_for_boost**](docs/BoostsApi.md#boost_search_skills_available_for_boost) | **POST** /boost/skills/search | Search available skills for a boost *BoostsApi* | [**boost_send_boost**](docs/BoostsApi.md#boost_send_boost) | **POST** /boost/send/{profileId} | Send a Boost *BoostsApi* | [**boost_send_boost_via_signing_authority**](docs/BoostsApi.md#boost_send_boost_via_signing_authority) | **POST** /boost/send/via-signing-authority/{profileId} | Send a boost to a profile using a signing authority *BoostsApi* | [**boost_update_boost**](docs/BoostsApi.md#boost_update_boost) | **POST** /boost | Update a boost @@ -139,14 +158,20 @@ Class | Method | HTTP request | Description *ClaimHooksApi* | [**claim_hook_delete_claim_hook**](docs/ClaimHooksApi.md#claim_hook_delete_claim_hook) | **POST** /claim-hook/update | Delete a Claim Hook *ClaimHooksApi* | [**claim_hook_get_claim_hooks_for_boost**](docs/ClaimHooksApi.md#claim_hook_get_claim_hooks_for_boost) | **POST** /claim-hook/get | Gets Claim Hooks *ContactMethodsApi* | [**contact_methods_add_contact_method**](docs/ContactMethodsApi.md#contact_methods_add_contact_method) | **POST** /profile/contact-methods/add | Add Contact Method +*ContactMethodsApi* | [**contact_methods_create_contact_method_session**](docs/ContactMethodsApi.md#contact_methods_create_contact_method_session) | **POST** /contact-methods/session | Create Contact Method Session *ContactMethodsApi* | [**contact_methods_get_my_contact_methods**](docs/ContactMethodsApi.md#contact_methods_get_my_contact_methods) | **GET** /profile/contact-methods | Get My Contact Methods *ContactMethodsApi* | [**contact_methods_remove_contact_method**](docs/ContactMethodsApi.md#contact_methods_remove_contact_method) | **POST** /profile/contact-methods/remove | Remove Contact Method +*ContactMethodsApi* | [**contact_methods_send_challenge**](docs/ContactMethodsApi.md#contact_methods_send_challenge) | **POST** /contact-methods/challenge | Send Contact Method Challenge (OTP) *ContactMethodsApi* | [**contact_methods_set_primary_contact_method**](docs/ContactMethodsApi.md#contact_methods_set_primary_contact_method) | **POST** /profile/contact-methods/set-primary | Set Primary Contact Method *ContactMethodsApi* | [**contact_methods_verify_contact_method**](docs/ContactMethodsApi.md#contact_methods_verify_contact_method) | **POST** /profile/contact-methods/verify | Verify Contact Method +*ContactMethodsApi* | [**contact_methods_verify_with_credential**](docs/ContactMethodsApi.md#contact_methods_verify_with_credential) | **POST** /profile/contact-methods/verify-with-credential | Verify Contact Method With Credential *ContractsApi* | [**contracts_add_auto_boosts_to_contract**](docs/ContractsApi.md#contracts_add_auto_boosts_to_contract) | **POST** /consent-flow-contracts/autoboosts/add | Add autoboosts to a contract +*ContractsApi* | [**contracts_cancel_contract_request**](docs/ContractsApi.md#contracts_cancel_contract_request) | **POST** /consent-flow-contracts/cancel-request | Cancels/removes a contract request *ContractsApi* | [**contracts_consent_to_contract**](docs/ContractsApi.md#contracts_consent_to_contract) | **POST** /consent-flow-contract/consent | Consent To Contract *ContractsApi* | [**contracts_create_consent_flow_contract**](docs/ContractsApi.md#contracts_create_consent_flow_contract) | **POST** /consent-flow-contract | Create Consent Flow Contract *ContractsApi* | [**contracts_delete_consent_flow_contract**](docs/ContractsApi.md#contracts_delete_consent_flow_contract) | **DELETE** /consent-flow-contract | Delete a Consent Flow Contract +*ContractsApi* | [**contracts_forward_contract_request_to_profile**](docs/ContractsApi.md#contracts_forward_contract_request_to_profile) | **POST** /consent-flow-contracts/forward-request-to-profile | Forward a contract request +*ContractsApi* | [**contracts_get_all_contract_requests_for_profile**](docs/ContractsApi.md#contracts_get_all_contract_requests_for_profile) | **GET** /consent-flow-contracts/all-requests-for-profile | Get all contract requests for a target profile *ContractsApi* | [**contracts_get_all_credentials_for_terms**](docs/ContractsApi.md#contracts_get_all_credentials_for_terms) | **POST** /consent-flow-contracts/credentials | Get all credentials written to any terms *ContractsApi* | [**contracts_get_consent_flow_contract**](docs/ContractsApi.md#contracts_get_consent_flow_contract) | **GET** /consent-flow-contract | Get Consent Flow Contracts *ContractsApi* | [**contracts_get_consent_flow_contracts**](docs/ContractsApi.md#contracts_get_consent_flow_contracts) | **POST** /consent-flow-contracts | Get Consent Flow Contracts @@ -154,9 +179,14 @@ Class | Method | HTTP request | Description *ContractsApi* | [**contracts_get_consented_data**](docs/ContractsApi.md#contracts_get_consented_data) | **POST** /consent-flow-contract/data | Get the data that has been consented for all of your contracts *ContractsApi* | [**contracts_get_consented_data_for_contract**](docs/ContractsApi.md#contracts_get_consented_data_for_contract) | **POST** /consent-flow-contract/data-for-contract | Get the data that has been consented for a contract *ContractsApi* | [**contracts_get_consented_data_for_did**](docs/ContractsApi.md#contracts_get_consented_data_for_did) | **POST** /consent-flow-contract/data-for-did | Get the data that has been consented by a did +*ContractsApi* | [**contracts_get_contract_sent_requests**](docs/ContractsApi.md#contracts_get_contract_sent_requests) | **GET** /consent-flow-contracts/sent-requests | Get requests sent for a given contract *ContractsApi* | [**contracts_get_credentials_for_contract**](docs/ContractsApi.md#contracts_get_credentials_for_contract) | **POST** /consent-flow-contract/credentials | Get credentials issued via a contract +*ContractsApi* | [**contracts_get_request_status_for_profile**](docs/ContractsApi.md#contracts_get_request_status_for_profile) | **GET** /consent-flow-contracts/request-status | Get request status for a specific profile under a contract *ContractsApi* | [**contracts_get_terms_transaction_history**](docs/ContractsApi.md#contracts_get_terms_transaction_history) | **POST** /consent-flow-contract/consent/history | Gets Transaction History +*ContractsApi* | [**contracts_mark_contract_request_as_seen**](docs/ContractsApi.md#contracts_mark_contract_request_as_seen) | **POST** /consent-flow-contracts/mark-request-as-seen | Marks a contract request as seen *ContractsApi* | [**contracts_remove_auto_boosts_from_contract**](docs/ContractsApi.md#contracts_remove_auto_boosts_from_contract) | **POST** /consent-flow-contracts/autoboosts/remove | Remove autoboosts from a contract +*ContractsApi* | [**contracts_send_ai_insight_share_request**](docs/ContractsApi.md#contracts_send_ai_insight_share_request) | **POST** /consent-flow-contracts/ai-insights/share-request | AI Insights, consent flow share-notifcation request +*ContractsApi* | [**contracts_send_ai_insights_contract_request**](docs/ContractsApi.md#contracts_send_ai_insights_contract_request) | **POST** /consent-flow-contracts/ai-insights/request | AI Insights, consent flow notifcation request *ContractsApi* | [**contracts_sync_credentials_to_contract**](docs/ContractsApi.md#contracts_sync_credentials_to_contract) | **POST** /consent-flow-contract/sync | Sync credentials to a contract *ContractsApi* | [**contracts_update_consented_contract_terms**](docs/ContractsApi.md#contracts_update_consented_contract_terms) | **POST** /consent-flow-contract/consent/update | Updates Contract Terms *ContractsApi* | [**contracts_verify_consent**](docs/ContractsApi.md#contracts_verify_consent) | **GET** /consent-flow-contract/verify | Verifies that a profile has consented to a contract @@ -174,6 +204,13 @@ Class | Method | HTTP request | Description *DIDMetadataApi* | [**did_metadata_get_did_metadata**](docs/DIDMetadataApi.md#did_metadata_get_did_metadata) | **GET** /did-metadata/{id} | Get DID Metadata *DIDMetadataApi* | [**did_metadata_get_my_did_metadata**](docs/DIDMetadataApi.md#did_metadata_get_my_did_metadata) | **POST** /profile/did-metadata | Get My DID Metadata *DIDMetadataApi* | [**did_metadata_update_did_metadata**](docs/DIDMetadataApi.md#did_metadata_update_did_metadata) | **POST** /did-metadata/update/{id} | Update DID Metadata +*IntegrationsApi* | [**integrations_add_integration**](docs/IntegrationsApi.md#integrations_add_integration) | **POST** /integration/create | Create Integration +*IntegrationsApi* | [**integrations_associate_integration_with_signing_authority**](docs/IntegrationsApi.md#integrations_associate_integration_with_signing_authority) | **POST** /integration/{integrationId}/associate-with-signing-authority | Associate Integration with Signing Authority +*IntegrationsApi* | [**integrations_count_integrations**](docs/IntegrationsApi.md#integrations_count_integrations) | **POST** /profile/integrations/count | Count My Integrations +*IntegrationsApi* | [**integrations_delete_integration**](docs/IntegrationsApi.md#integrations_delete_integration) | **DELETE** /integration/{id} | Delete Integration +*IntegrationsApi* | [**integrations_get_integration**](docs/IntegrationsApi.md#integrations_get_integration) | **GET** /integration/{id} | Get Integration +*IntegrationsApi* | [**integrations_get_integrations**](docs/IntegrationsApi.md#integrations_get_integrations) | **POST** /profile/integrations | Get My Integrations +*IntegrationsApi* | [**integrations_update_integration**](docs/IntegrationsApi.md#integrations_update_integration) | **POST** /integration/update/{id} | Update Integration *PresentationsApi* | [**presentation_accept_presentation**](docs/PresentationsApi.md#presentation_accept_presentation) | **POST** /presentation/accept | Accept a Presentation *PresentationsApi* | [**presentation_delete_presentation**](docs/PresentationsApi.md#presentation_delete_presentation) | **DELETE** /presentation | Delete a presentation *PresentationsApi* | [**presentation_incoming_presentations**](docs/PresentationsApi.md#presentation_incoming_presentations) | **GET** /presentation/incoming | Get incoming presentations @@ -188,6 +225,9 @@ Class | Method | HTTP request | Description *ProfileManagersApi* | [**profile_manager_get_other_profile_manager**](docs/ProfileManagersApi.md#profile_manager_get_other_profile_manager) | **GET** /profile-manager/{id} | Get profile manager information *ProfileManagersApi* | [**profile_manager_get_profile_manager**](docs/ProfileManagersApi.md#profile_manager_get_profile_manager) | **GET** /profile-manager | Get your profile manager profile information *ProfileManagersApi* | [**profile_manager_update_profile_manager**](docs/ProfileManagersApi.md#profile_manager_update_profile_manager) | **POST** /profile-manager | Update the profile of your Profile Manager +*ProfilesApi* | [**inbox_approve_guardian_request**](docs/ProfilesApi.md#inbox_approve_guardian_request) | **POST** /inbox/guardian-approval/approve | Approve Guardian Request +*ProfilesApi* | [**inbox_approve_guardian_request_by_path**](docs/ProfilesApi.md#inbox_approve_guardian_request_by_path) | **GET** /inbox/guardian-approval/{token} | Approve Guardian Request (GET) +*ProfilesApi* | [**inbox_send_guardian_approval_email**](docs/ProfilesApi.md#inbox_send_guardian_approval_email) | **POST** /inbox/guardian-approval/send | Send Guardian Approval Email *ProfilesApi* | [**profile_accept_connection_request**](docs/ProfilesApi.md#profile_accept_connection_request) | **POST** /profile/{profileId}/accept-connection | Accept Connection Request *ProfilesApi* | [**profile_block_profile**](docs/ProfilesApi.md#profile_block_profile) | **POST** /profile/{profileId}/block | Block another profile *ProfilesApi* | [**profile_blocked**](docs/ProfilesApi.md#profile_blocked) | **GET** /profile/blocked | View blocked profiles @@ -206,6 +246,8 @@ Class | Method | HTTP request | Description *ProfilesApi* | [**profile_get_managed_service_profiles**](docs/ProfilesApi.md#profile_get_managed_service_profiles) | **GET** /profile/managed-services | Managed Service Profiles *ProfilesApi* | [**profile_get_other_profile**](docs/ProfilesApi.md#profile_get_other_profile) | **GET** /profile/{profileId} | Get profile information *ProfilesApi* | [**profile_get_profile**](docs/ProfilesApi.md#profile_get_profile) | **GET** /profile | Get your profile information +*ProfilesApi* | [**profile_invalidate_invite**](docs/ProfilesApi.md#profile_invalidate_invite) | **POST** /profile/invite/{challenge}/invalidate | Invalidate an invitation +*ProfilesApi* | [**profile_list_invites**](docs/ProfilesApi.md#profile_list_invites) | **GET** /profile/invites | List valid connection invitations *ProfilesApi* | [**profile_manager_create_managed_profile**](docs/ProfilesApi.md#profile_manager_create_managed_profile) | **POST** /profile/create-managed-profile | Create a managed profile *ProfilesApi* | [**profile_manager_get_managed_profiles**](docs/ProfilesApi.md#profile_manager_get_managed_profiles) | **POST** /profile/managed-profiles | Managed Profiles *ProfilesApi* | [**profile_paginated_connection_requests**](docs/ProfilesApi.md#profile_paginated_connection_requests) | **GET** /profile/connection-requests/paginated | View connection requests @@ -220,11 +262,45 @@ Class | Method | HTTP request | Description *ProfilesApi* | [**profile_signing_authority**](docs/ProfilesApi.md#profile_signing_authority) | **GET** /profile/signing-authority/get | Get Signing Authority for user *ProfilesApi* | [**profile_unblock_profile**](docs/ProfilesApi.md#profile_unblock_profile) | **POST** /profile/{profileId}/unblock | Unblock another profile *ProfilesApi* | [**profile_update_profile**](docs/ProfilesApi.md#profile_update_profile) | **POST** /profile | Update your profile +*SendApi* | [**boost_send**](docs/SendApi.md#boost_send) | **POST** /send | Send data to a recipient +*SkillsApi* | [**skill_frameworks_add_framework_admin**](docs/SkillsApi.md#skill_frameworks_add_framework_admin) | **POST** /skills/frameworks/{frameworkId}/admins | Add framework admin +*SkillsApi* | [**skill_frameworks_count_boosts_that_use_framework**](docs/SkillsApi.md#skill_frameworks_count_boosts_that_use_framework) | **POST** /skills/frameworks/{id}/boosts/count | Count boosts that use a framework +*SkillsApi* | [**skill_frameworks_create**](docs/SkillsApi.md#skill_frameworks_create) | **POST** /skills/frameworks | Link Skill Framework +*SkillsApi* | [**skill_frameworks_create_managed**](docs/SkillsApi.md#skill_frameworks_create_managed) | **POST** /skills/frameworks/custom | Create and manage a custom skill framework +*SkillsApi* | [**skill_frameworks_create_managed_batch**](docs/SkillsApi.md#skill_frameworks_create_managed_batch) | **POST** /skills/frameworks/custom/batch | Create multiple custom skill frameworks +*SkillsApi* | [**skill_frameworks_delete**](docs/SkillsApi.md#skill_frameworks_delete) | **DELETE** /skills/frameworks/{id} | Delete a managed skill framework +*SkillsApi* | [**skill_frameworks_get_boosts_that_use_framework**](docs/SkillsApi.md#skill_frameworks_get_boosts_that_use_framework) | **POST** /skills/frameworks/{id}/boosts | Get boosts that use a framework +*SkillsApi* | [**skill_frameworks_get_by_id**](docs/SkillsApi.md#skill_frameworks_get_by_id) | **GET** /skills/frameworks/{id} | Get Skill Framework with skills +*SkillsApi* | [**skill_frameworks_list_framework_admins**](docs/SkillsApi.md#skill_frameworks_list_framework_admins) | **GET** /skills/frameworks/{frameworkId}/admins | List framework admins +*SkillsApi* | [**skill_frameworks_list_mine**](docs/SkillsApi.md#skill_frameworks_list_mine) | **GET** /skills/frameworks | List Skill Frameworks I manage +*SkillsApi* | [**skill_frameworks_remove_framework_admin**](docs/SkillsApi.md#skill_frameworks_remove_framework_admin) | **DELETE** /skills/frameworks/{frameworkId}/admins/{profileId} | Remove framework admin +*SkillsApi* | [**skill_frameworks_replace_skills**](docs/SkillsApi.md#skill_frameworks_replace_skills) | **POST** /skills/frameworks/{frameworkId}/replace | Replace all skills in a framework +*SkillsApi* | [**skill_frameworks_update**](docs/SkillsApi.md#skill_frameworks_update) | **PATCH** /skills/frameworks/{id} | Update a managed skill framework +*SkillsApi* | [**skills_add_skill_tag**](docs/SkillsApi.md#skills_add_skill_tag) | **POST** /skills/{id}/tags | Add a tag to a skill +*SkillsApi* | [**skills_count_skills**](docs/SkillsApi.md#skills_count_skills) | **GET** /skills/frameworks/{frameworkId}/count | Count skills in a framework +*SkillsApi* | [**skills_create**](docs/SkillsApi.md#skills_create) | **POST** /skills | Create a skill +*SkillsApi* | [**skills_create_many**](docs/SkillsApi.md#skills_create_many) | **POST** /skills/batch | Create many skills +*SkillsApi* | [**skills_delete**](docs/SkillsApi.md#skills_delete) | **DELETE** /skills/{id} | Delete a skill +*SkillsApi* | [**skills_get_framework_skill_tree**](docs/SkillsApi.md#skills_get_framework_skill_tree) | **GET** /skills/frameworks/{id}/tree | Get framework skill tree (roots + first children) +*SkillsApi* | [**skills_get_full_skill_tree**](docs/SkillsApi.md#skills_get_full_skill_tree) | **GET** /skills/frameworks/{frameworkId}/tree/full | Get complete skill tree for a framework +*SkillsApi* | [**skills_get_skill**](docs/SkillsApi.md#skills_get_skill) | **GET** /skills/{id} | Get a skill by ID +*SkillsApi* | [**skills_get_skill_children_tree**](docs/SkillsApi.md#skills_get_skill_children_tree) | **GET** /skills/{id}/children | Get children for a skill (framework-scoped, paginated) +*SkillsApi* | [**skills_get_skill_path**](docs/SkillsApi.md#skills_get_skill_path) | **GET** /skills/{skillId}/path | Get breadcrumb path for a skill +*SkillsApi* | [**skills_list_skill_tags**](docs/SkillsApi.md#skills_list_skill_tags) | **GET** /skills/{id}/tags | List tags for a skill +*SkillsApi* | [**skills_remove_skill_tag**](docs/SkillsApi.md#skills_remove_skill_tag) | **DELETE** /skills/{id}/tags/{slug} | Remove a tag from a skill +*SkillsApi* | [**skills_search_framework_skills**](docs/SkillsApi.md#skills_search_framework_skills) | **POST** /skills/framework/search | Search skills in a framework +*SkillsApi* | [**skills_sync_framework_skills**](docs/SkillsApi.md#skills_sync_framework_skills) | **POST** /skills/frameworks/{id}/sync | Sync Framework Skills +*SkillsApi* | [**skills_update**](docs/SkillsApi.md#skills_update) | **PATCH** /skills/{id} | Update a skill *StorageApi* | [**storage_resolve**](docs/StorageApi.md#storage_resolve) | **GET** /storage/resolve | Resolves a URI to a Credential/Presentation *StorageApi* | [**storage_store**](docs/StorageApi.md#storage_store) | **POST** /storage/store | Store a Credential/Presentation +*UniversalInboxApi* | [**inbox_approve_guardian_request**](docs/UniversalInboxApi.md#inbox_approve_guardian_request) | **POST** /inbox/guardian-approval/approve | Approve Guardian Request +*UniversalInboxApi* | [**inbox_approve_guardian_request_by_path**](docs/UniversalInboxApi.md#inbox_approve_guardian_request_by_path) | **GET** /inbox/guardian-approval/{token} | Approve Guardian Request (GET) +*UniversalInboxApi* | [**inbox_claim**](docs/UniversalInboxApi.md#inbox_claim) | **POST** /inbox/claim | Claim Universal Inbox Credential +*UniversalInboxApi* | [**inbox_finalize**](docs/UniversalInboxApi.md#inbox_finalize) | **POST** /inbox/finalize | Finalize Universal Inbox Credentials *UniversalInboxApi* | [**inbox_get_inbox_credential**](docs/UniversalInboxApi.md#inbox_get_inbox_credential) | **GET** /inbox/credentials/{credentialId} | Get Universal Inbox Credential Details *UniversalInboxApi* | [**inbox_get_my_issued_credentials**](docs/UniversalInboxApi.md#inbox_get_my_issued_credentials) | **POST** /inbox/issued | Get My Issued Universal Inbox Credentials *UniversalInboxApi* | [**inbox_issue**](docs/UniversalInboxApi.md#inbox_issue) | **POST** /inbox/issue | Issue Credential to Universal Inbox +*UniversalInboxApi* | [**inbox_send_guardian_approval_email**](docs/UniversalInboxApi.md#inbox_send_guardian_approval_email) | **POST** /inbox/guardian-approval/send | Send Guardian Approval Email *UtilitiesApi* | [**utilities_get_challenges**](docs/UtilitiesApi.md#utilities_get_challenges) | **GET** /challenges | Request a list of valid challenges *UtilitiesApi* | [**utilities_get_did**](docs/UtilitiesApi.md#utilities_get_did) | **GET** /did | Get LCN Did *UtilitiesApi* | [**utilities_health_check**](docs/UtilitiesApi.md#utilities_health_check) | **GET** /health-check | Check health of endpoint @@ -234,6 +310,20 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AppStoreAdminGetAllListingsRequest](docs/AppStoreAdminGetAllListingsRequest.md) + - [AppStoreAdminUpdateListingStatusRequest](docs/AppStoreAdminUpdateListingStatusRequest.md) + - [AppStoreAdminUpdatePromotionLevelRequest](docs/AppStoreAdminUpdatePromotionLevelRequest.md) + - [AppStoreBrowseListedAppsRequest](docs/AppStoreBrowseListedAppsRequest.md) + - [AppStoreCreateListingRequest](docs/AppStoreCreateListingRequest.md) + - [AppStoreCreateListingRequestListing](docs/AppStoreCreateListingRequestListing.md) + - [AppStoreGetInstalledApps200Response](docs/AppStoreGetInstalledApps200Response.md) + - [AppStoreGetInstalledApps200ResponseRecordsInner](docs/AppStoreGetInstalledApps200ResponseRecordsInner.md) + - [AppStoreGetListing200Response](docs/AppStoreGetListing200Response.md) + - [AppStoreGetListingsForIntegration200Response](docs/AppStoreGetListingsForIntegration200Response.md) + - [AppStoreGetListingsForIntegration200ResponseRecordsInner](docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md) + - [AppStoreGetListingsForIntegrationRequest](docs/AppStoreGetListingsForIntegrationRequest.md) + - [AppStoreUpdateListingRequest](docs/AppStoreUpdateListingRequest.md) + - [AppStoreUpdateListingRequestUpdates](docs/AppStoreUpdateListingRequestUpdates.md) - [AuthGrantsAddAuthGrantRequest](docs/AuthGrantsAddAuthGrantRequest.md) - [AuthGrantsGetAuthGrant200Response](docs/AuthGrantsGetAuthGrant200Response.md) - [AuthGrantsGetAuthGrants200ResponseInner](docs/AuthGrantsGetAuthGrants200ResponseInner.md) @@ -242,7 +332,12 @@ Class | Method | HTTP request | Description - [AuthGrantsUpdateAuthGrantRequest](docs/AuthGrantsUpdateAuthGrantRequest.md) - [AuthGrantsUpdateAuthGrantRequestUpdates](docs/AuthGrantsUpdateAuthGrantRequestUpdates.md) - [BoostAddBoostAdminRequest](docs/BoostAddBoostAdminRequest.md) + - [BoostAlignBoostSkillsRequest](docs/BoostAlignBoostSkillsRequest.md) + - [BoostAlignBoostSkillsRequestSkillsInner](docs/BoostAlignBoostSkillsRequestSkillsInner.md) + - [BoostAttachFrameworkToBoostRequest](docs/BoostAttachFrameworkToBoostRequest.md) + - [BoostClaimBoostWithLinkRequest](docs/BoostClaimBoostWithLinkRequest.md) - [BoostCountBoostChildrenRequest](docs/BoostCountBoostChildrenRequest.md) + - [BoostCountBoostParentsRequest](docs/BoostCountBoostParentsRequest.md) - [BoostCountBoostSiblingsRequest](docs/BoostCountBoostSiblingsRequest.md) - [BoostCountFamilialBoostsRequest](docs/BoostCountFamilialBoostsRequest.md) - [BoostCreateBoostRequest](docs/BoostCreateBoostRequest.md) @@ -250,28 +345,47 @@ Class | Method | HTTP request | Description - [BoostCreateBoostRequestCredential](docs/BoostCreateBoostRequestCredential.md) - [BoostCreateBoostRequestCredentialAnyOf](docs/BoostCreateBoostRequestCredentialAnyOf.md) - [BoostCreateChildBoostRequest](docs/BoostCreateChildBoostRequest.md) + - [BoostCreateChildBoostRequestBoost](docs/BoostCreateChildBoostRequestBoost.md) + - [BoostDetachFrameworkFromBoostRequest](docs/BoostDetachFrameworkFromBoostRequest.md) - [BoostGenerateClaimLink200Response](docs/BoostGenerateClaimLink200Response.md) - [BoostGenerateClaimLinkRequest](docs/BoostGenerateClaimLinkRequest.md) - [BoostGenerateClaimLinkRequestClaimLinkSA](docs/BoostGenerateClaimLinkRequestClaimLinkSA.md) - [BoostGenerateClaimLinkRequestOptions](docs/BoostGenerateClaimLinkRequestOptions.md) - [BoostGetBoost200Response](docs/BoostGetBoost200Response.md) + - [BoostGetBoost200ResponseBoost](docs/BoostGetBoost200ResponseBoost.md) + - [BoostGetBoost200ResponseBoostIssuer](docs/BoostGetBoost200ResponseBoostIssuer.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOf](docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOfAddress](docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo](docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOfImage](docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf](docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md) + - [BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner](docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md) - [BoostGetBoost200ResponseClaimPermissions](docs/BoostGetBoost200ResponseClaimPermissions.md) + - [BoostGetBoost200ResponseDefaultPermissions](docs/BoostGetBoost200ResponseDefaultPermissions.md) - [BoostGetBoostAdmins200Response](docs/BoostGetBoostAdmins200Response.md) - [BoostGetBoostAdminsRequest](docs/BoostGetBoostAdminsRequest.md) + - [BoostGetBoostAlignments200ResponseInner](docs/BoostGetBoostAlignments200ResponseInner.md) - [BoostGetBoostChildrenRequest](docs/BoostGetBoostChildrenRequest.md) + - [BoostGetBoostFrameworks200Response](docs/BoostGetBoostFrameworks200Response.md) + - [BoostGetBoostFrameworks200ResponseRecordsInner](docs/BoostGetBoostFrameworks200ResponseRecordsInner.md) + - [BoostGetBoostFrameworksRequest](docs/BoostGetBoostFrameworksRequest.md) + - [BoostGetBoostFrameworksRequestQuery](docs/BoostGetBoostFrameworksRequestQuery.md) + - [BoostGetBoostFrameworksRequestQueryAnyOf](docs/BoostGetBoostFrameworksRequestQueryAnyOf.md) + - [BoostGetBoostFrameworksRequestQueryAnyOfOrInner](docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md) + - [BoostGetBoostParentsRequest](docs/BoostGetBoostParentsRequest.md) - [BoostGetBoostRecipients200ResponseInner](docs/BoostGetBoostRecipients200ResponseInner.md) - [BoostGetBoostRecipients200ResponseInnerTo](docs/BoostGetBoostRecipients200ResponseInnerTo.md) - [BoostGetBoostRecipients200ResponseInnerToDisplay](docs/BoostGetBoostRecipients200ResponseInnerToDisplay.md) + - [BoostGetBoostRecipientsWithChildrenCountRequest](docs/BoostGetBoostRecipientsWithChildrenCountRequest.md) + - [BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations](docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) - [BoostGetBoostSiblingsRequest](docs/BoostGetBoostSiblingsRequest.md) - [BoostGetBoosts200ResponseInner](docs/BoostGetBoosts200ResponseInner.md) - [BoostGetBoostsRequest](docs/BoostGetBoostsRequest.md) - [BoostGetBoostsRequestQuery](docs/BoostGetBoostsRequestQuery.md) - - [BoostGetBoostsRequestQueryStatus](docs/BoostGetBoostsRequestQueryStatus.md) - - [BoostGetBoostsRequestQueryStatusAnyOf](docs/BoostGetBoostsRequestQueryStatusAnyOf.md) - - [BoostGetBoostsRequestQueryUri](docs/BoostGetBoostsRequestQueryUri.md) - - [BoostGetBoostsRequestQueryUriAnyOf](docs/BoostGetBoostsRequestQueryUriAnyOf.md) - - [BoostGetBoostsRequestQueryUriAnyOf1](docs/BoostGetBoostsRequestQueryUriAnyOf1.md) - - [BoostGetBoostsRequestQueryUriAnyOfAnyOf](docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md) + - [BoostGetBoostsRequestQueryAnyOf](docs/BoostGetBoostsRequestQueryAnyOf.md) + - [BoostGetBoostsRequestQueryAnyOfOrInner](docs/BoostGetBoostsRequestQueryAnyOfOrInner.md) + - [BoostGetBoostsRequestQueryAnyOfOrInnerStatus](docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md) + - [BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf](docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md) - [BoostGetChildrenProfileManagers200Response](docs/BoostGetChildrenProfileManagers200Response.md) - [BoostGetChildrenProfileManagers200ResponseRecordsInner](docs/BoostGetChildrenProfileManagers200ResponseRecordsInner.md) - [BoostGetChildrenProfileManagersRequest](docs/BoostGetChildrenProfileManagersRequest.md) @@ -279,12 +393,47 @@ Class | Method | HTTP request | Description - [BoostGetConnectedBoostRecipientsRequest](docs/BoostGetConnectedBoostRecipientsRequest.md) - [BoostGetFamilialBoostsRequest](docs/BoostGetFamilialBoostsRequest.md) - [BoostGetPaginatedBoostRecipients200Response](docs/BoostGetPaginatedBoostRecipients200Response.md) + - [BoostGetPaginatedBoostRecipients200ResponseRecordsInner](docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md) + - [BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo](docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) + - [BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay](docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md) - [BoostGetPaginatedBoostRecipientsRequest](docs/BoostGetPaginatedBoostRecipientsRequest.md) - [BoostGetPaginatedBoostRecipientsRequestQuery](docs/BoostGetPaginatedBoostRecipientsRequestQuery.md) + - [BoostGetPaginatedBoostRecipientsWithChildren200Response](docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md) + - [BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner](docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md) + - [BoostGetPaginatedBoostRecipientsWithChildrenRequest](docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md) + - [BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations](docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md) - [BoostGetPaginatedBoosts200Response](docs/BoostGetPaginatedBoosts200Response.md) - [BoostGetPaginatedBoosts200ResponseRecordsInner](docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md) - [BoostGetPaginatedBoostsRequest](docs/BoostGetPaginatedBoostsRequest.md) + - [BoostGetSkillsAvailableForBoost200ResponseInner](docs/BoostGetSkillsAvailableForBoost200ResponseInner.md) + - [BoostGetSkillsAvailableForBoost200ResponseInnerFramework](docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md) + - [BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner](docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md) - [BoostMakeBoostParentRequest](docs/BoostMakeBoostParentRequest.md) + - [BoostRemoveBoostAdminRequest](docs/BoostRemoveBoostAdminRequest.md) + - [BoostRemoveBoostParentRequest](docs/BoostRemoveBoostParentRequest.md) + - [BoostSearchSkillsAvailableForBoost200Response](docs/BoostSearchSkillsAvailableForBoost200Response.md) + - [BoostSearchSkillsAvailableForBoost200ResponseRecordsInner](docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md) + - [BoostSearchSkillsAvailableForBoostRequest](docs/BoostSearchSkillsAvailableForBoostRequest.md) + - [BoostSearchSkillsAvailableForBoostRequestQuery](docs/BoostSearchSkillsAvailableForBoostRequestQuery.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md) + - [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf](docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md) + - [BoostSend200Response](docs/BoostSend200Response.md) - [BoostSendBoostRequest](docs/BoostSendBoostRequest.md) - [BoostSendBoostRequestCredential](docs/BoostSendBoostRequestCredential.md) - [BoostSendBoostRequestCredentialAnyOf](docs/BoostSendBoostRequestCredentialAnyOf.md) @@ -295,12 +444,14 @@ Class | Method | HTTP request | Description - [BoostSendBoostRequestCredentialAnyOfContextInner](docs/BoostSendBoostRequestCredentialAnyOfContextInner.md) - [BoostSendBoostRequestCredentialAnyOfCredentialSchema](docs/BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) - [BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf](docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf.md) + - [BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner](docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md) - [BoostSendBoostRequestCredentialAnyOfCredentialStatus](docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) - - [BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf](docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md) - [BoostSendBoostRequestCredentialAnyOfCredentialSubject](docs/BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) - [BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf](docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf.md) + - [BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner](docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md) - [BoostSendBoostRequestCredentialAnyOfEvidence](docs/BoostSendBoostRequestCredentialAnyOfEvidence.md) - [BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf](docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md) + - [BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner](docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md) - [BoostSendBoostRequestCredentialAnyOfIssuer](docs/BoostSendBoostRequestCredentialAnyOfIssuer.md) - [BoostSendBoostRequestCredentialAnyOfIssuerAnyOf](docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOf.md) - [BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress](docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress.md) @@ -313,44 +464,91 @@ Class | Method | HTTP request | Description - [BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType](docs/BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) - [BoostSendBoostRequestCredentialAnyOfProof](docs/BoostSendBoostRequestCredentialAnyOfProof.md) - [BoostSendBoostRequestCredentialAnyOfProofAnyOf](docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf.md) + - [BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner](docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md) - [BoostSendBoostRequestCredentialAnyOfRefreshService](docs/BoostSendBoostRequestCredentialAnyOfRefreshService.md) - [BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf](docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf.md) + - [BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner](docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md) - [BoostSendBoostRequestCredentialAnyOfTermsOfUse](docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) - - [BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf](docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md) - [BoostSendBoostRequestOptions](docs/BoostSendBoostRequestOptions.md) - [BoostSendBoostViaSigningAuthorityRequest](docs/BoostSendBoostViaSigningAuthorityRequest.md) - [BoostSendBoostViaSigningAuthorityRequestSigningAuthority](docs/BoostSendBoostViaSigningAuthorityRequestSigningAuthority.md) + - [BoostSendRequest](docs/BoostSendRequest.md) + - [BoostSendRequestTemplate](docs/BoostSendRequestTemplate.md) + - [BoostSendRequestTemplateClaimPermissions](docs/BoostSendRequestTemplateClaimPermissions.md) + - [BoostSendRequestTemplateCredential](docs/BoostSendRequestTemplateCredential.md) + - [BoostSendRequestTemplateCredentialAnyOf](docs/BoostSendRequestTemplateCredentialAnyOf.md) + - [BoostSendRequestTemplateCredentialAnyOf1](docs/BoostSendRequestTemplateCredentialAnyOf1.md) + - [BoostSendRequestTemplateCredentialAnyOfContextInner](docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md) + - [BoostSendRequestTemplateCredentialAnyOfCredentialSubject](docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) + - [BoostSendRequestTemplateCredentialAnyOfEvidence](docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuer](docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md) + - [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType](docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) + - [BoostSendRequestTemplateCredentialAnyOfProof](docs/BoostSendRequestTemplateCredentialAnyOfProof.md) + - [BoostSendRequestTemplateDefaultPermissions](docs/BoostSendRequestTemplateDefaultPermissions.md) + - [BoostSendRequestTemplateSkillsInner](docs/BoostSendRequestTemplateSkillsInner.md) - [BoostUpdateBoostPermissionsRequest](docs/BoostUpdateBoostPermissionsRequest.md) - [BoostUpdateBoostPermissionsRequestUpdates](docs/BoostUpdateBoostPermissionsRequestUpdates.md) - [BoostUpdateBoostRequest](docs/BoostUpdateBoostRequest.md) - [BoostUpdateBoostRequestUpdates](docs/BoostUpdateBoostRequestUpdates.md) + - [BoostUpdateOtherBoostPermissionsRequest](docs/BoostUpdateOtherBoostPermissionsRequest.md) + - [BoostUpdateOtherBoostPermissionsRequestUpdates](docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md) - [ClaimHookCreateClaimHookRequest](docs/ClaimHookCreateClaimHookRequest.md) - [ClaimHookCreateClaimHookRequestHook](docs/ClaimHookCreateClaimHookRequestHook.md) - [ClaimHookCreateClaimHookRequestHookOneOf](docs/ClaimHookCreateClaimHookRequestHookOneOf.md) - [ClaimHookCreateClaimHookRequestHookOneOf1](docs/ClaimHookCreateClaimHookRequestHookOneOf1.md) - [ClaimHookCreateClaimHookRequestHookOneOf1Data](docs/ClaimHookCreateClaimHookRequestHookOneOf1Data.md) + - [ClaimHookCreateClaimHookRequestHookOneOf2](docs/ClaimHookCreateClaimHookRequestHookOneOf2.md) + - [ClaimHookCreateClaimHookRequestHookOneOf2Data](docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md) - [ClaimHookCreateClaimHookRequestHookOneOfData](docs/ClaimHookCreateClaimHookRequestHookOneOfData.md) - [ClaimHookDeleteClaimHookRequest](docs/ClaimHookDeleteClaimHookRequest.md) - [ClaimHookGetClaimHooksForBoost200Response](docs/ClaimHookGetClaimHooksForBoost200Response.md) - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInner](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md) + - [ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions](docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md) - [ClaimHookGetClaimHooksForBoostRequest](docs/ClaimHookGetClaimHooksForBoostRequest.md) - [ClaimHookGetClaimHooksForBoostRequestQuery](docs/ClaimHookGetClaimHooksForBoostRequestQuery.md) - [ClaimHookGetClaimHooksForBoostRequestQueryData](docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md) - [ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions](docs/ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md) - [ContactMethodsAddContactMethod200Response](docs/ContactMethodsAddContactMethod200Response.md) - [ContactMethodsAddContactMethodRequest](docs/ContactMethodsAddContactMethodRequest.md) + - [ContactMethodsCreateContactMethodSession200Response](docs/ContactMethodsCreateContactMethodSession200Response.md) + - [ContactMethodsCreateContactMethodSessionRequest](docs/ContactMethodsCreateContactMethodSessionRequest.md) + - [ContactMethodsCreateContactMethodSessionRequestContactMethod](docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md) - [ContactMethodsGetMyContactMethods200ResponseInner](docs/ContactMethodsGetMyContactMethods200ResponseInner.md) - [ContactMethodsGetMyContactMethods200ResponseInnerOneOf](docs/ContactMethodsGetMyContactMethods200ResponseInnerOneOf.md) - [ContactMethodsGetMyContactMethods200ResponseInnerOneOf1](docs/ContactMethodsGetMyContactMethods200ResponseInnerOneOf1.md) - - [ContactMethodsSetPrimaryContactMethod200Response](docs/ContactMethodsSetPrimaryContactMethod200Response.md) + - [ContactMethodsRemoveContactMethodRequest](docs/ContactMethodsRemoveContactMethodRequest.md) + - [ContactMethodsSendChallenge200Response](docs/ContactMethodsSendChallenge200Response.md) + - [ContactMethodsSendChallengeRequest](docs/ContactMethodsSendChallengeRequest.md) + - [ContactMethodsSendChallengeRequestConfiguration](docs/ContactMethodsSendChallengeRequestConfiguration.md) - [ContactMethodsSetPrimaryContactMethodRequest](docs/ContactMethodsSetPrimaryContactMethodRequest.md) - - [ContactMethodsVerifyContactMethod200Response](docs/ContactMethodsVerifyContactMethod200Response.md) - [ContactMethodsVerifyContactMethodRequest](docs/ContactMethodsVerifyContactMethodRequest.md) + - [ContactMethodsVerifyWithCredential200Response](docs/ContactMethodsVerifyWithCredential200Response.md) + - [ContactMethodsVerifyWithCredential200ResponseContactMethod](docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md) + - [ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf](docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md) + - [ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1](docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md) + - [ContactMethodsVerifyWithCredentialRequest](docs/ContactMethodsVerifyWithCredentialRequest.md) - [ContractsAddAutoBoostsToContractRequest](docs/ContractsAddAutoBoostsToContractRequest.md) + - [ContractsAddAutoBoostsToContractRequestAutoboostsInner](docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md) + - [ContractsCancelContractRequestRequest](docs/ContractsCancelContractRequestRequest.md) + - [ContractsConsentToContract200Response](docs/ContractsConsentToContract200Response.md) - [ContractsConsentToContractRequest](docs/ContractsConsentToContractRequest.md) - [ContractsConsentToContractRequestTerms](docs/ContractsConsentToContractRequestTerms.md) - [ContractsConsentToContractRequestTermsRead](docs/ContractsConsentToContractRequestTermsRead.md) - [ContractsConsentToContractRequestTermsReadCredentials](docs/ContractsConsentToContractRequestTermsReadCredentials.md) + - [ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue](docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md) - [ContractsConsentToContractRequestTermsWrite](docs/ContractsConsentToContractRequestTermsWrite.md) - [ContractsConsentToContractRequestTermsWriteCredentials](docs/ContractsConsentToContractRequestTermsWriteCredentials.md) - [ContractsCreateConsentFlowContractRequest](docs/ContractsCreateConsentFlowContractRequest.md) @@ -359,9 +557,15 @@ Class | Method | HTTP request | Description - [ContractsCreateConsentFlowContractRequestContract](docs/ContractsCreateConsentFlowContractRequestContract.md) - [ContractsCreateConsentFlowContractRequestContractRead](docs/ContractsCreateConsentFlowContractRequestContractRead.md) - [ContractsCreateConsentFlowContractRequestContractReadCredentials](docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md) + - [ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue](docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md) - [ContractsCreateConsentFlowContractRequestContractWrite](docs/ContractsCreateConsentFlowContractRequestContractWrite.md) + - [ContractsForwardContractRequestToProfileRequest](docs/ContractsForwardContractRequestToProfileRequest.md) + - [ContractsGetAllContractRequestsForProfile200ResponseInner](docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md) + - [ContractsGetAllContractRequestsForProfile200ResponseInnerContract](docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md) - [ContractsGetAllCredentialsForTermsRequest](docs/ContractsGetAllCredentialsForTermsRequest.md) - [ContractsGetConsentFlowContract200Response](docs/ContractsGetConsentFlowContract200Response.md) + - [ContractsGetConsentFlowContract200ResponseContract](docs/ContractsGetConsentFlowContract200ResponseContract.md) + - [ContractsGetConsentFlowContract200ResponseContractRead](docs/ContractsGetConsentFlowContract200ResponseContractRead.md) - [ContractsGetConsentFlowContracts200Response](docs/ContractsGetConsentFlowContracts200Response.md) - [ContractsGetConsentFlowContracts200ResponseRecordsInner](docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md) - [ContractsGetConsentFlowContractsRequest](docs/ContractsGetConsentFlowContractsRequest.md) @@ -372,11 +576,18 @@ Class | Method | HTTP request | Description - [ContractsGetConsentFlowContractsRequestQueryWrite](docs/ContractsGetConsentFlowContractsRequestQueryWrite.md) - [ContractsGetConsentedContracts200Response](docs/ContractsGetConsentedContracts200Response.md) - [ContractsGetConsentedContracts200ResponseRecordsInner](docs/ContractsGetConsentedContracts200ResponseRecordsInner.md) + - [ContractsGetConsentedContracts200ResponseRecordsInnerTerms](docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md) + - [ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead](docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md) + - [ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials](docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md) + - [ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue](docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md) - [ContractsGetConsentedContractsRequest](docs/ContractsGetConsentedContractsRequest.md) - [ContractsGetConsentedContractsRequestQuery](docs/ContractsGetConsentedContractsRequestQuery.md) - [ContractsGetConsentedContractsRequestQueryRead](docs/ContractsGetConsentedContractsRequestQueryRead.md) - [ContractsGetConsentedContractsRequestQueryReadCredentials](docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md) + - [ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue](docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md) - [ContractsGetConsentedContractsRequestQueryWrite](docs/ContractsGetConsentedContractsRequestQueryWrite.md) + - [ContractsGetConsentedData200Response](docs/ContractsGetConsentedData200Response.md) + - [ContractsGetConsentedData200ResponseRecordsInner](docs/ContractsGetConsentedData200ResponseRecordsInner.md) - [ContractsGetConsentedDataForContract200Response](docs/ContractsGetConsentedDataForContract200Response.md) - [ContractsGetConsentedDataForContract200ResponseRecordsInner](docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md) - [ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials](docs/ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials.md) @@ -389,11 +600,16 @@ Class | Method | HTTP request | Description - [ContractsGetConsentedDataForDidRequest](docs/ContractsGetConsentedDataForDidRequest.md) - [ContractsGetConsentedDataForDidRequestQuery](docs/ContractsGetConsentedDataForDidRequestQuery.md) - [ContractsGetConsentedDataRequest](docs/ContractsGetConsentedDataRequest.md) + - [ContractsGetContractSentRequests200ResponseInner](docs/ContractsGetContractSentRequests200ResponseInner.md) - [ContractsGetCredentialsForContract200Response](docs/ContractsGetCredentialsForContract200Response.md) - [ContractsGetCredentialsForContract200ResponseRecordsInner](docs/ContractsGetCredentialsForContract200ResponseRecordsInner.md) - [ContractsGetCredentialsForContractRequest](docs/ContractsGetCredentialsForContractRequest.md) + - [ContractsGetRequestStatusForProfile200Response](docs/ContractsGetRequestStatusForProfile200Response.md) - [ContractsGetTermsTransactionHistory200Response](docs/ContractsGetTermsTransactionHistory200Response.md) - [ContractsGetTermsTransactionHistory200ResponseRecordsInner](docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md) + - [ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms](docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md) + - [ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite](docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md) + - [ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials](docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md) - [ContractsGetTermsTransactionHistoryRequest](docs/ContractsGetTermsTransactionHistoryRequest.md) - [ContractsGetTermsTransactionHistoryRequestQuery](docs/ContractsGetTermsTransactionHistoryRequestQuery.md) - [ContractsGetTermsTransactionHistoryRequestQueryAction](docs/ContractsGetTermsTransactionHistoryRequestQueryAction.md) @@ -402,36 +618,79 @@ Class | Method | HTTP request | Description - [ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1](docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1.md) - [ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf](docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf.md) - [ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1](docs/ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1.md) + - [ContractsGetTermsTransactionHistoryRequestQueryExpiresAt](docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md) + - [ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf](docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md) + - [ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1](docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md) + - [ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf](docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md) + - [ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1](docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md) - [ContractsGetTermsTransactionHistoryRequestQueryTerms](docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md) + - [ContractsGetTermsTransactionHistoryRequestQueryTermsRead](docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md) + - [ContractsMarkContractRequestAsSeenRequest](docs/ContractsMarkContractRequestAsSeenRequest.md) - [ContractsRemoveAutoBoostsFromContractRequest](docs/ContractsRemoveAutoBoostsFromContractRequest.md) + - [ContractsSendAiInsightShareRequestRequest](docs/ContractsSendAiInsightShareRequestRequest.md) + - [ContractsSendAiInsightsContractRequestRequest](docs/ContractsSendAiInsightsContractRequestRequest.md) - [ContractsSyncCredentialsToContractRequest](docs/ContractsSyncCredentialsToContractRequest.md) - [ContractsUpdateConsentedContractTermsRequest](docs/ContractsUpdateConsentedContractTermsRequest.md) + - [ContractsUpdateConsentedContractTermsRequestTerms](docs/ContractsUpdateConsentedContractTermsRequestTerms.md) + - [ContractsUpdateConsentedContractTermsRequestTermsRead](docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md) + - [ContractsUpdateConsentedContractTermsRequestTermsReadCredentials](docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md) - [ContractsWriteCredentialToContractRequest](docs/ContractsWriteCredentialToContractRequest.md) + - [ContractsWriteCredentialToContractRequestCredential](docs/ContractsWriteCredentialToContractRequestCredential.md) - [ContractsWriteCredentialToContractViaSigningAuthorityRequest](docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md) - [CredentialAcceptCredentialRequest](docs/CredentialAcceptCredentialRequest.md) + - [CredentialAcceptCredentialRequestOptions](docs/CredentialAcceptCredentialRequestOptions.md) - [CredentialReceivedCredentials200ResponseInner](docs/CredentialReceivedCredentials200ResponseInner.md) - [CredentialSendCredentialRequest](docs/CredentialSendCredentialRequest.md) - [CredentialSendCredentialRequestCredential](docs/CredentialSendCredentialRequestCredential.md) - [CredentialSendCredentialRequestCredentialAnyOf](docs/CredentialSendCredentialRequestCredentialAnyOf.md) + - [CredentialSendCredentialRequestCredentialAnyOf1](docs/CredentialSendCredentialRequestCredentialAnyOf1.md) + - [CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner](docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) + - [CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader](docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md) + - [CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk](docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md) - [DidMetadataAddDidMetadataRequest](docs/DidMetadataAddDidMetadataRequest.md) + - [DidMetadataAddDidMetadataRequestAuthenticationInner](docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md) + - [DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf](docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md) + - [DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk](docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md) - [DidMetadataAddDidMetadataRequestServiceInner](docs/DidMetadataAddDidMetadataRequestServiceInner.md) - - [DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint](docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md) - [DidMetadataAddDidMetadataRequestVerificationMethodInner](docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md) - [DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf](docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md) - [DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk](docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk.md) + - [DidMetadataGetDidMetadata200Response](docs/DidMetadataGetDidMetadata200Response.md) + - [DidMetadataGetDidMetadata200ResponseAuthenticationInner](docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) + - [DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf](docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md) + - [DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk](docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md) + - [DidMetadataGetDidMetadata200ResponseServiceInner](docs/DidMetadataGetDidMetadata200ResponseServiceInner.md) + - [DidMetadataGetDidMetadata200ResponseVerificationMethodInner](docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md) + - [DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf](docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md) + - [DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk](docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md) - [DidMetadataGetMyDidMetadata200ResponseInner](docs/DidMetadataGetMyDidMetadata200ResponseInner.md) - [DidMetadataUpdateDidMetadataRequest](docs/DidMetadataUpdateDidMetadataRequest.md) + - [DidMetadataUpdateDidMetadataRequestUpdates](docs/DidMetadataUpdateDidMetadataRequestUpdates.md) - [ErrorBADREQUEST](docs/ErrorBADREQUEST.md) + - [ErrorBADREQUESTIssuesInner](docs/ErrorBADREQUESTIssuesInner.md) - [ErrorFORBIDDEN](docs/ErrorFORBIDDEN.md) - [ErrorINTERNALSERVERERROR](docs/ErrorINTERNALSERVERERROR.md) - [ErrorNOTFOUND](docs/ErrorNOTFOUND.md) - [ErrorUNAUTHORIZED](docs/ErrorUNAUTHORIZED.md) + - [InboxApproveGuardianRequestRequest](docs/InboxApproveGuardianRequestRequest.md) + - [InboxClaim200Response](docs/InboxClaim200Response.md) + - [InboxClaim200ResponseInboxCredential](docs/InboxClaim200ResponseInboxCredential.md) + - [InboxClaim200ResponseInboxCredentialSigningAuthority](docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md) + - [InboxClaimRequest](docs/InboxClaimRequest.md) + - [InboxClaimRequestConfiguration](docs/InboxClaimRequestConfiguration.md) + - [InboxClaimRequestCredential](docs/InboxClaimRequestCredential.md) + - [InboxFinalize200Response](docs/InboxFinalize200Response.md) - [InboxGetMyIssuedCredentials200Response](docs/InboxGetMyIssuedCredentials200Response.md) - [InboxGetMyIssuedCredentials200ResponseRecordsInner](docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md) + - [InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority](docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md) - [InboxGetMyIssuedCredentialsRequest](docs/InboxGetMyIssuedCredentialsRequest.md) - [InboxGetMyIssuedCredentialsRequestQuery](docs/InboxGetMyIssuedCredentialsRequestQuery.md) + - [InboxGetMyIssuedCredentialsRequestRecipient](docs/InboxGetMyIssuedCredentialsRequestRecipient.md) + - [InboxGetMyIssuedCredentialsRequestRecipientOneOf](docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md) - [InboxIssue200Response](docs/InboxIssue200Response.md) - [InboxIssue200ResponseRecipient](docs/InboxIssue200ResponseRecipient.md) + - [InboxIssue200ResponseRecipientOneOf](docs/InboxIssue200ResponseRecipientOneOf.md) + - [InboxIssue200ResponseRecipientOneOf1](docs/InboxIssue200ResponseRecipientOneOf1.md) - [InboxIssueRequest](docs/InboxIssueRequest.md) - [InboxIssueRequestConfiguration](docs/InboxIssueRequestConfiguration.md) - [InboxIssueRequestConfigurationDelivery](docs/InboxIssueRequestConfigurationDelivery.md) @@ -446,27 +705,85 @@ Class | Method | HTTP request | Description - [InboxIssueRequestRecipient](docs/InboxIssueRequestRecipient.md) - [InboxIssueRequestRecipientOneOf](docs/InboxIssueRequestRecipientOneOf.md) - [InboxIssueRequestRecipientOneOf1](docs/InboxIssueRequestRecipientOneOf1.md) + - [InboxSendGuardianApprovalEmail200Response](docs/InboxSendGuardianApprovalEmail200Response.md) + - [InboxSendGuardianApprovalEmailRequest](docs/InboxSendGuardianApprovalEmailRequest.md) + - [InboxSendGuardianApprovalEmailRequestTemplate](docs/InboxSendGuardianApprovalEmailRequestTemplate.md) + - [IntegrationsAddIntegrationRequest](docs/IntegrationsAddIntegrationRequest.md) + - [IntegrationsAddIntegrationRequestWhitelistedDomainsInner](docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md) + - [IntegrationsAssociateIntegrationWithSigningAuthorityRequest](docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md) + - [IntegrationsCountIntegrationsRequest](docs/IntegrationsCountIntegrationsRequest.md) + - [IntegrationsGetIntegration200Response](docs/IntegrationsGetIntegration200Response.md) + - [IntegrationsGetIntegrations200Response](docs/IntegrationsGetIntegrations200Response.md) + - [IntegrationsGetIntegrations200ResponseRecordsInner](docs/IntegrationsGetIntegrations200ResponseRecordsInner.md) + - [IntegrationsGetIntegrationsRequest](docs/IntegrationsGetIntegrationsRequest.md) + - [IntegrationsGetIntegrationsRequestQuery](docs/IntegrationsGetIntegrationsRequestQuery.md) + - [IntegrationsUpdateIntegrationRequest](docs/IntegrationsUpdateIntegrationRequest.md) + - [IntegrationsUpdateIntegrationRequestUpdates](docs/IntegrationsUpdateIntegrationRequestUpdates.md) - [PresentationAcceptPresentationRequest](docs/PresentationAcceptPresentationRequest.md) - [PresentationSendPresentationRequest](docs/PresentationSendPresentationRequest.md) - [PresentationSendPresentationRequestPresentation](docs/PresentationSendPresentationRequestPresentation.md) - [PresentationSendPresentationRequestPresentationAnyOf](docs/PresentationSendPresentationRequestPresentationAnyOf.md) - [PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential](docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) - [ProfileCreateProfileRequest](docs/ProfileCreateProfileRequest.md) + - [ProfileCreateProfileRequestDisplay](docs/ProfileCreateProfileRequestDisplay.md) + - [ProfileCreateServiceProfileRequest](docs/ProfileCreateServiceProfileRequest.md) + - [ProfileCreateServiceProfileRequestDisplay](docs/ProfileCreateServiceProfileRequestDisplay.md) - [ProfileGenerateInvite200Response](docs/ProfileGenerateInvite200Response.md) - [ProfileGenerateInviteRequest](docs/ProfileGenerateInviteRequest.md) - [ProfileGetAvailableProfiles200Response](docs/ProfileGetAvailableProfiles200Response.md) - [ProfileGetAvailableProfiles200ResponseRecordsInner](docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md) + - [ProfileGetAvailableProfiles200ResponseRecordsInnerManager](docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md) - [ProfileGetAvailableProfilesRequest](docs/ProfileGetAvailableProfilesRequest.md) + - [ProfileListInvites200ResponseInner](docs/ProfileListInvites200ResponseInner.md) - [ProfileManagerCreateChildProfileManagerRequest](docs/ProfileManagerCreateChildProfileManagerRequest.md) + - [ProfileManagerCreateChildProfileManagerRequestProfile](docs/ProfileManagerCreateChildProfileManagerRequestProfile.md) - [ProfileManagerCreateManagedProfileRequest](docs/ProfileManagerCreateManagedProfileRequest.md) - [ProfileManagerCreateProfileManagerRequest](docs/ProfileManagerCreateProfileManagerRequest.md) + - [ProfileManagerGetManagedProfilesRequest](docs/ProfileManagerGetManagedProfilesRequest.md) - [ProfileRegisterSigningAuthorityRequest](docs/ProfileRegisterSigningAuthorityRequest.md) - [ProfileSearchProfiles200ResponseInner](docs/ProfileSearchProfiles200ResponseInner.md) - [ProfileSetPrimarySigningAuthorityRequest](docs/ProfileSetPrimarySigningAuthorityRequest.md) - [ProfileSigningAuthorities200ResponseInner](docs/ProfileSigningAuthorities200ResponseInner.md) - [ProfileSigningAuthorities200ResponseInnerRelationship](docs/ProfileSigningAuthorities200ResponseInnerRelationship.md) - [ProfileSigningAuthorities200ResponseInnerSigningAuthority](docs/ProfileSigningAuthorities200ResponseInnerSigningAuthority.md) + - [ProfileSigningAuthority200Response](docs/ProfileSigningAuthority200Response.md) + - [ProfileSigningAuthority200ResponseRelationship](docs/ProfileSigningAuthority200ResponseRelationship.md) + - [ProfileSigningAuthority200ResponseSigningAuthority](docs/ProfileSigningAuthority200ResponseSigningAuthority.md) - [ProfileUpdateProfileRequest](docs/ProfileUpdateProfileRequest.md) + - [Schema0](docs/Schema0.md) + - [Schema1](docs/Schema1.md) + - [SkillFrameworksAddFrameworkAdmin200Response](docs/SkillFrameworksAddFrameworkAdmin200Response.md) + - [SkillFrameworksAddFrameworkAdminRequest](docs/SkillFrameworksAddFrameworkAdminRequest.md) + - [SkillFrameworksCountBoostsThatUseFramework200Response](docs/SkillFrameworksCountBoostsThatUseFramework200Response.md) + - [SkillFrameworksCreateManagedBatchRequest](docs/SkillFrameworksCreateManagedBatchRequest.md) + - [SkillFrameworksCreateManagedBatchRequestFrameworksInner](docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md) + - [SkillFrameworksCreateManagedRequest](docs/SkillFrameworksCreateManagedRequest.md) + - [SkillFrameworksCreateRequest](docs/SkillFrameworksCreateRequest.md) + - [SkillFrameworksGetBoostsThatUseFrameworkRequest](docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md) + - [SkillFrameworksGetById200Response](docs/SkillFrameworksGetById200Response.md) + - [SkillFrameworksGetById200ResponseSkills](docs/SkillFrameworksGetById200ResponseSkills.md) + - [SkillFrameworksRemoveFrameworkAdmin200Response](docs/SkillFrameworksRemoveFrameworkAdmin200Response.md) + - [SkillFrameworksReplaceSkills200Response](docs/SkillFrameworksReplaceSkills200Response.md) + - [SkillFrameworksReplaceSkillsRequest](docs/SkillFrameworksReplaceSkillsRequest.md) + - [SkillFrameworksUpdateRequest](docs/SkillFrameworksUpdateRequest.md) + - [SkillsAddSkillTag200ResponseInner](docs/SkillsAddSkillTag200ResponseInner.md) + - [SkillsAddSkillTagRequest](docs/SkillsAddSkillTagRequest.md) + - [SkillsAddSkillTagRequestTag](docs/SkillsAddSkillTagRequestTag.md) + - [SkillsCountSkills200Response](docs/SkillsCountSkills200Response.md) + - [SkillsCreate200Response](docs/SkillsCreate200Response.md) + - [SkillsCreateManyRequest](docs/SkillsCreateManyRequest.md) + - [SkillsCreateRequest](docs/SkillsCreateRequest.md) + - [SkillsDelete200Response](docs/SkillsDelete200Response.md) + - [SkillsGetFrameworkSkillTree200Response](docs/SkillsGetFrameworkSkillTree200Response.md) + - [SkillsGetFullSkillTree200Response](docs/SkillsGetFullSkillTree200Response.md) + - [SkillsGetSkill200Response](docs/SkillsGetSkill200Response.md) + - [SkillsGetSkillPath200Response](docs/SkillsGetSkillPath200Response.md) + - [SkillsListSkillTags200ResponseInner](docs/SkillsListSkillTags200ResponseInner.md) + - [SkillsSearchFrameworkSkillsRequest](docs/SkillsSearchFrameworkSkillsRequest.md) + - [SkillsSearchFrameworkSkillsRequestQuery](docs/SkillsSearchFrameworkSkillsRequestQuery.md) + - [SkillsSearchFrameworkSkillsRequestQueryAnyOf](docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md) + - [SkillsSyncFrameworkSkills200Response](docs/SkillsSyncFrameworkSkills200Response.md) + - [SkillsUpdateRequest](docs/SkillsUpdateRequest.md) - [StorageResolve200Response](docs/StorageResolve200Response.md) - [StorageResolve200ResponseAnyOf](docs/StorageResolve200ResponseAnyOf.md) - [StorageResolve200ResponseAnyOf1](docs/StorageResolve200ResponseAnyOf1.md) @@ -476,13 +793,34 @@ Class | Method | HTTP request | Description - [StorageResolve200ResponseAnyOf1Write](docs/StorageResolve200ResponseAnyOf1Write.md) - [StorageResolve200ResponseAnyOf1WriteCredentials](docs/StorageResolve200ResponseAnyOf1WriteCredentials.md) - [StorageResolve200ResponseAnyOfAnyOf](docs/StorageResolve200ResponseAnyOfAnyOf.md) - - [StorageResolve200ResponseAnyOfAnyOfRead](docs/StorageResolve200ResponseAnyOfAnyOfRead.md) - - [StorageResolve200ResponseAnyOfAnyOfReadCredentials](docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md) - - [StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue](docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) - - [StorageResolve200ResponseAnyOfAnyOfWrite](docs/StorageResolve200ResponseAnyOfAnyOfWrite.md) + - [StorageResolve200ResponseAnyOfAnyOf1](docs/StorageResolve200ResponseAnyOfAnyOf1.md) + - [StorageResolve200ResponseAnyOfAnyOf1Read](docs/StorageResolve200ResponseAnyOfAnyOf1Read.md) + - [StorageResolve200ResponseAnyOfAnyOf1ReadCredentials](docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md) + - [StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue](docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md) + - [StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue](docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md) + - [StorageResolve200ResponseAnyOfAnyOf1Write](docs/StorageResolve200ResponseAnyOfAnyOf1Write.md) + - [StorageResolve200ResponseAnyOfAnyOf1WriteCredentials](docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOf](docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOf1](docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner](docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader](docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk](docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md) + - [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner](docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md) - [StorageStoreRequest](docs/StorageStoreRequest.md) - [StorageStoreRequestItem](docs/StorageStoreRequestItem.md) - [StorageStoreRequestItemAnyOf](docs/StorageStoreRequestItemAnyOf.md) + - [StorageStoreRequestItemAnyOfAnyOf](docs/StorageStoreRequestItemAnyOfAnyOf.md) - [WorkflowsParticipateInExchange200Response](docs/WorkflowsParticipateInExchange200Response.md) - [WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest](docs/WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest.md) - [WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner](docs/WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner.md) diff --git a/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminApi.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminApi.md new file mode 100644 index 0000000000..064ad3ca68 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminApi.md @@ -0,0 +1,339 @@ +# openapi_client.AppStoreAdminApi + +All URIs are relative to *https://network.learncard.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**app_store_admin_get_all_listings**](AppStoreAdminApi.md#app_store_admin_get_all_listings) | **POST** /app-store/admin/listings | Get All Listings (Admin) +[**app_store_admin_update_listing_status**](AppStoreAdminApi.md#app_store_admin_update_listing_status) | **POST** /app-store/admin/listing/{listingId}/status | Update Listing Status (Admin) +[**app_store_admin_update_promotion_level**](AppStoreAdminApi.md#app_store_admin_update_promotion_level) | **POST** /app-store/admin/listing/{listingId}/promotion | Update Promotion Level (Admin) +[**app_store_is_admin**](AppStoreAdminApi.md#app_store_is_admin) | **GET** /app-store/admin/check | Check Admin Status + + +# **app_store_admin_get_all_listings** +> AppStoreGetListingsForIntegration200Response app_store_admin_get_all_listings(app_store_admin_get_all_listings_request=app_store_admin_get_all_listings_request) + +Get All Listings (Admin) + +Get all App Store Listings regardless of status (admin only) + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreAdminApi(api_client) + app_store_admin_get_all_listings_request = openapi_client.AppStoreAdminGetAllListingsRequest() # AppStoreAdminGetAllListingsRequest | (optional) + + try: + # Get All Listings (Admin) + api_response = api_instance.app_store_admin_get_all_listings(app_store_admin_get_all_listings_request=app_store_admin_get_all_listings_request) + print("The response of AppStoreAdminApi->app_store_admin_get_all_listings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreAdminApi->app_store_admin_get_all_listings: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **app_store_admin_get_all_listings_request** | [**AppStoreAdminGetAllListingsRequest**](AppStoreAdminGetAllListingsRequest.md)| | [optional] + +### Return type + +[**AppStoreGetListingsForIntegration200Response**](AppStoreGetListingsForIntegration200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_admin_update_listing_status** +> bool app_store_admin_update_listing_status(listing_id, app_store_admin_update_listing_status_request) + +Update Listing Status (Admin) + +Update the status of an App Store Listing (admin only) + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreAdminApi(api_client) + listing_id = 'listing_id_example' # str | + app_store_admin_update_listing_status_request = openapi_client.AppStoreAdminUpdateListingStatusRequest() # AppStoreAdminUpdateListingStatusRequest | + + try: + # Update Listing Status (Admin) + api_response = api_instance.app_store_admin_update_listing_status(listing_id, app_store_admin_update_listing_status_request) + print("The response of AppStoreAdminApi->app_store_admin_update_listing_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreAdminApi->app_store_admin_update_listing_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + **app_store_admin_update_listing_status_request** | [**AppStoreAdminUpdateListingStatusRequest**](AppStoreAdminUpdateListingStatusRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_admin_update_promotion_level** +> bool app_store_admin_update_promotion_level(listing_id, app_store_admin_update_promotion_level_request) + +Update Promotion Level (Admin) + +Update the promotion level of an App Store Listing (admin only) + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreAdminApi(api_client) + listing_id = 'listing_id_example' # str | + app_store_admin_update_promotion_level_request = openapi_client.AppStoreAdminUpdatePromotionLevelRequest() # AppStoreAdminUpdatePromotionLevelRequest | + + try: + # Update Promotion Level (Admin) + api_response = api_instance.app_store_admin_update_promotion_level(listing_id, app_store_admin_update_promotion_level_request) + print("The response of AppStoreAdminApi->app_store_admin_update_promotion_level:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreAdminApi->app_store_admin_update_promotion_level: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + **app_store_admin_update_promotion_level_request** | [**AppStoreAdminUpdatePromotionLevelRequest**](AppStoreAdminUpdatePromotionLevelRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_is_admin** +> bool app_store_is_admin() + +Check Admin Status + +Check if the current user is an App Store administrator + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreAdminApi(api_client) + + try: + # Check Admin Status + api_response = api_instance.app_store_is_admin() + print("The response of AppStoreAdminApi->app_store_is_admin:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreAdminApi->app_store_is_admin: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminGetAllListingsRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminGetAllListingsRequest.md new file mode 100644 index 0000000000..060c83aec5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminGetAllListingsRequest.md @@ -0,0 +1,31 @@ +# AppStoreAdminGetAllListingsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] +**cursor** | **str** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreAdminGetAllListingsRequest from a JSON string +app_store_admin_get_all_listings_request_instance = AppStoreAdminGetAllListingsRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreAdminGetAllListingsRequest.to_json()) + +# convert the object into a dict +app_store_admin_get_all_listings_request_dict = app_store_admin_get_all_listings_request_instance.to_dict() +# create an instance of AppStoreAdminGetAllListingsRequest from a dict +app_store_admin_get_all_listings_request_from_dict = AppStoreAdminGetAllListingsRequest.from_dict(app_store_admin_get_all_listings_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdateListingStatusRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdateListingStatusRequest.md new file mode 100644 index 0000000000..ff065cd1d9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdateListingStatusRequest.md @@ -0,0 +1,29 @@ +# AppStoreAdminUpdateListingStatusRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | + +## Example + +```python +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreAdminUpdateListingStatusRequest from a JSON string +app_store_admin_update_listing_status_request_instance = AppStoreAdminUpdateListingStatusRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreAdminUpdateListingStatusRequest.to_json()) + +# convert the object into a dict +app_store_admin_update_listing_status_request_dict = app_store_admin_update_listing_status_request_instance.to_dict() +# create an instance of AppStoreAdminUpdateListingStatusRequest from a dict +app_store_admin_update_listing_status_request_from_dict = AppStoreAdminUpdateListingStatusRequest.from_dict(app_store_admin_update_listing_status_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdatePromotionLevelRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdatePromotionLevelRequest.md new file mode 100644 index 0000000000..a56dd450fb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreAdminUpdatePromotionLevelRequest.md @@ -0,0 +1,29 @@ +# AppStoreAdminUpdatePromotionLevelRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**promotion_level** | **str** | | + +## Example + +```python +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreAdminUpdatePromotionLevelRequest from a JSON string +app_store_admin_update_promotion_level_request_instance = AppStoreAdminUpdatePromotionLevelRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreAdminUpdatePromotionLevelRequest.to_json()) + +# convert the object into a dict +app_store_admin_update_promotion_level_request_dict = app_store_admin_update_promotion_level_request_instance.to_dict() +# create an instance of AppStoreAdminUpdatePromotionLevelRequest from a dict +app_store_admin_update_promotion_level_request_from_dict = AppStoreAdminUpdatePromotionLevelRequest.from_dict(app_store_admin_update_promotion_level_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreApi.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreApi.md new file mode 100644 index 0000000000..ef86917c3d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreApi.md @@ -0,0 +1,1217 @@ +# openapi_client.AppStoreApi + +All URIs are relative to *https://network.learncard.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**app_store_browse_listed_apps**](AppStoreApi.md#app_store_browse_listed_apps) | **POST** /app-store/browse | Browse App Store +[**app_store_count_installed_apps**](AppStoreApi.md#app_store_count_installed_apps) | **GET** /app-store/installed/count | Count Installed Apps +[**app_store_count_listings_for_integration**](AppStoreApi.md#app_store_count_listings_for_integration) | **GET** /app-store/integration/{integrationId}/listings/count | Count Listings for Integration +[**app_store_create_listing**](AppStoreApi.md#app_store_create_listing) | **POST** /app-store/listing/create | Create App Store Listing +[**app_store_delete_listing**](AppStoreApi.md#app_store_delete_listing) | **DELETE** /app-store/listing/{listingId} | Delete App Store Listing +[**app_store_get_installed_apps**](AppStoreApi.md#app_store_get_installed_apps) | **POST** /app-store/installed | Get Installed Apps +[**app_store_get_listing**](AppStoreApi.md#app_store_get_listing) | **GET** /app-store/listing/{listingId} | Get App Store Listing (Owner) +[**app_store_get_listing_install_count**](AppStoreApi.md#app_store_get_listing_install_count) | **GET** /app-store/listing/{listingId}/install-count | Get App Install Count +[**app_store_get_listings_for_integration**](AppStoreApi.md#app_store_get_listings_for_integration) | **POST** /app-store/integration/{integrationId}/listings | Get Listings for Integration +[**app_store_get_public_listing**](AppStoreApi.md#app_store_get_public_listing) | **GET** /app-store/public/listing/{listingId} | Get Public App Listing +[**app_store_install_app**](AppStoreApi.md#app_store_install_app) | **POST** /app-store/listing/{listingId}/install | Install App +[**app_store_is_app_installed**](AppStoreApi.md#app_store_is_app_installed) | **GET** /app-store/listing/{listingId}/is-installed | Check if App is Installed +[**app_store_submit_for_review**](AppStoreApi.md#app_store_submit_for_review) | **POST** /app-store/listing/{listingId}/submit-for-review | Submit Listing for Review +[**app_store_uninstall_app**](AppStoreApi.md#app_store_uninstall_app) | **POST** /app-store/listing/{listingId}/uninstall | Uninstall App +[**app_store_update_listing**](AppStoreApi.md#app_store_update_listing) | **POST** /app-store/listing/{listingId}/update | Update App Store Listing + + +# **app_store_browse_listed_apps** +> AppStoreGetListingsForIntegration200Response app_store_browse_listed_apps(app_store_browse_listed_apps_request=app_store_browse_listed_apps_request) + +Browse App Store + +Browse all publicly listed apps in the App Store + +### Example + + +```python +import openapi_client +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + app_store_browse_listed_apps_request = openapi_client.AppStoreBrowseListedAppsRequest() # AppStoreBrowseListedAppsRequest | (optional) + + try: + # Browse App Store + api_response = api_instance.app_store_browse_listed_apps(app_store_browse_listed_apps_request=app_store_browse_listed_apps_request) + print("The response of AppStoreApi->app_store_browse_listed_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_browse_listed_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **app_store_browse_listed_apps_request** | [**AppStoreBrowseListedAppsRequest**](AppStoreBrowseListedAppsRequest.md)| | [optional] + +### Return type + +[**AppStoreGetListingsForIntegration200Response**](AppStoreGetListingsForIntegration200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_count_installed_apps** +> float app_store_count_installed_apps() + +Count Installed Apps + +Count all apps you have installed + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + + try: + # Count Installed Apps + api_response = api_instance.app_store_count_installed_apps() + print("The response of AppStoreApi->app_store_count_installed_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_count_installed_apps: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**float** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_count_listings_for_integration** +> float app_store_count_listings_for_integration(integration_id) + +Count Listings for Integration + +Count App Store Listings for your Integration + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + integration_id = 'integration_id_example' # str | + + try: + # Count Listings for Integration + api_response = api_instance.app_store_count_listings_for_integration(integration_id) + print("The response of AppStoreApi->app_store_count_listings_for_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_count_listings_for_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integration_id** | **str**| | + +### Return type + +**float** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_create_listing** +> str app_store_create_listing(app_store_create_listing_request) + +Create App Store Listing + +Create a new App Store Listing for your Integration + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + app_store_create_listing_request = openapi_client.AppStoreCreateListingRequest() # AppStoreCreateListingRequest | + + try: + # Create App Store Listing + api_response = api_instance.app_store_create_listing(app_store_create_listing_request) + print("The response of AppStoreApi->app_store_create_listing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_create_listing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **app_store_create_listing_request** | [**AppStoreCreateListingRequest**](AppStoreCreateListingRequest.md)| | + +### Return type + +**str** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_delete_listing** +> bool app_store_delete_listing(listing_id) + +Delete App Store Listing + +Delete an App Store Listing + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Delete App Store Listing + api_response = api_instance.app_store_delete_listing(listing_id) + print("The response of AppStoreApi->app_store_delete_listing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_delete_listing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_get_installed_apps** +> AppStoreGetInstalledApps200Response app_store_get_installed_apps(app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request) + +Get Installed Apps + +Get all apps you have installed + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + app_store_get_listings_for_integration_request = openapi_client.AppStoreGetListingsForIntegrationRequest() # AppStoreGetListingsForIntegrationRequest | (optional) + + try: + # Get Installed Apps + api_response = api_instance.app_store_get_installed_apps(app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request) + print("The response of AppStoreApi->app_store_get_installed_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_get_installed_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **app_store_get_listings_for_integration_request** | [**AppStoreGetListingsForIntegrationRequest**](AppStoreGetListingsForIntegrationRequest.md)| | [optional] + +### Return type + +[**AppStoreGetInstalledApps200Response**](AppStoreGetInstalledApps200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_get_listing** +> AppStoreGetListing200Response app_store_get_listing(listing_id) + +Get App Store Listing (Owner) + +Get an App Store Listing by id (for integration owners) + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Get App Store Listing (Owner) + api_response = api_instance.app_store_get_listing(listing_id) + print("The response of AppStoreApi->app_store_get_listing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_get_listing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +[**AppStoreGetListing200Response**](AppStoreGetListing200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_get_listing_install_count** +> float app_store_get_listing_install_count(listing_id) + +Get App Install Count + +Get the number of users who have installed an app + +### Example + + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Get App Install Count + api_response = api_instance.app_store_get_listing_install_count(listing_id) + print("The response of AppStoreApi->app_store_get_listing_install_count:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_get_listing_install_count: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**float** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_get_listings_for_integration** +> AppStoreGetListingsForIntegration200Response app_store_get_listings_for_integration(integration_id, app_store_get_listings_for_integration_request) + +Get Listings for Integration + +Get all App Store Listings for your Integration + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + integration_id = 'integration_id_example' # str | + app_store_get_listings_for_integration_request = openapi_client.AppStoreGetListingsForIntegrationRequest() # AppStoreGetListingsForIntegrationRequest | + + try: + # Get Listings for Integration + api_response = api_instance.app_store_get_listings_for_integration(integration_id, app_store_get_listings_for_integration_request) + print("The response of AppStoreApi->app_store_get_listings_for_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_get_listings_for_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integration_id** | **str**| | + **app_store_get_listings_for_integration_request** | [**AppStoreGetListingsForIntegrationRequest**](AppStoreGetListingsForIntegrationRequest.md)| | + +### Return type + +[**AppStoreGetListingsForIntegration200Response**](AppStoreGetListingsForIntegration200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_get_public_listing** +> AppStoreGetListingsForIntegration200ResponseRecordsInner app_store_get_public_listing(listing_id) + +Get Public App Listing + +Get a publicly listed app by id + +### Example + + +```python +import openapi_client +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Get Public App Listing + api_response = api_instance.app_store_get_public_listing(listing_id) + print("The response of AppStoreApi->app_store_get_public_listing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_get_public_listing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +[**AppStoreGetListingsForIntegration200ResponseRecordsInner**](AppStoreGetListingsForIntegration200ResponseRecordsInner.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_install_app** +> bool app_store_install_app(listing_id) + +Install App + +Install an app from the App Store + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Install App + api_response = api_instance.app_store_install_app(listing_id) + print("The response of AppStoreApi->app_store_install_app:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_install_app: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_is_app_installed** +> bool app_store_is_app_installed(listing_id) + +Check if App is Installed + +Check if you have installed a specific app + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Check if App is Installed + api_response = api_instance.app_store_is_app_installed(listing_id) + print("The response of AppStoreApi->app_store_is_app_installed:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_is_app_installed: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_submit_for_review** +> bool app_store_submit_for_review(listing_id) + +Submit Listing for Review + +Submit a DRAFT listing for admin review + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Submit Listing for Review + api_response = api_instance.app_store_submit_for_review(listing_id) + print("The response of AppStoreApi->app_store_submit_for_review:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_submit_for_review: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_uninstall_app** +> bool app_store_uninstall_app(listing_id) + +Uninstall App + +Uninstall an app from your profile + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + + try: + # Uninstall App + api_response = api_instance.app_store_uninstall_app(listing_id) + print("The response of AppStoreApi->app_store_uninstall_app:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_uninstall_app: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **app_store_update_listing** +> bool app_store_update_listing(listing_id, app_store_update_listing_request) + +Update App Store Listing + +Update an App Store Listing + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.AppStoreApi(api_client) + listing_id = 'listing_id_example' # str | + app_store_update_listing_request = openapi_client.AppStoreUpdateListingRequest() # AppStoreUpdateListingRequest | + + try: + # Update App Store Listing + api_response = api_instance.app_store_update_listing(listing_id, app_store_update_listing_request) + print("The response of AppStoreApi->app_store_update_listing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppStoreApi->app_store_update_listing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listing_id** | **str**| | + **app_store_update_listing_request** | [**AppStoreUpdateListingRequest**](AppStoreUpdateListingRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreBrowseListedAppsRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreBrowseListedAppsRequest.md new file mode 100644 index 0000000000..8ce122336e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreBrowseListedAppsRequest.md @@ -0,0 +1,32 @@ +# AppStoreBrowseListedAppsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] +**cursor** | **str** | | [optional] +**category** | **str** | | [optional] +**promotion_level** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreBrowseListedAppsRequest from a JSON string +app_store_browse_listed_apps_request_instance = AppStoreBrowseListedAppsRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreBrowseListedAppsRequest.to_json()) + +# convert the object into a dict +app_store_browse_listed_apps_request_dict = app_store_browse_listed_apps_request_instance.to_dict() +# create an instance of AppStoreBrowseListedAppsRequest from a dict +app_store_browse_listed_apps_request_from_dict = AppStoreBrowseListedAppsRequest.from_dict(app_store_browse_listed_apps_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequest.md new file mode 100644 index 0000000000..afc2b6dd94 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequest.md @@ -0,0 +1,30 @@ +# AppStoreCreateListingRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integration_id** | **str** | | +**listing** | [**AppStoreCreateListingRequestListing**](AppStoreCreateListingRequestListing.md) | | + +## Example + +```python +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreCreateListingRequest from a JSON string +app_store_create_listing_request_instance = AppStoreCreateListingRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreCreateListingRequest.to_json()) + +# convert the object into a dict +app_store_create_listing_request_dict = app_store_create_listing_request_instance.to_dict() +# create an instance of AppStoreCreateListingRequest from a dict +app_store_create_listing_request_from_dict = AppStoreCreateListingRequest.from_dict(app_store_create_listing_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequestListing.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequestListing.md new file mode 100644 index 0000000000..5ff2b03a64 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreCreateListingRequestListing.md @@ -0,0 +1,43 @@ +# AppStoreCreateListingRequestListing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | | +**tagline** | **str** | | +**full_description** | **str** | | +**icon_url** | **str** | | +**launch_type** | **str** | | +**launch_config_json** | **str** | | +**category** | **str** | | [optional] +**promo_video_url** | **str** | | [optional] +**ios_app_store_id** | **str** | | [optional] +**android_app_store_id** | **str** | | [optional] +**privacy_policy_url** | **str** | | [optional] +**terms_url** | **str** | | [optional] +**highlights** | **List[str]** | | [optional] +**screenshots** | **List[str]** | | [optional] +**hero_background_color** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_create_listing_request_listing import AppStoreCreateListingRequestListing + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreCreateListingRequestListing from a JSON string +app_store_create_listing_request_listing_instance = AppStoreCreateListingRequestListing.from_json(json) +# print the JSON string representation of the object +print(AppStoreCreateListingRequestListing.to_json()) + +# convert the object into a dict +app_store_create_listing_request_listing_dict = app_store_create_listing_request_listing_instance.to_dict() +# create an instance of AppStoreCreateListingRequestListing from a dict +app_store_create_listing_request_listing_from_dict = AppStoreCreateListingRequestListing.from_dict(app_store_create_listing_request_listing_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200Response.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200Response.md new file mode 100644 index 0000000000..15e392c9b8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200Response.md @@ -0,0 +1,31 @@ +# AppStoreGetInstalledApps200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | +**cursor** | **str** | | [optional] +**records** | [**List[AppStoreGetInstalledApps200ResponseRecordsInner]**](AppStoreGetInstalledApps200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetInstalledApps200Response from a JSON string +app_store_get_installed_apps200_response_instance = AppStoreGetInstalledApps200Response.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetInstalledApps200Response.to_json()) + +# convert the object into a dict +app_store_get_installed_apps200_response_dict = app_store_get_installed_apps200_response_instance.to_dict() +# create an instance of AppStoreGetInstalledApps200Response from a dict +app_store_get_installed_apps200_response_from_dict = AppStoreGetInstalledApps200Response.from_dict(app_store_get_installed_apps200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200ResponseRecordsInner.md new file mode 100644 index 0000000000..31bbb6452d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetInstalledApps200ResponseRecordsInner.md @@ -0,0 +1,47 @@ +# AppStoreGetInstalledApps200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listing_id** | **str** | | +**display_name** | **str** | | +**tagline** | **str** | | +**full_description** | **str** | | +**icon_url** | **str** | | +**app_listing_status** | **str** | | +**launch_type** | **str** | | +**launch_config_json** | **str** | | +**category** | **str** | | [optional] +**promo_video_url** | **str** | | [optional] +**promotion_level** | **str** | | [optional] +**ios_app_store_id** | **str** | | [optional] +**android_app_store_id** | **str** | | [optional] +**privacy_policy_url** | **str** | | [optional] +**terms_url** | **str** | | [optional] +**hero_background_color** | **str** | | [optional] +**highlights** | **List[str]** | | [optional] +**screenshots** | **List[str]** | | [optional] +**installed_at** | **str** | | + +## Example + +```python +from openapi_client.models.app_store_get_installed_apps200_response_records_inner import AppStoreGetInstalledApps200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetInstalledApps200ResponseRecordsInner from a JSON string +app_store_get_installed_apps200_response_records_inner_instance = AppStoreGetInstalledApps200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetInstalledApps200ResponseRecordsInner.to_json()) + +# convert the object into a dict +app_store_get_installed_apps200_response_records_inner_dict = app_store_get_installed_apps200_response_records_inner_instance.to_dict() +# create an instance of AppStoreGetInstalledApps200ResponseRecordsInner from a dict +app_store_get_installed_apps200_response_records_inner_from_dict = AppStoreGetInstalledApps200ResponseRecordsInner.from_dict(app_store_get_installed_apps200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListing200Response.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListing200Response.md new file mode 100644 index 0000000000..898080ac75 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListing200Response.md @@ -0,0 +1,46 @@ +# AppStoreGetListing200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listing_id** | **str** | | +**display_name** | **str** | | +**tagline** | **str** | | +**full_description** | **str** | | +**icon_url** | **str** | | +**app_listing_status** | **str** | | +**launch_type** | **str** | | +**launch_config_json** | **str** | | +**category** | **str** | | [optional] +**promo_video_url** | **str** | | [optional] +**promotion_level** | **str** | | [optional] +**ios_app_store_id** | **str** | | [optional] +**android_app_store_id** | **str** | | [optional] +**privacy_policy_url** | **str** | | [optional] +**terms_url** | **str** | | [optional] +**hero_background_color** | **str** | | [optional] +**highlights** | **List[str]** | | [optional] +**screenshots** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetListing200Response from a JSON string +app_store_get_listing200_response_instance = AppStoreGetListing200Response.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetListing200Response.to_json()) + +# convert the object into a dict +app_store_get_listing200_response_dict = app_store_get_listing200_response_instance.to_dict() +# create an instance of AppStoreGetListing200Response from a dict +app_store_get_listing200_response_from_dict = AppStoreGetListing200Response.from_dict(app_store_get_listing200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200Response.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200Response.md new file mode 100644 index 0000000000..a6970d705b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200Response.md @@ -0,0 +1,31 @@ +# AppStoreGetListingsForIntegration200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | +**cursor** | **str** | | [optional] +**records** | [**List[AppStoreGetListingsForIntegration200ResponseRecordsInner]**](AppStoreGetListingsForIntegration200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetListingsForIntegration200Response from a JSON string +app_store_get_listings_for_integration200_response_instance = AppStoreGetListingsForIntegration200Response.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetListingsForIntegration200Response.to_json()) + +# convert the object into a dict +app_store_get_listings_for_integration200_response_dict = app_store_get_listings_for_integration200_response_instance.to_dict() +# create an instance of AppStoreGetListingsForIntegration200Response from a dict +app_store_get_listings_for_integration200_response_from_dict = AppStoreGetListingsForIntegration200Response.from_dict(app_store_get_listings_for_integration200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md new file mode 100644 index 0000000000..75891be7d3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegration200ResponseRecordsInner.md @@ -0,0 +1,46 @@ +# AppStoreGetListingsForIntegration200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**listing_id** | **str** | | +**display_name** | **str** | | +**tagline** | **str** | | +**full_description** | **str** | | +**icon_url** | **str** | | +**app_listing_status** | **str** | | +**launch_type** | **str** | | +**launch_config_json** | **str** | | +**category** | **str** | | [optional] +**promo_video_url** | **str** | | [optional] +**promotion_level** | **str** | | [optional] +**ios_app_store_id** | **str** | | [optional] +**android_app_store_id** | **str** | | [optional] +**privacy_policy_url** | **str** | | [optional] +**terms_url** | **str** | | [optional] +**hero_background_color** | **str** | | [optional] +**highlights** | **List[str]** | | [optional] +**screenshots** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetListingsForIntegration200ResponseRecordsInner from a JSON string +app_store_get_listings_for_integration200_response_records_inner_instance = AppStoreGetListingsForIntegration200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetListingsForIntegration200ResponseRecordsInner.to_json()) + +# convert the object into a dict +app_store_get_listings_for_integration200_response_records_inner_dict = app_store_get_listings_for_integration200_response_records_inner_instance.to_dict() +# create an instance of AppStoreGetListingsForIntegration200ResponseRecordsInner from a dict +app_store_get_listings_for_integration200_response_records_inner_from_dict = AppStoreGetListingsForIntegration200ResponseRecordsInner.from_dict(app_store_get_listings_for_integration200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegrationRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegrationRequest.md new file mode 100644 index 0000000000..268da55f85 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreGetListingsForIntegrationRequest.md @@ -0,0 +1,30 @@ +# AppStoreGetListingsForIntegrationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] +**cursor** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreGetListingsForIntegrationRequest from a JSON string +app_store_get_listings_for_integration_request_instance = AppStoreGetListingsForIntegrationRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreGetListingsForIntegrationRequest.to_json()) + +# convert the object into a dict +app_store_get_listings_for_integration_request_dict = app_store_get_listings_for_integration_request_instance.to_dict() +# create an instance of AppStoreGetListingsForIntegrationRequest from a dict +app_store_get_listings_for_integration_request_from_dict = AppStoreGetListingsForIntegrationRequest.from_dict(app_store_get_listings_for_integration_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequest.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequest.md new file mode 100644 index 0000000000..aa5f66b78e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequest.md @@ -0,0 +1,29 @@ +# AppStoreUpdateListingRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updates** | [**AppStoreUpdateListingRequestUpdates**](AppStoreUpdateListingRequestUpdates.md) | | + +## Example + +```python +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreUpdateListingRequest from a JSON string +app_store_update_listing_request_instance = AppStoreUpdateListingRequest.from_json(json) +# print the JSON string representation of the object +print(AppStoreUpdateListingRequest.to_json()) + +# convert the object into a dict +app_store_update_listing_request_dict = app_store_update_listing_request_instance.to_dict() +# create an instance of AppStoreUpdateListingRequest from a dict +app_store_update_listing_request_from_dict = AppStoreUpdateListingRequest.from_dict(app_store_update_listing_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequestUpdates.md new file mode 100644 index 0000000000..431876c7f4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/AppStoreUpdateListingRequestUpdates.md @@ -0,0 +1,43 @@ +# AppStoreUpdateListingRequestUpdates + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | | [optional] +**tagline** | **str** | | [optional] +**full_description** | **str** | | [optional] +**icon_url** | **str** | | [optional] +**launch_type** | **str** | | [optional] +**launch_config_json** | **str** | | [optional] +**category** | **str** | | [optional] +**promo_video_url** | **str** | | [optional] +**ios_app_store_id** | **str** | | [optional] +**android_app_store_id** | **str** | | [optional] +**privacy_policy_url** | **str** | | [optional] +**terms_url** | **str** | | [optional] +**highlights** | **List[str]** | | [optional] +**screenshots** | **List[str]** | | [optional] +**hero_background_color** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.app_store_update_listing_request_updates import AppStoreUpdateListingRequestUpdates + +# TODO update the JSON string below +json = "{}" +# create an instance of AppStoreUpdateListingRequestUpdates from a JSON string +app_store_update_listing_request_updates_instance = AppStoreUpdateListingRequestUpdates.from_json(json) +# print the JSON string representation of the object +print(AppStoreUpdateListingRequestUpdates.to_json()) + +# convert the object into a dict +app_store_update_listing_request_updates_dict = app_store_update_listing_request_updates_instance.to_dict() +# create an instance of AppStoreUpdateListingRequestUpdates from a dict +app_store_update_listing_request_updates_from_dict = AppStoreUpdateListingRequestUpdates.from_dict(app_store_update_listing_request_updates_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/AuthGrantsGetAuthGrantsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/AuthGrantsGetAuthGrantsRequestQuery.md index 48e4e62f44..f4c4fa317d 100644 --- a/packages/open-api-lcn-clients/python-client/docs/AuthGrantsGetAuthGrantsRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/AuthGrantsGetAuthGrantsRequestQuery.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**name** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**description** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] **status** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequest.md new file mode 100644 index 0000000000..839212cad5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequest.md @@ -0,0 +1,30 @@ +# BoostAlignBoostSkillsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boost_uri** | **str** | | +**skills** | [**List[BoostAlignBoostSkillsRequestSkillsInner]**](BoostAlignBoostSkillsRequestSkillsInner.md) | | + +## Example + +```python +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostAlignBoostSkillsRequest from a JSON string +boost_align_boost_skills_request_instance = BoostAlignBoostSkillsRequest.from_json(json) +# print the JSON string representation of the object +print(BoostAlignBoostSkillsRequest.to_json()) + +# convert the object into a dict +boost_align_boost_skills_request_dict = boost_align_boost_skills_request_instance.to_dict() +# create an instance of BoostAlignBoostSkillsRequest from a dict +boost_align_boost_skills_request_from_dict = BoostAlignBoostSkillsRequest.from_dict(boost_align_boost_skills_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequestSkillsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequestSkillsInner.md new file mode 100644 index 0000000000..04ef00841c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostAlignBoostSkillsRequestSkillsInner.md @@ -0,0 +1,30 @@ +# BoostAlignBoostSkillsRequestSkillsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**id** | **str** | | + +## Example + +```python +from openapi_client.models.boost_align_boost_skills_request_skills_inner import BoostAlignBoostSkillsRequestSkillsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostAlignBoostSkillsRequestSkillsInner from a JSON string +boost_align_boost_skills_request_skills_inner_instance = BoostAlignBoostSkillsRequestSkillsInner.from_json(json) +# print the JSON string representation of the object +print(BoostAlignBoostSkillsRequestSkillsInner.to_json()) + +# convert the object into a dict +boost_align_boost_skills_request_skills_inner_dict = boost_align_boost_skills_request_skills_inner_instance.to_dict() +# create an instance of BoostAlignBoostSkillsRequestSkillsInner from a dict +boost_align_boost_skills_request_skills_inner_from_dict = BoostAlignBoostSkillsRequestSkillsInner.from_dict(boost_align_boost_skills_request_skills_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostAttachFrameworkToBoostRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostAttachFrameworkToBoostRequest.md new file mode 100644 index 0000000000..bc88341456 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostAttachFrameworkToBoostRequest.md @@ -0,0 +1,30 @@ +# BoostAttachFrameworkToBoostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boost_uri** | **str** | | +**framework_id** | **str** | | + +## Example + +```python +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostAttachFrameworkToBoostRequest from a JSON string +boost_attach_framework_to_boost_request_instance = BoostAttachFrameworkToBoostRequest.from_json(json) +# print the JSON string representation of the object +print(BoostAttachFrameworkToBoostRequest.to_json()) + +# convert the object into a dict +boost_attach_framework_to_boost_request_dict = boost_attach_framework_to_boost_request_instance.to_dict() +# create an instance of BoostAttachFrameworkToBoostRequest from a dict +boost_attach_framework_to_boost_request_from_dict = BoostAttachFrameworkToBoostRequest.from_dict(boost_attach_framework_to_boost_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostClaimBoostWithLinkRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostClaimBoostWithLinkRequest.md new file mode 100644 index 0000000000..cbf184d990 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostClaimBoostWithLinkRequest.md @@ -0,0 +1,30 @@ +# BoostClaimBoostWithLinkRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boost_uri** | **str** | | +**challenge** | **str** | | + +## Example + +```python +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostClaimBoostWithLinkRequest from a JSON string +boost_claim_boost_with_link_request_instance = BoostClaimBoostWithLinkRequest.from_json(json) +# print the JSON string representation of the object +print(BoostClaimBoostWithLinkRequest.to_json()) + +# convert the object into a dict +boost_claim_boost_with_link_request_dict = boost_claim_boost_with_link_request_instance.to_dict() +# create an instance of BoostClaimBoostWithLinkRequest from a dict +boost_claim_boost_with_link_request_from_dict = BoostClaimBoostWithLinkRequest.from_dict(boost_claim_boost_with_link_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostChildrenRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostChildrenRequest.md index 15f7bb1ae1..74a60fcd93 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostChildrenRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostChildrenRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uri** | **str** | | **query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] -**number_of_generations** | **float** | | [optional] [default to 1] +**number_of_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostParentsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostParentsRequest.md new file mode 100644 index 0000000000..4e45d2ddf5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCountBoostParentsRequest.md @@ -0,0 +1,31 @@ +# BoostCountBoostParentsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] +**number_of_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostCountBoostParentsRequest from a JSON string +boost_count_boost_parents_request_instance = BoostCountBoostParentsRequest.from_json(json) +# print the JSON string representation of the object +print(BoostCountBoostParentsRequest.to_json()) + +# convert the object into a dict +boost_count_boost_parents_request_dict = boost_count_boost_parents_request_instance.to_dict() +# create an instance of BoostCountBoostParentsRequest from a dict +boost_count_boost_parents_request_from_dict = BoostCountBoostParentsRequest.from_dict(boost_count_boost_parents_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostCountFamilialBoostsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostCountFamilialBoostsRequest.md index 1c3f213f4f..8bc1a31e02 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCountFamilialBoostsRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCountFamilialBoostsRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uri** | **str** | | **query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] -**parent_generations** | **float** | | [optional] [default to 1] -**child_generations** | **float** | | [optional] [default to 1] +**parent_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] +**child_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] **include_extended_family** | **bool** | | [optional] [default to False] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequest.md index 9c9ae1b242..81b1982117 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequest.md @@ -14,6 +14,8 @@ Name | Type | Description | Notes **allow_anyone_to_create_children** | **bool** | | [optional] **credential** | [**BoostCreateBoostRequestCredential**](BoostCreateBoostRequestCredential.md) | | **claim_permissions** | [**BoostCreateBoostRequestClaimPermissions**](BoostCreateBoostRequestClaimPermissions.md) | | [optional] +**default_permissions** | [**BoostCreateBoostRequestClaimPermissions**](BoostCreateBoostRequestClaimPermissions.md) | | [optional] +**skills** | [**List[BoostSendRequestTemplateSkillsInner]**](BoostSendRequestTemplateSkillsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestClaimPermissions.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestClaimPermissions.md index 6835596ac2..cdd11ab687 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestClaimPermissions.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestClaimPermissions.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **can_edit_children** | **str** | | [optional] **can_revoke_children** | **str** | | [optional] **can_manage_children_permissions** | **str** | | [optional] -**can_manage_children_profiles** | **bool** | | [optional] [default to False] +**can_manage_children_profiles** | **bool** | | [optional] **can_view_analytics** | **bool** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredential.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredential.md index 5a0702a3be..efbff12280 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredential.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredential.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredentialAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredentialAnyOf.md index 726589c737..48a4fadb90 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredentialAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateBoostRequestCredentialAnyOf.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequest.md index c34fb900c6..9e71fc4873 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequest.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **parent_uri** | **str** | | -**boost** | [**BoostCreateBoostRequest**](BoostCreateBoostRequest.md) | | +**boost** | [**BoostCreateChildBoostRequestBoost**](BoostCreateChildBoostRequestBoost.md) | | +**skills** | [**List[BoostSendRequestTemplateSkillsInner]**](BoostSendRequestTemplateSkillsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequestBoost.md b/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequestBoost.md new file mode 100644 index 0000000000..159260c5e5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostCreateChildBoostRequestBoost.md @@ -0,0 +1,38 @@ +# BoostCreateChildBoostRequestBoost + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**type** | **str** | | [optional] +**category** | **str** | | [optional] +**status** | **str** | | [optional] +**auto_connect_recipients** | **bool** | | [optional] +**meta** | **Dict[str, object]** | | [optional] +**allow_anyone_to_create_children** | **bool** | | [optional] +**credential** | [**BoostCreateBoostRequestCredential**](BoostCreateBoostRequestCredential.md) | | +**claim_permissions** | [**BoostCreateBoostRequestClaimPermissions**](BoostCreateBoostRequestClaimPermissions.md) | | [optional] +**default_permissions** | [**BoostCreateBoostRequestClaimPermissions**](BoostCreateBoostRequestClaimPermissions.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_create_child_boost_request_boost import BoostCreateChildBoostRequestBoost + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostCreateChildBoostRequestBoost from a JSON string +boost_create_child_boost_request_boost_instance = BoostCreateChildBoostRequestBoost.from_json(json) +# print the JSON string representation of the object +print(BoostCreateChildBoostRequestBoost.to_json()) + +# convert the object into a dict +boost_create_child_boost_request_boost_dict = boost_create_child_boost_request_boost_instance.to_dict() +# create an instance of BoostCreateChildBoostRequestBoost from a dict +boost_create_child_boost_request_boost_from_dict = BoostCreateChildBoostRequestBoost.from_dict(boost_create_child_boost_request_boost_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostDetachFrameworkFromBoostRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostDetachFrameworkFromBoostRequest.md new file mode 100644 index 0000000000..eb65824eed --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostDetachFrameworkFromBoostRequest.md @@ -0,0 +1,30 @@ +# BoostDetachFrameworkFromBoostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boost_uri** | **str** | | +**framework_id** | **str** | | + +## Example + +```python +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostDetachFrameworkFromBoostRequest from a JSON string +boost_detach_framework_from_boost_request_instance = BoostDetachFrameworkFromBoostRequest.from_json(json) +# print the JSON string representation of the object +print(BoostDetachFrameworkFromBoostRequest.to_json()) + +# convert the object into a dict +boost_detach_framework_from_boost_request_dict = boost_detach_framework_from_boost_request_instance.to_dict() +# create an instance of BoostDetachFrameworkFromBoostRequest from a dict +boost_detach_framework_from_boost_request_from_dict = BoostDetachFrameworkFromBoostRequest.from_dict(boost_detach_framework_from_boost_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200Response.md index 5327b2c28f..cf24a91a23 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200Response.md @@ -11,10 +11,11 @@ Name | Type | Description | Notes **status** | **str** | | [optional] **auto_connect_recipients** | **bool** | | [optional] **meta** | **Dict[str, object]** | | [optional] +**default_permissions** | [**BoostGetBoost200ResponseDefaultPermissions**](BoostGetBoost200ResponseDefaultPermissions.md) | | [optional] **allow_anyone_to_create_children** | **bool** | | [optional] **claim_permissions** | [**BoostGetBoost200ResponseClaimPermissions**](BoostGetBoost200ResponseClaimPermissions.md) | | [optional] **uri** | **str** | | -**boost** | [**BoostCreateBoostRequestCredentialAnyOf**](BoostCreateBoostRequestCredentialAnyOf.md) | | +**boost** | [**BoostGetBoost200ResponseBoost**](BoostGetBoost200ResponseBoost.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoost.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoost.md new file mode 100644 index 0000000000..aaf480b9a8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoost.md @@ -0,0 +1,45 @@ +# BoostGetBoost200ResponseBoost + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostGetBoost200ResponseBoostIssuer**](BoostGetBoost200ResponseBoostIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost import BoostGetBoost200ResponseBoost + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoost from a JSON string +boost_get_boost200_response_boost_instance = BoostGetBoost200ResponseBoost.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoost.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_dict = boost_get_boost200_response_boost_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoost from a dict +boost_get_boost200_response_boost_from_dict = BoostGetBoost200ResponseBoost.from_dict(boost_get_boost200_response_boost_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuer.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuer.md new file mode 100644 index 0000000000..11fda2dbfa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuer.md @@ -0,0 +1,49 @@ +# BoostGetBoost200ResponseBoostIssuer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**BoostGetBoost200ResponseBoostIssuerAnyOfImage**](BoostGetBoost200ResponseBoostIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**BoostGetBoost200ResponseBoostIssuerAnyOfAddress**](BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner]**](BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer import BoostGetBoost200ResponseBoostIssuer + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuer from a JSON string +boost_get_boost200_response_boost_issuer_instance = BoostGetBoost200ResponseBoostIssuer.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuer.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_dict = boost_get_boost200_response_boost_issuer_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuer from a dict +boost_get_boost200_response_boost_issuer_from_dict = BoostGetBoost200ResponseBoostIssuer.from_dict(boost_get_boost200_response_boost_issuer_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md new file mode 100644 index 0000000000..8735a7da61 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOf.md @@ -0,0 +1,49 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**BoostGetBoost200ResponseBoostIssuerAnyOfImage**](BoostGetBoost200ResponseBoostIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**BoostGetBoost200ResponseBoostIssuerAnyOfAddress**](BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner]**](BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of import BoostGetBoost200ResponseBoostIssuerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOf from a JSON string +boost_get_boost200_response_boost_issuer_any_of_instance = BoostGetBoost200ResponseBoostIssuerAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOf.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_dict = boost_get_boost200_response_boost_issuer_any_of_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOf from a dict +boost_get_boost200_response_boost_issuer_any_of_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOf.from_dict(boost_get_boost200_response_boost_issuer_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md new file mode 100644 index 0000000000..dca8ad56eb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddress.md @@ -0,0 +1,37 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOfAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**address_country** | **str** | | [optional] +**address_country_code** | **str** | | [optional] +**address_region** | **str** | | [optional] +**address_locality** | **str** | | [optional] +**street_address** | **str** | | [optional] +**post_office_box_number** | **str** | | [optional] +**postal_code** | **str** | | [optional] +**geo** | [**BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo**](BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address import BoostGetBoost200ResponseBoostIssuerAnyOfAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddress from a JSON string +boost_get_boost200_response_boost_issuer_any_of_address_instance = BoostGetBoost200ResponseBoostIssuerAnyOfAddress.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOfAddress.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_address_dict = boost_get_boost200_response_boost_issuer_any_of_address_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddress from a dict +boost_get_boost200_response_boost_issuer_any_of_address_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOfAddress.from_dict(boost_get_boost200_response_boost_issuer_any_of_address_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md new file mode 100644 index 0000000000..bd963846a2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.md @@ -0,0 +1,31 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**latitude** | **float** | | +**longitude** | **float** | | + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address_geo import BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo from a JSON string +boost_get_boost200_response_boost_issuer_any_of_address_geo_instance = BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_address_geo_dict = boost_get_boost200_response_boost_issuer_any_of_address_geo_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo from a dict +boost_get_boost200_response_boost_issuer_any_of_address_geo_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.from_dict(boost_get_boost200_response_boost_issuer_any_of_address_geo_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md new file mode 100644 index 0000000000..0ce4894124 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImage.md @@ -0,0 +1,31 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOfImage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image import BoostGetBoost200ResponseBoostIssuerAnyOfImage + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImage from a JSON string +boost_get_boost200_response_boost_issuer_any_of_image_instance = BoostGetBoost200ResponseBoostIssuerAnyOfImage.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOfImage.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_image_dict = boost_get_boost200_response_boost_issuer_any_of_image_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImage from a dict +boost_get_boost200_response_boost_issuer_any_of_image_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOfImage.from_dict(boost_get_boost200_response_boost_issuer_any_of_image_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md new file mode 100644 index 0000000000..3ca9010e4d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.md @@ -0,0 +1,31 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image_any_of import BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf from a JSON string +boost_get_boost200_response_boost_issuer_any_of_image_any_of_instance = BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_image_any_of_dict = boost_get_boost200_response_boost_issuer_any_of_image_any_of_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf from a dict +boost_get_boost200_response_boost_issuer_any_of_image_any_of_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.from_dict(boost_get_boost200_response_boost_issuer_any_of_image_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md new file mode 100644 index 0000000000..9386fb1415 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.md @@ -0,0 +1,31 @@ +# BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**identifier** | **str** | | +**identifier_type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md) | | + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner import BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from a JSON string +boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner_instance = BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.to_json()) + +# convert the object into a dict +boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner_dict = boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner_instance.to_dict() +# create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from a dict +boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner_from_dict = BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.from_dict(boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseClaimPermissions.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseClaimPermissions.md index 331e99a85d..b03a0581b0 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseClaimPermissions.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseClaimPermissions.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **can_edit_children** | **str** | | **can_revoke_children** | **str** | | **can_manage_children_permissions** | **str** | | -**can_manage_children_profiles** | **bool** | | [optional] [default to False] +**can_manage_children_profiles** | **bool** | | [optional] **can_view_analytics** | **bool** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseDefaultPermissions.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseDefaultPermissions.md new file mode 100644 index 0000000000..29b7634210 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoost200ResponseDefaultPermissions.md @@ -0,0 +1,40 @@ +# BoostGetBoost200ResponseDefaultPermissions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | +**can_edit** | **bool** | | +**can_issue** | **bool** | | +**can_revoke** | **bool** | | +**can_manage_permissions** | **bool** | | +**can_issue_children** | **str** | | +**can_create_children** | **str** | | +**can_edit_children** | **str** | | +**can_revoke_children** | **str** | | +**can_manage_children_permissions** | **str** | | +**can_manage_children_profiles** | **bool** | | [optional] +**can_view_analytics** | **bool** | | + +## Example + +```python +from openapi_client.models.boost_get_boost200_response_default_permissions import BoostGetBoost200ResponseDefaultPermissions + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoost200ResponseDefaultPermissions from a JSON string +boost_get_boost200_response_default_permissions_instance = BoostGetBoost200ResponseDefaultPermissions.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoost200ResponseDefaultPermissions.to_json()) + +# convert the object into a dict +boost_get_boost200_response_default_permissions_dict = boost_get_boost200_response_default_permissions_instance.to_dict() +# create an instance of BoostGetBoost200ResponseDefaultPermissions from a dict +boost_get_boost200_response_default_permissions_from_dict = BoostGetBoost200ResponseDefaultPermissions.from_dict(boost_get_boost200_response_default_permissions_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAdmins200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAdmins200Response.md index 944784f606..1370048ac4 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAdmins200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAdmins200Response.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cursor** | **str** | | [optional] **has_more** | **bool** | | -**records** | [**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) | | +**records** | [**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAlignments200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAlignments200ResponseInner.md new file mode 100644 index 0000000000..e9713fc95d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostAlignments200ResponseInner.md @@ -0,0 +1,33 @@ +# BoostGetBoostAlignments200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_code** | **str** | | [optional] +**target_name** | **str** | | [optional] +**target_description** | **str** | | [optional] +**target_url** | **str** | | [optional] +**target_framework** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostAlignments200ResponseInner from a JSON string +boost_get_boost_alignments200_response_inner_instance = BoostGetBoostAlignments200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostAlignments200ResponseInner.to_json()) + +# convert the object into a dict +boost_get_boost_alignments200_response_inner_dict = boost_get_boost_alignments200_response_inner_instance.to_dict() +# create an instance of BoostGetBoostAlignments200ResponseInner from a dict +boost_get_boost_alignments200_response_inner_from_dict = BoostGetBoostAlignments200ResponseInner.from_dict(boost_get_boost_alignments200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostChildrenRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostChildrenRequest.md index c1e92581f4..95d44816c2 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostChildrenRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostChildrenRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **sort** | **str** | | [optional] **uri** | **str** | | **query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] -**number_of_generations** | **float** | | [optional] [default to 1] +**number_of_generations** | **float** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200Response.md new file mode 100644 index 0000000000..b2da8619d2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200Response.md @@ -0,0 +1,31 @@ +# BoostGetBoostFrameworks200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **str** | | [optional] +**has_more** | **bool** | | +**records** | [**List[BoostGetBoostFrameworks200ResponseRecordsInner]**](BoostGetBoostFrameworks200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworks200Response from a JSON string +boost_get_boost_frameworks200_response_instance = BoostGetBoostFrameworks200Response.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworks200Response.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks200_response_dict = boost_get_boost_frameworks200_response_instance.to_dict() +# create an instance of BoostGetBoostFrameworks200Response from a dict +boost_get_boost_frameworks200_response_from_dict = BoostGetBoostFrameworks200Response.from_dict(boost_get_boost_frameworks200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200ResponseRecordsInner.md new file mode 100644 index 0000000000..986a175a87 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworks200ResponseRecordsInner.md @@ -0,0 +1,36 @@ +# BoostGetBoostFrameworks200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**description** | **str** | | [optional] +**image** | **str** | | [optional] +**source_uri** | **str** | | [optional] +**status** | **str** | | [default to 'active'] +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworks200ResponseRecordsInner from a JSON string +boost_get_boost_frameworks200_response_records_inner_instance = BoostGetBoostFrameworks200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworks200ResponseRecordsInner.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks200_response_records_inner_dict = boost_get_boost_frameworks200_response_records_inner_instance.to_dict() +# create an instance of BoostGetBoostFrameworks200ResponseRecordsInner from a dict +boost_get_boost_frameworks200_response_records_inner_from_dict = BoostGetBoostFrameworks200ResponseRecordsInner.from_dict(boost_get_boost_frameworks200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequest.md new file mode 100644 index 0000000000..93d9d5d27d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequest.md @@ -0,0 +1,32 @@ +# BoostGetBoostFrameworksRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**limit** | **int** | | [optional] [default to 50] +**cursor** | **str** | | [optional] +**query** | [**BoostGetBoostFrameworksRequestQuery**](BoostGetBoostFrameworksRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworksRequest from a JSON string +boost_get_boost_frameworks_request_instance = BoostGetBoostFrameworksRequest.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworksRequest.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks_request_dict = boost_get_boost_frameworks_request_instance.to_dict() +# create an instance of BoostGetBoostFrameworksRequest from a dict +boost_get_boost_frameworks_request_from_dict = BoostGetBoostFrameworksRequest.from_dict(boost_get_boost_frameworks_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQuery.md new file mode 100644 index 0000000000..55d218ba84 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQuery.md @@ -0,0 +1,34 @@ +# BoostGetBoostFrameworksRequestQuery + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostGetBoostFrameworksRequestQueryAnyOfOrInner]**](BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md) | | +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**source_uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks_request_query import BoostGetBoostFrameworksRequestQuery + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworksRequestQuery from a JSON string +boost_get_boost_frameworks_request_query_instance = BoostGetBoostFrameworksRequestQuery.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworksRequestQuery.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks_request_query_dict = boost_get_boost_frameworks_request_query_instance.to_dict() +# create an instance of BoostGetBoostFrameworksRequestQuery from a dict +boost_get_boost_frameworks_request_query_from_dict = BoostGetBoostFrameworksRequestQuery.from_dict(boost_get_boost_frameworks_request_query_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOf.md new file mode 100644 index 0000000000..27d6c34538 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOf.md @@ -0,0 +1,29 @@ +# BoostGetBoostFrameworksRequestQueryAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostGetBoostFrameworksRequestQueryAnyOfOrInner]**](BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of import BoostGetBoostFrameworksRequestQueryAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworksRequestQueryAnyOf from a JSON string +boost_get_boost_frameworks_request_query_any_of_instance = BoostGetBoostFrameworksRequestQueryAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworksRequestQueryAnyOf.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks_request_query_any_of_dict = boost_get_boost_frameworks_request_query_any_of_instance.to_dict() +# create an instance of BoostGetBoostFrameworksRequestQueryAnyOf from a dict +boost_get_boost_frameworks_request_query_any_of_from_dict = BoostGetBoostFrameworksRequestQueryAnyOf.from_dict(boost_get_boost_frameworks_request_query_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md new file mode 100644 index 0000000000..a1f8fd1d48 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostFrameworksRequestQueryAnyOfOrInner.md @@ -0,0 +1,33 @@ +# BoostGetBoostFrameworksRequestQueryAnyOfOrInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**source_uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostFrameworksRequestQueryAnyOfOrInner from a JSON string +boost_get_boost_frameworks_request_query_any_of_or_inner_instance = BoostGetBoostFrameworksRequestQueryAnyOfOrInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostFrameworksRequestQueryAnyOfOrInner.to_json()) + +# convert the object into a dict +boost_get_boost_frameworks_request_query_any_of_or_inner_dict = boost_get_boost_frameworks_request_query_any_of_or_inner_instance.to_dict() +# create an instance of BoostGetBoostFrameworksRequestQueryAnyOfOrInner from a dict +boost_get_boost_frameworks_request_query_any_of_or_inner_from_dict = BoostGetBoostFrameworksRequestQueryAnyOfOrInner.from_dict(boost_get_boost_frameworks_request_query_any_of_or_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostParentsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostParentsRequest.md new file mode 100644 index 0000000000..4c59be51ee --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostParentsRequest.md @@ -0,0 +1,34 @@ +# BoostGetBoostParentsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] [default to 25] +**cursor** | **str** | | [optional] +**sort** | **str** | | [optional] +**uri** | **str** | | +**query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] +**number_of_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostParentsRequest from a JSON string +boost_get_boost_parents_request_instance = BoostGetBoostParentsRequest.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostParentsRequest.to_json()) + +# convert the object into a dict +boost_get_boost_parents_request_dict = boost_get_boost_parents_request_instance.to_dict() +# create an instance of BoostGetBoostParentsRequest from a dict +boost_get_boost_parents_request_from_dict = BoostGetBoostParentsRequest.from_dict(boost_get_boost_parents_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipients200ResponseInnerTo.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipients200ResponseInnerTo.md index b603968536..11c6aa4def 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipients200ResponseInnerTo.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipients200ResponseInnerTo.md @@ -19,8 +19,11 @@ Name | Type | Description | Notes **type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] **notifications_webhook** | **str** | URL to send notifications to. | [optional] **display** | [**BoostGetBoostRecipients200ResponseInnerToDisplay**](BoostGetBoostRecipients200ResponseInnerToDisplay.md) | | [optional] +**highlighted_credentials** | **List[Optional[str]]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] **role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] **dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequest.md new file mode 100644 index 0000000000..5a4763e9eb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequest.md @@ -0,0 +1,33 @@ +# BoostGetBoostRecipientsWithChildrenCountRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**include_unaccepted_boosts** | **bool** | | [optional] [default to True] +**number_of_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] +**boost_query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] +**profile_query** | [**BoostGetPaginatedBoostRecipientsRequestQuery**](BoostGetPaginatedBoostRecipientsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostRecipientsWithChildrenCountRequest from a JSON string +boost_get_boost_recipients_with_children_count_request_instance = BoostGetBoostRecipientsWithChildrenCountRequest.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostRecipientsWithChildrenCountRequest.to_json()) + +# convert the object into a dict +boost_get_boost_recipients_with_children_count_request_dict = boost_get_boost_recipients_with_children_count_request_instance.to_dict() +# create an instance of BoostGetBoostRecipientsWithChildrenCountRequest from a dict +boost_get_boost_recipients_with_children_count_request_from_dict = BoostGetBoostRecipientsWithChildrenCountRequest.from_dict(boost_get_boost_recipients_with_children_count_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md new file mode 100644 index 0000000000..9cc982adfb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md @@ -0,0 +1,28 @@ +# BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from a JSON string +boost_get_boost_recipients_with_children_count_request_number_of_generations_instance = BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.to_json()) + +# convert the object into a dict +boost_get_boost_recipients_with_children_count_request_number_of_generations_dict = boost_get_boost_recipients_with_children_count_request_number_of_generations_instance.to_dict() +# create an instance of BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from a dict +boost_get_boost_recipients_with_children_count_request_number_of_generations_from_dict = BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(boost_get_boost_recipients_with_children_count_request_number_of_generations_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoosts200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoosts200ResponseInner.md index 96de38a743..99ef68a658 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoosts200ResponseInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoosts200ResponseInner.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **status** | **str** | | [optional] **auto_connect_recipients** | **bool** | | [optional] **meta** | **Dict[str, object]** | | [optional] +**default_permissions** | [**BoostGetBoost200ResponseClaimPermissions**](BoostGetBoost200ResponseClaimPermissions.md) | | [optional] **allow_anyone_to_create_children** | **bool** | | [optional] **uri** | **str** | | diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQuery.md index 679788ca64..aca5796723 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQuery.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uri** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**name** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**type** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**category** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**meta** | [**Dict[str, BoostGetBoostsRequestQueryUri]**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**status** | [**BoostGetBoostsRequestQueryStatus**](BoostGetBoostsRequestQueryStatus.md) | | [optional] +**var_or** | [**List[BoostGetBoostsRequestQueryAnyOfOrInner]**](BoostGetBoostsRequestQueryAnyOfOrInner.md) | | +**uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**category** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**meta** | [**Dict[str, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostGetBoostsRequestQueryAnyOfOrInnerStatus**](BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md) | | [optional] **auto_connect_recipients** | **bool** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOf.md new file mode 100644 index 0000000000..eac5f9e82d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOf.md @@ -0,0 +1,29 @@ +# BoostGetBoostsRequestQueryAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostGetBoostsRequestQueryAnyOfOrInner]**](BoostGetBoostsRequestQueryAnyOfOrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_get_boosts_request_query_any_of import BoostGetBoostsRequestQueryAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostsRequestQueryAnyOf from a JSON string +boost_get_boosts_request_query_any_of_instance = BoostGetBoostsRequestQueryAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostsRequestQueryAnyOf.to_json()) + +# convert the object into a dict +boost_get_boosts_request_query_any_of_dict = boost_get_boosts_request_query_any_of_instance.to_dict() +# create an instance of BoostGetBoostsRequestQueryAnyOf from a dict +boost_get_boosts_request_query_any_of_from_dict = BoostGetBoostsRequestQueryAnyOf.from_dict(boost_get_boosts_request_query_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInner.md new file mode 100644 index 0000000000..c980c26473 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInner.md @@ -0,0 +1,35 @@ +# BoostGetBoostsRequestQueryAnyOfOrInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**category** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**meta** | [**Dict[str, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostGetBoostsRequestQueryAnyOfOrInnerStatus**](BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md) | | [optional] +**auto_connect_recipients** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInner from a JSON string +boost_get_boosts_request_query_any_of_or_inner_instance = BoostGetBoostsRequestQueryAnyOfOrInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostsRequestQueryAnyOfOrInner.to_json()) + +# convert the object into a dict +boost_get_boosts_request_query_any_of_or_inner_dict = boost_get_boosts_request_query_any_of_or_inner_instance.to_dict() +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInner from a dict +boost_get_boosts_request_query_any_of_or_inner_from_dict = BoostGetBoostsRequestQueryAnyOfOrInner.from_dict(boost_get_boosts_request_query_any_of_or_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md new file mode 100644 index 0000000000..9023beea40 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatus.md @@ -0,0 +1,29 @@ +# BoostGetBoostsRequestQueryAnyOfOrInnerStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status import BoostGetBoostsRequestQueryAnyOfOrInnerStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatus from a JSON string +boost_get_boosts_request_query_any_of_or_inner_status_instance = BoostGetBoostsRequestQueryAnyOfOrInnerStatus.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostsRequestQueryAnyOfOrInnerStatus.to_json()) + +# convert the object into a dict +boost_get_boosts_request_query_any_of_or_inner_status_dict = boost_get_boosts_request_query_any_of_or_inner_status_instance.to_dict() +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatus from a dict +boost_get_boosts_request_query_any_of_or_inner_status_from_dict = BoostGetBoostsRequestQueryAnyOfOrInnerStatus.from_dict(boost_get_boosts_request_query_any_of_or_inner_status_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md new file mode 100644 index 0000000000..aee41ec526 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.md @@ -0,0 +1,29 @@ +# BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status_any_of import BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from a JSON string +boost_get_boosts_request_query_any_of_or_inner_status_any_of_instance = BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.to_json()) + +# convert the object into a dict +boost_get_boosts_request_query_any_of_or_inner_status_any_of_dict = boost_get_boosts_request_query_any_of_or_inner_status_any_of_instance.to_dict() +# create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from a dict +boost_get_boosts_request_query_any_of_or_inner_status_any_of_from_dict = BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.from_dict(boost_get_boosts_request_query_any_of_or_inner_status_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatus.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatus.md deleted file mode 100644 index 9bfd93a3ab..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# BoostGetBoostsRequestQueryStatus - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_in** | **List[str]** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_status import BoostGetBoostsRequestQueryStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryStatus from a JSON string -boost_get_boosts_request_query_status_instance = BoostGetBoostsRequestQueryStatus.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryStatus.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_status_dict = boost_get_boosts_request_query_status_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryStatus from a dict -boost_get_boosts_request_query_status_from_dict = BoostGetBoostsRequestQueryStatus.from_dict(boost_get_boosts_request_query_status_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatusAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatusAnyOf.md deleted file mode 100644 index a29c2d5e6f..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryStatusAnyOf.md +++ /dev/null @@ -1,29 +0,0 @@ -# BoostGetBoostsRequestQueryStatusAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_in** | **List[str]** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_status_any_of import BoostGetBoostsRequestQueryStatusAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryStatusAnyOf from a JSON string -boost_get_boosts_request_query_status_any_of_instance = BoostGetBoostsRequestQueryStatusAnyOf.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryStatusAnyOf.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_status_any_of_dict = boost_get_boosts_request_query_status_any_of_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryStatusAnyOf from a dict -boost_get_boosts_request_query_status_any_of_from_dict = BoostGetBoostsRequestQueryStatusAnyOf.from_dict(boost_get_boosts_request_query_status_any_of_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUri.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUri.md deleted file mode 100644 index 25828d60cc..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUri.md +++ /dev/null @@ -1,30 +0,0 @@ -# BoostGetBoostsRequestQueryUri - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_in** | **List[str]** | | -**regex** | **str** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryUri from a JSON string -boost_get_boosts_request_query_uri_instance = BoostGetBoostsRequestQueryUri.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryUri.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_uri_dict = boost_get_boosts_request_query_uri_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryUri from a dict -boost_get_boosts_request_query_uri_from_dict = BoostGetBoostsRequestQueryUri.from_dict(boost_get_boosts_request_query_uri_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf.md deleted file mode 100644 index 14113bc85e..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf.md +++ /dev/null @@ -1,29 +0,0 @@ -# BoostGetBoostsRequestQueryUriAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_in** | **List[str]** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_uri_any_of import BoostGetBoostsRequestQueryUriAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryUriAnyOf from a JSON string -boost_get_boosts_request_query_uri_any_of_instance = BoostGetBoostsRequestQueryUriAnyOf.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryUriAnyOf.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_uri_any_of_dict = boost_get_boosts_request_query_uri_any_of_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryUriAnyOf from a dict -boost_get_boosts_request_query_uri_any_of_from_dict = BoostGetBoostsRequestQueryUriAnyOf.from_dict(boost_get_boosts_request_query_uri_any_of_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf1.md deleted file mode 100644 index 3f691a6542..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOf1.md +++ /dev/null @@ -1,29 +0,0 @@ -# BoostGetBoostsRequestQueryUriAnyOf1 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regex** | **str** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_uri_any_of1 import BoostGetBoostsRequestQueryUriAnyOf1 - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryUriAnyOf1 from a JSON string -boost_get_boosts_request_query_uri_any_of1_instance = BoostGetBoostsRequestQueryUriAnyOf1.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryUriAnyOf1.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_uri_any_of1_dict = boost_get_boosts_request_query_uri_any_of1_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryUriAnyOf1 from a dict -boost_get_boosts_request_query_uri_any_of1_from_dict = BoostGetBoostsRequestQueryUriAnyOf1.from_dict(boost_get_boosts_request_query_uri_any_of1_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md deleted file mode 100644 index a8c3e7daa6..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetBoostsRequestQueryUriAnyOfAnyOf.md +++ /dev/null @@ -1,29 +0,0 @@ -# BoostGetBoostsRequestQueryUriAnyOfAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_in** | **List[str]** | | - -## Example - -```python -from openapi_client.models.boost_get_boosts_request_query_uri_any_of_any_of import BoostGetBoostsRequestQueryUriAnyOfAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostGetBoostsRequestQueryUriAnyOfAnyOf from a JSON string -boost_get_boosts_request_query_uri_any_of_any_of_instance = BoostGetBoostsRequestQueryUriAnyOfAnyOf.from_json(json) -# print the JSON string representation of the object -print(BoostGetBoostsRequestQueryUriAnyOfAnyOf.to_json()) - -# convert the object into a dict -boost_get_boosts_request_query_uri_any_of_any_of_dict = boost_get_boosts_request_query_uri_any_of_any_of_instance.to_dict() -# create an instance of BoostGetBoostsRequestQueryUriAnyOfAnyOf from a dict -boost_get_boosts_request_query_uri_any_of_any_of_from_dict = BoostGetBoostsRequestQueryUriAnyOfAnyOf.from_dict(boost_get_boosts_request_query_uri_any_of_any_of_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetChildrenProfileManagersRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetChildrenProfileManagersRequestQuery.md index 8d34cd7678..4f859afd2d 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetChildrenProfileManagersRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetChildrenProfileManagersRequestQuery.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**display_name** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**short_bio** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**bio** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**email** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**display_name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**short_bio** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**bio** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**email** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetFamilialBoostsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetFamilialBoostsRequest.md index 2b8a384c5f..1a1d8605c2 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetFamilialBoostsRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetFamilialBoostsRequest.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **sort** | **str** | | [optional] **uri** | **str** | | **query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] -**parent_generations** | **float** | | [optional] [default to 1] -**child_generations** | **float** | | [optional] [default to 1] +**parent_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] +**child_generations** | [**BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations**](BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.md) | | [optional] **include_extended_family** | **bool** | | [optional] [default to False] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200Response.md index 77311d80ed..c9546021d1 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200Response.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cursor** | **str** | | [optional] **has_more** | **bool** | | -**records** | [**List[BoostGetBoostRecipients200ResponseInner]**](BoostGetBoostRecipients200ResponseInner.md) | | +**records** | [**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInner]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md new file mode 100644 index 0000000000..69934860fe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInner.md @@ -0,0 +1,32 @@ +# BoostGetPaginatedBoostRecipients200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**var_from** | **str** | | +**received** | **str** | | [optional] +**uri** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner import BoostGetPaginatedBoostRecipients200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInner from a JSON string +boost_get_paginated_boost_recipients200_response_records_inner_instance = BoostGetPaginatedBoostRecipients200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipients200ResponseRecordsInner.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients200_response_records_inner_dict = boost_get_paginated_boost_recipients200_response_records_inner_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInner from a dict +boost_get_paginated_boost_recipients200_response_records_inner_from_dict = BoostGetPaginatedBoostRecipients200ResponseRecordsInner.from_dict(boost_get_paginated_boost_recipients200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md new file mode 100644 index 0000000000..7e88bbbc31 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md @@ -0,0 +1,47 @@ +# BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile_id** | **str** | Unique, URL-safe identifier for the profile. | +**display_name** | **str** | Human-readable display name for the profile. | [default to ''] +**short_bio** | **str** | Short bio for the profile. | [default to ''] +**bio** | **str** | Longer bio for the profile. | [default to ''] +**did** | **str** | Decentralized Identifier for the profile. (auto-assigned) | +**is_private** | **bool** | Whether the profile is private or not and shows up in search results. | [optional] +**email** | **str** | Contact email address for the profile. (deprecated) | [optional] +**image** | **str** | Profile image URL for the profile. | [optional] +**hero_image** | **str** | Hero image URL for the profile. | [optional] +**website_link** | **str** | Website link for the profile. | [optional] +**is_service_profile** | **bool** | Whether the profile is a service profile or not. | [optional] [default to False] +**type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] +**notifications_webhook** | **str** | URL to send notifications to. | [optional] +**display** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] +**role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] +**dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from a JSON string +boost_get_paginated_boost_recipients200_response_records_inner_to_instance = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients200_response_records_inner_to_dict = boost_get_paginated_boost_recipients200_response_records_inner_to_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from a dict +boost_get_paginated_boost_recipients200_response_records_inner_to_from_dict = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(boost_get_paginated_boost_recipients200_response_records_inner_to_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md new file mode 100644 index 0000000000..24ccca0016 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md @@ -0,0 +1,40 @@ +# BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay + +Display settings for the profile. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**background_color** | **str** | | [optional] +**background_image** | **str** | | [optional] +**fade_background_image** | **bool** | | [optional] +**repeat_background_image** | **bool** | | [optional] +**font_color** | **str** | | [optional] +**accent_color** | **str** | | [optional] +**accent_font_color** | **str** | | [optional] +**id_background_image** | **str** | | [optional] +**fade_id_background_image** | **bool** | | [optional] +**id_background_color** | **str** | | [optional] +**repeat_id_background_image** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from a JSON string +boost_get_paginated_boost_recipients200_response_records_inner_to_display_instance = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients200_response_records_inner_to_display_dict = boost_get_paginated_boost_recipients200_response_records_inner_to_display_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from a dict +boost_get_paginated_boost_recipients200_response_records_inner_to_display_from_dict = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.from_dict(boost_get_paginated_boost_recipients200_response_records_inner_to_display_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsRequestQuery.md index ab5fe02ea8..666e1fbe83 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsRequestQuery.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**profile_id** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**display_name** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**short_bio** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**bio** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**email** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**website_link** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**profile_id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**display_name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**short_bio** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**bio** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**email** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**website_link** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] **is_service_profile** | **bool** | | [optional] -**type** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md new file mode 100644 index 0000000000..ad73eef267 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200Response.md @@ -0,0 +1,31 @@ +# BoostGetPaginatedBoostRecipientsWithChildren200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **str** | | [optional] +**has_more** | **bool** | | +**records** | [**List[BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner]**](BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipientsWithChildren200Response from a JSON string +boost_get_paginated_boost_recipients_with_children200_response_instance = BoostGetPaginatedBoostRecipientsWithChildren200Response.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipientsWithChildren200Response.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients_with_children200_response_dict = boost_get_paginated_boost_recipients_with_children200_response_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipientsWithChildren200Response from a dict +boost_get_paginated_boost_recipients_with_children200_response_from_dict = BoostGetPaginatedBoostRecipientsWithChildren200Response.from_dict(boost_get_paginated_boost_recipients_with_children200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md new file mode 100644 index 0000000000..9ec121ea68 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.md @@ -0,0 +1,33 @@ +# BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**var_from** | **str** | | +**received** | **str** | | [optional] +**boost_uris** | **List[str]** | | +**credential_uris** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response_records_inner import BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner from a JSON string +boost_get_paginated_boost_recipients_with_children200_response_records_inner_instance = BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients_with_children200_response_records_inner_dict = boost_get_paginated_boost_recipients_with_children200_response_records_inner_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner from a dict +boost_get_paginated_boost_recipients_with_children200_response_records_inner_from_dict = BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.from_dict(boost_get_paginated_boost_recipients_with_children200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md new file mode 100644 index 0000000000..3da3181dbc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequest.md @@ -0,0 +1,36 @@ +# BoostGetPaginatedBoostRecipientsWithChildrenRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] [default to 25] +**cursor** | **str** | | [optional] +**sort** | **str** | | [optional] +**uri** | **str** | | +**include_unaccepted_boosts** | **bool** | | [optional] [default to True] +**number_of_generations** | [**BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations**](BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md) | | [optional] +**boost_query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] +**profile_query** | [**BoostGetPaginatedBoostRecipientsRequestQuery**](BoostGetPaginatedBoostRecipientsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequest from a JSON string +boost_get_paginated_boost_recipients_with_children_request_instance = BoostGetPaginatedBoostRecipientsWithChildrenRequest.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipientsWithChildrenRequest.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients_with_children_request_dict = boost_get_paginated_boost_recipients_with_children_request_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequest from a dict +boost_get_paginated_boost_recipients_with_children_request_from_dict = BoostGetPaginatedBoostRecipientsWithChildrenRequest.from_dict(boost_get_paginated_boost_recipients_with_children_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md new file mode 100644 index 0000000000..6aa93e3948 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.md @@ -0,0 +1,28 @@ +# BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request_number_of_generations import BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations from a JSON string +boost_get_paginated_boost_recipients_with_children_request_number_of_generations_instance = BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.from_json(json) +# print the JSON string representation of the object +print(BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.to_json()) + +# convert the object into a dict +boost_get_paginated_boost_recipients_with_children_request_number_of_generations_dict = boost_get_paginated_boost_recipients_with_children_request_number_of_generations_instance.to_dict() +# create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations from a dict +boost_get_paginated_boost_recipients_with_children_request_number_of_generations_from_dict = BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.from_dict(boost_get_paginated_boost_recipients_with_children_request_number_of_generations_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md index 4e4ef36dfc..926fcf8b23 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetPaginatedBoosts200ResponseRecordsInner.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **auto_connect_recipients** | **bool** | | [optional] **meta** | **Dict[str, object]** | | [optional] **claim_permissions** | [**BoostGetBoost200ResponseClaimPermissions**](BoostGetBoost200ResponseClaimPermissions.md) | | [optional] +**default_permissions** | [**BoostGetBoost200ResponseClaimPermissions**](BoostGetBoost200ResponseClaimPermissions.md) | | [optional] **allow_anyone_to_create_children** | **bool** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInner.md new file mode 100644 index 0000000000..c5fd2af21b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInner.md @@ -0,0 +1,30 @@ +# BoostGetSkillsAvailableForBoost200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework** | [**BoostGetSkillsAvailableForBoost200ResponseInnerFramework**](BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md) | | +**skills** | [**List[BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner]**](BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md) | | + +## Example + +```python +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInner from a JSON string +boost_get_skills_available_for_boost200_response_inner_instance = BoostGetSkillsAvailableForBoost200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetSkillsAvailableForBoost200ResponseInner.to_json()) + +# convert the object into a dict +boost_get_skills_available_for_boost200_response_inner_dict = boost_get_skills_available_for_boost200_response_inner_instance.to_dict() +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInner from a dict +boost_get_skills_available_for_boost200_response_inner_from_dict = BoostGetSkillsAvailableForBoost200ResponseInner.from_dict(boost_get_skills_available_for_boost200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md new file mode 100644 index 0000000000..4e96ef49a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerFramework.md @@ -0,0 +1,36 @@ +# BoostGetSkillsAvailableForBoost200ResponseInnerFramework + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**description** | **str** | | [optional] +**image** | **str** | | [optional] +**source_uri** | **str** | | [optional] +**status** | **str** | | [default to 'active'] +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_framework import BoostGetSkillsAvailableForBoost200ResponseInnerFramework + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerFramework from a JSON string +boost_get_skills_available_for_boost200_response_inner_framework_instance = BoostGetSkillsAvailableForBoost200ResponseInnerFramework.from_json(json) +# print the JSON string representation of the object +print(BoostGetSkillsAvailableForBoost200ResponseInnerFramework.to_json()) + +# convert the object into a dict +boost_get_skills_available_for_boost200_response_inner_framework_dict = boost_get_skills_available_for_boost200_response_inner_framework_instance.to_dict() +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerFramework from a dict +boost_get_skills_available_for_boost200_response_inner_framework_from_dict = BoostGetSkillsAvailableForBoost200ResponseInnerFramework.from_dict(boost_get_skills_available_for_boost200_response_inner_framework_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md new file mode 100644 index 0000000000..39520b2afd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.md @@ -0,0 +1,36 @@ +# BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [default to 'skill'] +**status** | **str** | | [default to 'active'] +**framework_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_skills_inner import BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from a JSON string +boost_get_skills_available_for_boost200_response_inner_skills_inner_instance = BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.from_json(json) +# print the JSON string representation of the object +print(BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.to_json()) + +# convert the object into a dict +boost_get_skills_available_for_boost200_response_inner_skills_inner_dict = boost_get_skills_available_for_boost200_response_inner_skills_inner_instance.to_dict() +# create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from a dict +boost_get_skills_available_for_boost200_response_inner_skills_inner_from_dict = BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.from_dict(boost_get_skills_available_for_boost200_response_inner_skills_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostAdminRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostAdminRequest.md new file mode 100644 index 0000000000..3db87cf412 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostAdminRequest.md @@ -0,0 +1,30 @@ +# BoostRemoveBoostAdminRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**profile_id** | **str** | | + +## Example + +```python +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostRemoveBoostAdminRequest from a JSON string +boost_remove_boost_admin_request_instance = BoostRemoveBoostAdminRequest.from_json(json) +# print the JSON string representation of the object +print(BoostRemoveBoostAdminRequest.to_json()) + +# convert the object into a dict +boost_remove_boost_admin_request_dict = boost_remove_boost_admin_request_instance.to_dict() +# create an instance of BoostRemoveBoostAdminRequest from a dict +boost_remove_boost_admin_request_from_dict = BoostRemoveBoostAdminRequest.from_dict(boost_remove_boost_admin_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostParentRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostParentRequest.md new file mode 100644 index 0000000000..54f2329e57 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostRemoveBoostParentRequest.md @@ -0,0 +1,30 @@ +# BoostRemoveBoostParentRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parent_uri** | **str** | | +**child_uri** | **str** | | + +## Example + +```python +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostRemoveBoostParentRequest from a JSON string +boost_remove_boost_parent_request_instance = BoostRemoveBoostParentRequest.from_json(json) +# print the JSON string representation of the object +print(BoostRemoveBoostParentRequest.to_json()) + +# convert the object into a dict +boost_remove_boost_parent_request_dict = boost_remove_boost_parent_request_instance.to_dict() +# create an instance of BoostRemoveBoostParentRequest from a dict +boost_remove_boost_parent_request_from_dict = BoostRemoveBoostParentRequest.from_dict(boost_remove_boost_parent_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200Response.md new file mode 100644 index 0000000000..82f53711b6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200Response.md @@ -0,0 +1,31 @@ +# BoostSearchSkillsAvailableForBoost200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**records** | [**List[BoostSearchSkillsAvailableForBoost200ResponseRecordsInner]**](BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md) | | +**has_more** | **bool** | | +**cursor** | **str** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoost200Response from a JSON string +boost_search_skills_available_for_boost200_response_instance = BoostSearchSkillsAvailableForBoost200Response.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoost200Response.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost200_response_dict = boost_search_skills_available_for_boost200_response_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoost200Response from a dict +boost_search_skills_available_for_boost200_response_from_dict = BoostSearchSkillsAvailableForBoost200Response.from_dict(boost_search_skills_available_for_boost200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md new file mode 100644 index 0000000000..3d5fef40b1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.md @@ -0,0 +1,36 @@ +# BoostSearchSkillsAvailableForBoost200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [default to 'skill'] +**status** | **str** | | [default to 'active'] +**framework_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost200_response_records_inner import BoostSearchSkillsAvailableForBoost200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoost200ResponseRecordsInner from a JSON string +boost_search_skills_available_for_boost200_response_records_inner_instance = BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost200_response_records_inner_dict = boost_search_skills_available_for_boost200_response_records_inner_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoost200ResponseRecordsInner from a dict +boost_search_skills_available_for_boost200_response_records_inner_from_dict = BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.from_dict(boost_search_skills_available_for_boost200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequest.md new file mode 100644 index 0000000000..c23522361b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequest.md @@ -0,0 +1,32 @@ +# BoostSearchSkillsAvailableForBoostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**query** | [**BoostSearchSkillsAvailableForBoostRequestQuery**](BoostSearchSkillsAvailableForBoostRequestQuery.md) | | +**limit** | **int** | | [optional] [default to 50] +**cursor** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequest from a JSON string +boost_search_skills_available_for_boost_request_instance = BoostSearchSkillsAvailableForBoostRequest.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequest.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_dict = boost_search_skills_available_for_boost_request_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequest from a dict +boost_search_skills_available_for_boost_request_from_dict = BoostSearchSkillsAvailableForBoostRequest.from_dict(boost_search_skills_available_for_boost_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQuery.md new file mode 100644 index 0000000000..86924bae7a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQuery.md @@ -0,0 +1,35 @@ +# BoostSearchSkillsAvailableForBoostRequestQuery + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md) | | +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**statement** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**code** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query import BoostSearchSkillsAvailableForBoostRequestQuery + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQuery from a JSON string +boost_search_skills_available_for_boost_request_query_instance = BoostSearchSkillsAvailableForBoostRequestQuery.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQuery.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_dict = boost_search_skills_available_for_boost_request_query_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQuery from a dict +boost_search_skills_available_for_boost_request_query_from_dict = BoostSearchSkillsAvailableForBoostRequestQuery.from_dict(boost_search_skills_available_for_boost_request_query_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md new file mode 100644 index 0000000000..988d358748 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md new file mode 100644 index 0000000000..5a550e5fd2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md @@ -0,0 +1,34 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**statement** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**code** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 from a JSON string +boost_search_skills_available_for_boost_request_query_any_of1_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of1_dict = boost_search_skills_available_for_boost_request_query_any_of1_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 from a dict +boost_search_skills_available_for_boost_request_query_any_of1_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.from_dict(boost_search_skills_available_for_boost_request_query_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md new file mode 100644 index 0000000000..8741c6693f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.md @@ -0,0 +1,34 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md) | | [optional] +**statement** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**code** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md new file mode 100644 index 0000000000..fb27e944af --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.md @@ -0,0 +1,31 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md) | | +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md new file mode 100644 index 0000000000..ebec7b908b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.md @@ -0,0 +1,30 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md new file mode 100644 index 0000000000..1786146e55 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md new file mode 100644 index 0000000000..e0b47a20c0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md @@ -0,0 +1,30 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md new file mode 100644 index 0000000000..93466cfbbb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md new file mode 100644 index 0000000000..14547b1f0a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md new file mode 100644 index 0000000000..6486714a9b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md @@ -0,0 +1,28 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md new file mode 100644 index 0000000000..6920674655 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md new file mode 100644 index 0000000000..79a1fc5de6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md new file mode 100644 index 0000000000..bdbadce32c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md new file mode 100644 index 0000000000..59e2bebf83 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.md @@ -0,0 +1,28 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md new file mode 100644 index 0000000000..0fa1f2aa4a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[Optional[str]]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md new file mode 100644 index 0000000000..a0dae7fc64 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md @@ -0,0 +1,31 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | +**regex** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.md) | | +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.md) | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md new file mode 100644 index 0000000000..5917b0d7be --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md new file mode 100644 index 0000000000..3f83371817 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.md @@ -0,0 +1,29 @@ +# BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_in** | **List[str]** | | + +## Example + +```python +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf from a JSON string +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.to_json()) + +# convert the object into a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of_dict = boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of_instance.to_dict() +# create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf from a dict +boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of_from_dict = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.from_dict(boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSend200Response.md b/packages/open-api-lcn-clients/python-client/docs/BoostSend200Response.md new file mode 100644 index 0000000000..f0ef76ed06 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSend200Response.md @@ -0,0 +1,31 @@ +# BoostSend200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**credential_uri** | **str** | | +**uri** | **str** | | + +## Example + +```python +from openapi_client.models.boost_send200_response import BoostSend200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSend200Response from a JSON string +boost_send200_response_instance = BoostSend200Response.from_json(json) +# print the JSON string representation of the object +print(BoostSend200Response.to_json()) + +# convert the object into a dict +boost_send200_response_dict = boost_send200_response_instance.to_dict() +# create an instance of BoostSend200Response from a dict +boost_send200_response_from_dict = BoostSend200Response.from_dict(boost_send200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOf.md index 8701a78f2b..5e5a3f3eb2 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOf.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | **List[str]** | | +**type** | **List[Optional[str]]** | | **issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | **credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | **refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md new file mode 100644 index 0000000000..c0a319261b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.md @@ -0,0 +1,30 @@ +# BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | + +## Example + +```python +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from a JSON string +boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner_instance = BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.from_json(json) +# print the JSON string representation of the object +print(BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.to_json()) + +# convert the object into a dict +boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner_dict = boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner_instance.to_dict() +# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from a dict +boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner_from_dict = BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.from_dict(boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md index e753271206..d47e76c10a 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatus.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | **id** | **str** | | +**type** | **str** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md deleted file mode 100644 index 92015e2773..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**id** | **str** | | - -## Example - -```python -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status_any_of import BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from a JSON string -boost_send_boost_request_credential_any_of_credential_status_any_of_instance = BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.from_json(json) -# print the JSON string representation of the object -print(BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.to_json()) - -# convert the object into a dict -boost_send_boost_request_credential_any_of_credential_status_any_of_dict = boost_send_boost_request_credential_any_of_credential_status_any_of_instance.to_dict() -# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from a dict -boost_send_boost_request_credential_any_of_credential_status_any_of_from_dict = BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.from_dict(boost_send_boost_request_credential_any_of_credential_status_any_of_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md new file mode 100644 index 0000000000..17d85e2fd8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.md @@ -0,0 +1,29 @@ +# BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from a JSON string +boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner_instance = BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.from_json(json) +# print the JSON string representation of the object +print(BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.to_json()) + +# convert the object into a dict +boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner_dict = boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner_instance.to_dict() +# create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from a dict +boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner_from_dict = BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.from_dict(boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidence.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidence.md index 2de1dd7633..09f3871c50 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidence.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidence.md @@ -5,8 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | **id** | **str** | | [optional] +**type** | **List[str]** | | +**name** | **str** | | [optional] +**narrative** | **str** | | [optional] +**description** | **str** | | [optional] +**genre** | **str** | | [optional] +**audience** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md index ad6bb02692..17c9d5c678 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf.md @@ -5,8 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | **id** | **str** | | [optional] +**type** | **List[str]** | | +**name** | **str** | | [optional] +**narrative** | **str** | | [optional] +**description** | **str** | | [optional] +**genre** | **str** | | [optional] +**audience** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md new file mode 100644 index 0000000000..af53c6f218 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.md @@ -0,0 +1,35 @@ +# BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **List[str]** | | +**name** | **str** | | [optional] +**narrative** | **str** | | [optional] +**description** | **str** | | [optional] +**genre** | **str** | | [optional] +**audience** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from a JSON string +boost_send_boost_request_credential_any_of_evidence_any_of1_inner_instance = BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.from_json(json) +# print the JSON string representation of the object +print(BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.to_json()) + +# convert the object into a dict +boost_send_boost_request_credential_any_of_evidence_any_of1_inner_dict = boost_send_boost_request_credential_any_of_evidence_any_of1_inner_instance.to_dict() +# create an instance of BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from a dict +boost_send_boost_request_credential_any_of_evidence_any_of1_inner_from_dict = BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.from_dict(boost_send_boost_request_credential_any_of_evidence_any_of1_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md new file mode 100644 index 0000000000..d981b0cd60 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.md @@ -0,0 +1,36 @@ +# BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**created** | **str** | | +**challenge** | **str** | | [optional] +**domain** | **str** | | [optional] +**nonce** | **str** | | [optional] +**proof_purpose** | **str** | | +**verification_method** | **str** | | +**jws** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from a JSON string +boost_send_boost_request_credential_any_of_proof_any_of1_inner_instance = BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.from_json(json) +# print the JSON string representation of the object +print(BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.to_json()) + +# convert the object into a dict +boost_send_boost_request_credential_any_of_proof_any_of1_inner_dict = boost_send_boost_request_credential_any_of_proof_any_of1_inner_instance.to_dict() +# create an instance of BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from a dict +boost_send_boost_request_credential_any_of_proof_any_of1_inner_from_dict = BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.from_dict(boost_send_boost_request_credential_any_of_proof_any_of1_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md new file mode 100644 index 0000000000..cdf6a7319a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.md @@ -0,0 +1,30 @@ +# BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **str** | | + +## Example + +```python +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from a JSON string +boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner_instance = BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.from_json(json) +# print the JSON string representation of the object +print(BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.to_json()) + +# convert the object into a dict +boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner_dict = boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner_instance.to_dict() +# create an instance of BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from a dict +boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner_from_dict = BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.from_dict(boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md index 78644ce459..ade0811cea 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | **id** | **str** | | [optional] +**type** | **str** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md deleted file mode 100644 index 3caa94eb8c..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**id** | **str** | | [optional] - -## Example - -```python -from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use_any_of import BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from a JSON string -boost_send_boost_request_credential_any_of_terms_of_use_any_of_instance = BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.from_json(json) -# print the JSON string representation of the object -print(BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.to_json()) - -# convert the object into a dict -boost_send_boost_request_credential_any_of_terms_of_use_any_of_dict = boost_send_boost_request_credential_any_of_terms_of_use_any_of_instance.to_dict() -# create an instance of BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from a dict -boost_send_boost_request_credential_any_of_terms_of_use_any_of_from_dict = BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.from_dict(boost_send_boost_request_credential_any_of_terms_of_use_any_of_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequest.md new file mode 100644 index 0000000000..ce91d83dbe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequest.md @@ -0,0 +1,34 @@ +# BoostSendRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**recipient** | **str** | | +**contract_uri** | **str** | | [optional] +**template_uri** | **str** | | [optional] +**template** | [**BoostSendRequestTemplate**](BoostSendRequestTemplate.md) | | [optional] +**signed_credential** | [**BoostSendRequestTemplateCredentialAnyOf**](BoostSendRequestTemplateCredentialAnyOf.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request import BoostSendRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequest from a JSON string +boost_send_request_instance = BoostSendRequest.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequest.to_json()) + +# convert the object into a dict +boost_send_request_dict = boost_send_request_instance.to_dict() +# create an instance of BoostSendRequest from a dict +boost_send_request_from_dict = BoostSendRequest.from_dict(boost_send_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplate.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplate.md new file mode 100644 index 0000000000..519ab74282 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplate.md @@ -0,0 +1,39 @@ +# BoostSendRequestTemplate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**type** | **str** | | [optional] +**category** | **str** | | [optional] +**status** | **str** | | [optional] +**auto_connect_recipients** | **bool** | | [optional] +**meta** | **Dict[str, object]** | | [optional] +**default_permissions** | [**BoostSendRequestTemplateDefaultPermissions**](BoostSendRequestTemplateDefaultPermissions.md) | | [optional] +**allow_anyone_to_create_children** | **bool** | | [optional] +**credential** | [**BoostSendRequestTemplateCredential**](BoostSendRequestTemplateCredential.md) | | +**claim_permissions** | [**BoostSendRequestTemplateClaimPermissions**](BoostSendRequestTemplateClaimPermissions.md) | | [optional] +**skills** | [**List[BoostSendRequestTemplateSkillsInner]**](BoostSendRequestTemplateSkillsInner.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template import BoostSendRequestTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplate from a JSON string +boost_send_request_template_instance = BoostSendRequestTemplate.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplate.to_json()) + +# convert the object into a dict +boost_send_request_template_dict = boost_send_request_template_instance.to_dict() +# create an instance of BoostSendRequestTemplate from a dict +boost_send_request_template_from_dict = BoostSendRequestTemplate.from_dict(boost_send_request_template_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateClaimPermissions.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateClaimPermissions.md new file mode 100644 index 0000000000..74ae45c71e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateClaimPermissions.md @@ -0,0 +1,40 @@ +# BoostSendRequestTemplateClaimPermissions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | [optional] +**can_edit** | **bool** | | [optional] +**can_issue** | **bool** | | [optional] +**can_revoke** | **bool** | | [optional] +**can_manage_permissions** | **bool** | | [optional] +**can_issue_children** | **str** | | [optional] +**can_create_children** | **str** | | [optional] +**can_edit_children** | **str** | | [optional] +**can_revoke_children** | **str** | | [optional] +**can_manage_children_permissions** | **str** | | [optional] +**can_manage_children_profiles** | **bool** | | [optional] +**can_view_analytics** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_claim_permissions import BoostSendRequestTemplateClaimPermissions + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateClaimPermissions from a JSON string +boost_send_request_template_claim_permissions_instance = BoostSendRequestTemplateClaimPermissions.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateClaimPermissions.to_json()) + +# convert the object into a dict +boost_send_request_template_claim_permissions_dict = boost_send_request_template_claim_permissions_instance.to_dict() +# create an instance of BoostSendRequestTemplateClaimPermissions from a dict +boost_send_request_template_claim_permissions_from_dict = BoostSendRequestTemplateClaimPermissions.from_dict(boost_send_request_template_claim_permissions_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredential.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredential.md new file mode 100644 index 0000000000..7874c965e0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredential.md @@ -0,0 +1,46 @@ +# BoostSendRequestTemplateCredential + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential import BoostSendRequestTemplateCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredential from a JSON string +boost_send_request_template_credential_instance = BoostSendRequestTemplateCredential.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredential.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_dict = boost_send_request_template_credential_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredential from a dict +boost_send_request_template_credential_from_dict = BoostSendRequestTemplateCredential.from_dict(boost_send_request_template_credential_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf.md new file mode 100644 index 0000000000..a357f9ceee --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf.md @@ -0,0 +1,46 @@ +# BoostSendRequestTemplateCredentialAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOf from a JSON string +boost_send_request_template_credential_any_of_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOf.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_dict = boost_send_request_template_credential_any_of_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOf from a dict +boost_send_request_template_credential_any_of_from_dict = BoostSendRequestTemplateCredentialAnyOf.from_dict(boost_send_request_template_credential_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf1.md new file mode 100644 index 0000000000..f5a5cefafa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOf1.md @@ -0,0 +1,45 @@ +# BoostSendRequestTemplateCredentialAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of1 import BoostSendRequestTemplateCredentialAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOf1 from a JSON string +boost_send_request_template_credential_any_of1_instance = BoostSendRequestTemplateCredentialAnyOf1.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOf1.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of1_dict = boost_send_request_template_credential_any_of1_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOf1 from a dict +boost_send_request_template_credential_any_of1_from_dict = BoostSendRequestTemplateCredentialAnyOf1.from_dict(boost_send_request_template_credential_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md new file mode 100644 index 0000000000..41df4b896c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfContextInner.md @@ -0,0 +1,28 @@ +# BoostSendRequestTemplateCredentialAnyOfContextInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfContextInner from a JSON string +boost_send_request_template_credential_any_of_context_inner_instance = BoostSendRequestTemplateCredentialAnyOfContextInner.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfContextInner.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_context_inner_dict = boost_send_request_template_credential_any_of_context_inner_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfContextInner from a dict +boost_send_request_template_credential_any_of_context_inner_from_dict = BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(boost_send_request_template_credential_any_of_context_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md new file mode 100644 index 0000000000..5d960295e7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md @@ -0,0 +1,29 @@ +# BoostSendRequestTemplateCredentialAnyOfCredentialSubject + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfCredentialSubject from a JSON string +boost_send_request_template_credential_any_of_credential_subject_instance = BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfCredentialSubject.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_credential_subject_dict = boost_send_request_template_credential_any_of_credential_subject_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfCredentialSubject from a dict +boost_send_request_template_credential_any_of_credential_subject_from_dict = BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(boost_send_request_template_credential_any_of_credential_subject_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md new file mode 100644 index 0000000000..dc8bd656f9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfEvidence.md @@ -0,0 +1,35 @@ +# BoostSendRequestTemplateCredentialAnyOfEvidence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **List[str]** | | +**name** | **str** | | [optional] +**narrative** | **str** | | [optional] +**description** | **str** | | [optional] +**genre** | **str** | | [optional] +**audience** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfEvidence from a JSON string +boost_send_request_template_credential_any_of_evidence_instance = BoostSendRequestTemplateCredentialAnyOfEvidence.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfEvidence.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_evidence_dict = boost_send_request_template_credential_any_of_evidence_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfEvidence from a dict +boost_send_request_template_credential_any_of_evidence_from_dict = BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(boost_send_request_template_credential_any_of_evidence_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md new file mode 100644 index 0000000000..b337a8e09b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuer.md @@ -0,0 +1,49 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner]**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuer from a JSON string +boost_send_request_template_credential_any_of_issuer_instance = BoostSendRequestTemplateCredentialAnyOfIssuer.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuer.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_dict = boost_send_request_template_credential_any_of_issuer_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuer from a dict +boost_send_request_template_credential_any_of_issuer_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuer.from_dict(boost_send_request_template_credential_any_of_issuer_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md new file mode 100644 index 0000000000..4bc0e0e2fd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.md @@ -0,0 +1,49 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner]**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_dict = boost_send_request_template_credential_any_of_issuer_any_of_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf from a dict +boost_send_request_template_credential_any_of_issuer_any_of_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md new file mode 100644 index 0000000000..1e55af301d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.md @@ -0,0 +1,37 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**address_country** | **str** | | [optional] +**address_country_code** | **str** | | [optional] +**address_region** | **str** | | [optional] +**address_locality** | **str** | | [optional] +**street_address** | **str** | | [optional] +**post_office_box_number** | **str** | | [optional] +**postal_code** | **str** | | [optional] +**geo** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md) | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_address_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_address_dict = boost_send_request_template_credential_any_of_issuer_any_of_address_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress from a dict +boost_send_request_template_credential_any_of_issuer_any_of_address_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_address_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md new file mode 100644 index 0000000000..9c563cfb49 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.md @@ -0,0 +1,31 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**latitude** | **float** | | +**longitude** | **float** | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_address_geo_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_address_geo_dict = boost_send_request_template_credential_any_of_issuer_any_of_address_geo_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo from a dict +boost_send_request_template_credential_any_of_issuer_any_of_address_geo_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_address_geo_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md new file mode 100644 index 0000000000..53f3c60096 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.md @@ -0,0 +1,31 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_image_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_image_dict = boost_send_request_template_credential_any_of_issuer_any_of_image_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage from a dict +boost_send_request_template_credential_any_of_issuer_any_of_image_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_image_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md new file mode 100644 index 0000000000..a847b79869 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.md @@ -0,0 +1,31 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_image_any_of_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_image_any_of_dict = boost_send_request_template_credential_any_of_issuer_any_of_image_any_of_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf from a dict +boost_send_request_template_credential_any_of_issuer_any_of_image_any_of_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_image_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md new file mode 100644 index 0000000000..68e445efc5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.md @@ -0,0 +1,31 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**identifier** | **str** | | +**identifier_type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md) | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_dict = boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner from a dict +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md new file mode 100644 index 0000000000..498f823861 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md @@ -0,0 +1,28 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type_dict = boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType from a dict +boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md new file mode 100644 index 0000000000..ff6965802a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md @@ -0,0 +1,28 @@ +# BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType from a JSON string +boost_send_request_template_credential_any_of_issuer_any_of_type_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_issuer_any_of_type_dict = boost_send_request_template_credential_any_of_issuer_any_of_type_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType from a dict +boost_send_request_template_credential_any_of_issuer_any_of_type_from_dict = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(boost_send_request_template_credential_any_of_issuer_any_of_type_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfProof.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfProof.md new file mode 100644 index 0000000000..a7fbbc9086 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateCredentialAnyOfProof.md @@ -0,0 +1,36 @@ +# BoostSendRequestTemplateCredentialAnyOfProof + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**created** | **str** | | +**challenge** | **str** | | [optional] +**domain** | **str** | | [optional] +**nonce** | **str** | | [optional] +**proof_purpose** | **str** | | +**verification_method** | **str** | | +**jws** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateCredentialAnyOfProof from a JSON string +boost_send_request_template_credential_any_of_proof_instance = BoostSendRequestTemplateCredentialAnyOfProof.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateCredentialAnyOfProof.to_json()) + +# convert the object into a dict +boost_send_request_template_credential_any_of_proof_dict = boost_send_request_template_credential_any_of_proof_instance.to_dict() +# create an instance of BoostSendRequestTemplateCredentialAnyOfProof from a dict +boost_send_request_template_credential_any_of_proof_from_dict = BoostSendRequestTemplateCredentialAnyOfProof.from_dict(boost_send_request_template_credential_any_of_proof_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateDefaultPermissions.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateDefaultPermissions.md new file mode 100644 index 0000000000..25deefb6c7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateDefaultPermissions.md @@ -0,0 +1,40 @@ +# BoostSendRequestTemplateDefaultPermissions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | +**can_edit** | **bool** | | +**can_issue** | **bool** | | +**can_revoke** | **bool** | | +**can_manage_permissions** | **bool** | | +**can_issue_children** | **str** | | +**can_create_children** | **str** | | +**can_edit_children** | **str** | | +**can_revoke_children** | **str** | | +**can_manage_children_permissions** | **str** | | +**can_manage_children_profiles** | **bool** | | [optional] +**can_view_analytics** | **bool** | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_default_permissions import BoostSendRequestTemplateDefaultPermissions + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateDefaultPermissions from a JSON string +boost_send_request_template_default_permissions_instance = BoostSendRequestTemplateDefaultPermissions.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateDefaultPermissions.to_json()) + +# convert the object into a dict +boost_send_request_template_default_permissions_dict = boost_send_request_template_default_permissions_instance.to_dict() +# create an instance of BoostSendRequestTemplateDefaultPermissions from a dict +boost_send_request_template_default_permissions_from_dict = BoostSendRequestTemplateDefaultPermissions.from_dict(boost_send_request_template_default_permissions_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateSkillsInner.md b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateSkillsInner.md new file mode 100644 index 0000000000..5ec0dfe269 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostSendRequestTemplateSkillsInner.md @@ -0,0 +1,30 @@ +# BoostSendRequestTemplateSkillsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**id** | **str** | | + +## Example + +```python +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostSendRequestTemplateSkillsInner from a JSON string +boost_send_request_template_skills_inner_instance = BoostSendRequestTemplateSkillsInner.from_json(json) +# print the JSON string representation of the object +print(BoostSendRequestTemplateSkillsInner.to_json()) + +# convert the object into a dict +boost_send_request_template_skills_inner_dict = boost_send_request_template_skills_inner_instance.to_dict() +# create an instance of BoostSendRequestTemplateSkillsInner from a dict +boost_send_request_template_skills_inner_from_dict = BoostSendRequestTemplateSkillsInner.from_dict(boost_send_request_template_skills_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostPermissionsRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostPermissionsRequestUpdates.md index f5d1952e2a..e91ca0dfbc 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostPermissionsRequestUpdates.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostPermissionsRequestUpdates.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **can_edit_children** | **str** | | [optional] **can_revoke_children** | **str** | | [optional] **can_manage_children_permissions** | **str** | | [optional] -**can_manage_children_profiles** | **bool** | | [optional] [default to False] +**can_manage_children_profiles** | **bool** | | [optional] **can_view_analytics** | **bool** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostRequestUpdates.md index 6a519f3698..fdf03a9eed 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostRequestUpdates.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateBoostRequestUpdates.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **meta** | **Dict[str, object]** | | [optional] **allow_anyone_to_create_children** | **bool** | | [optional] **credential** | [**BoostCreateBoostRequestCredential**](BoostCreateBoostRequestCredential.md) | | [optional] +**default_permissions** | [**BoostCreateBoostRequestClaimPermissions**](BoostCreateBoostRequestClaimPermissions.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequest.md b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequest.md new file mode 100644 index 0000000000..2b32e34653 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequest.md @@ -0,0 +1,30 @@ +# BoostUpdateOtherBoostPermissionsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uri** | **str** | | +**updates** | [**BoostUpdateOtherBoostPermissionsRequestUpdates**](BoostUpdateOtherBoostPermissionsRequestUpdates.md) | | + +## Example + +```python +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostUpdateOtherBoostPermissionsRequest from a JSON string +boost_update_other_boost_permissions_request_instance = BoostUpdateOtherBoostPermissionsRequest.from_json(json) +# print the JSON string representation of the object +print(BoostUpdateOtherBoostPermissionsRequest.to_json()) + +# convert the object into a dict +boost_update_other_boost_permissions_request_dict = boost_update_other_boost_permissions_request_instance.to_dict() +# create an instance of BoostUpdateOtherBoostPermissionsRequest from a dict +boost_update_other_boost_permissions_request_from_dict = BoostUpdateOtherBoostPermissionsRequest.from_dict(boost_update_other_boost_permissions_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md new file mode 100644 index 0000000000..e1a427107c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/BoostUpdateOtherBoostPermissionsRequestUpdates.md @@ -0,0 +1,39 @@ +# BoostUpdateOtherBoostPermissionsRequestUpdates + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**can_edit** | **bool** | | [optional] +**can_issue** | **bool** | | [optional] +**can_revoke** | **bool** | | [optional] +**can_manage_permissions** | **bool** | | [optional] +**can_issue_children** | **str** | | [optional] +**can_create_children** | **str** | | [optional] +**can_edit_children** | **str** | | [optional] +**can_revoke_children** | **str** | | [optional] +**can_manage_children_permissions** | **str** | | [optional] +**can_manage_children_profiles** | **bool** | | [optional] +**can_view_analytics** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.boost_update_other_boost_permissions_request_updates import BoostUpdateOtherBoostPermissionsRequestUpdates + +# TODO update the JSON string below +json = "{}" +# create an instance of BoostUpdateOtherBoostPermissionsRequestUpdates from a JSON string +boost_update_other_boost_permissions_request_updates_instance = BoostUpdateOtherBoostPermissionsRequestUpdates.from_json(json) +# print the JSON string representation of the object +print(BoostUpdateOtherBoostPermissionsRequestUpdates.to_json()) + +# convert the object into a dict +boost_update_other_boost_permissions_request_updates_dict = boost_update_other_boost_permissions_request_updates_instance.to_dict() +# create an instance of BoostUpdateOtherBoostPermissionsRequestUpdates from a dict +boost_update_other_boost_permissions_request_updates_from_dict = BoostUpdateOtherBoostPermissionsRequestUpdates.from_dict(boost_update_other_boost_permissions_request_updates_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/BoostsApi.md b/packages/open-api-lcn-clients/python-client/docs/BoostsApi.md index d7ea512315..912cf19082 100644 --- a/packages/open-api-lcn-clients/python-client/docs/BoostsApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/BoostsApi.md @@ -5,6 +5,8 @@ All URIs are relative to *https://network.learncard.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**boost_add_boost_admin**](BoostsApi.md#boost_add_boost_admin) | **POST** /boost/add-admin | Add a Boost admin +[**boost_align_boost_skills**](BoostsApi.md#boost_align_boost_skills) | **POST** /boost/align-skills | Align skills to boost +[**boost_attach_framework_to_boost**](BoostsApi.md#boost_attach_framework_to_boost) | **POST** /boost/attach-framework | Attach framework to boost [**boost_claim_boost_with_link**](BoostsApi.md#boost_claim_boost_with_link) | **POST** /boost/claim | Claim a boost using a claim link [**boost_count_boost_children**](BoostsApi.md#boost_count_boost_children) | **POST** /boost/children/count | Count boost children [**boost_count_boost_parents**](BoostsApi.md#boost_count_boost_parents) | **POST** /boost/parents/count | Count boost parents @@ -14,14 +16,18 @@ Method | HTTP request | Description [**boost_create_boost**](BoostsApi.md#boost_create_boost) | **POST** /boost/create | Creates a boost [**boost_create_child_boost**](BoostsApi.md#boost_create_child_boost) | **POST** /boost/create/child | Creates a boost [**boost_delete_boost**](BoostsApi.md#boost_delete_boost) | **DELETE** /boost | Delete a boost +[**boost_detach_framework_from_boost**](BoostsApi.md#boost_detach_framework_from_boost) | **POST** /boost/detach-framework | Detach framework from boost [**boost_generate_claim_link**](BoostsApi.md#boost_generate_claim_link) | **POST** /boost/generate-claim-link | Generate a claim link for a boost [**boost_get_boost**](BoostsApi.md#boost_get_boost) | **GET** /boost | Get boost [**boost_get_boost_admins**](BoostsApi.md#boost_get_boost_admins) | **POST** /boost/admins | Get boost admins +[**boost_get_boost_alignments**](BoostsApi.md#boost_get_boost_alignments) | **GET** /boost/alignments | Get OBv3 alignments for a boost [**boost_get_boost_children**](BoostsApi.md#boost_get_boost_children) | **POST** /boost/children | Get boost children +[**boost_get_boost_frameworks**](BoostsApi.md#boost_get_boost_frameworks) | **POST** /boost/frameworks | List frameworks used by a boost (paginated) [**boost_get_boost_parents**](BoostsApi.md#boost_get_boost_parents) | **POST** /boost/parents | Get boost parents [**boost_get_boost_permissions**](BoostsApi.md#boost_get_boost_permissions) | **GET** /boost/permissions | Get boost permissions [**boost_get_boost_recipient_count**](BoostsApi.md#boost_get_boost_recipient_count) | **GET** /boost/recipients/count | Get boost recipients count [**boost_get_boost_recipients**](BoostsApi.md#boost_get_boost_recipients) | **GET** /boost/recipients | Get boost recipients +[**boost_get_boost_recipients_with_children_count**](BoostsApi.md#boost_get_boost_recipients_with_children_count) | **POST** /boost/recipients-with-children/count | Count boost recipients with children [**boost_get_boost_siblings**](BoostsApi.md#boost_get_boost_siblings) | **POST** /boost/siblings | Get boost siblings [**boost_get_boosts**](BoostsApi.md#boost_get_boosts) | **POST** /boost/all | Get boosts [**boost_get_children_profile_managers**](BoostsApi.md#boost_get_children_profile_managers) | **POST** /boost/children-profile-managers | Get Profile Managers that are a child of a boost @@ -30,10 +36,13 @@ Method | HTTP request | Description [**boost_get_familial_boosts**](BoostsApi.md#boost_get_familial_boosts) | **POST** /boost/family | Get familial boosts [**boost_get_other_boost_permissions**](BoostsApi.md#boost_get_other_boost_permissions) | **GET** /boost/permissions/{profileId} | Get boost permissions for someone else [**boost_get_paginated_boost_recipients**](BoostsApi.md#boost_get_paginated_boost_recipients) | **POST** /boost/recipients/paginated | Get boost recipients +[**boost_get_paginated_boost_recipients_with_children**](BoostsApi.md#boost_get_paginated_boost_recipients_with_children) | **POST** /boost/recipients-with-children/paginated | Get boost recipients with children [**boost_get_paginated_boosts**](BoostsApi.md#boost_get_paginated_boosts) | **POST** /boost/paginated | Get boosts +[**boost_get_skills_available_for_boost**](BoostsApi.md#boost_get_skills_available_for_boost) | **GET** /boost/skills/available | List available skills for a boost [**boost_make_boost_parent**](BoostsApi.md#boost_make_boost_parent) | **POST** /boost/make-parent | Make Boost Parent [**boost_remove_boost_admin**](BoostsApi.md#boost_remove_boost_admin) | **POST** /boost/remove-admin | Remove a Boost admin [**boost_remove_boost_parent**](BoostsApi.md#boost_remove_boost_parent) | **POST** /boost/remove-parent | Remove Boost Parent +[**boost_search_skills_available_for_boost**](BoostsApi.md#boost_search_skills_available_for_boost) | **POST** /boost/skills/search | Search available skills for a boost [**boost_send_boost**](BoostsApi.md#boost_send_boost) | **POST** /boost/send/{profileId} | Send a Boost [**boost_send_boost_via_signing_authority**](BoostsApi.md#boost_send_boost_via_signing_authority) | **POST** /boost/send/via-signing-authority/{profileId} | Send a boost to a profile using a signing authority [**boost_update_boost**](BoostsApi.md#boost_update_boost) | **POST** /boost | Update a boost @@ -123,8 +132,172 @@ Name | Type | Description | Notes [[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) +# **boost_align_boost_skills** +> bool boost_align_boost_skills(boost_align_boost_skills_request) + +Align skills to boost + +Ensures ALIGNED_TO relationships from a boost to Skill nodes. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_align_boost_skills_request = openapi_client.BoostAlignBoostSkillsRequest() # BoostAlignBoostSkillsRequest | + + try: + # Align skills to boost + api_response = api_instance.boost_align_boost_skills(boost_align_boost_skills_request) + print("The response of BoostsApi->boost_align_boost_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_align_boost_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_align_boost_skills_request** | [**BoostAlignBoostSkillsRequest**](BoostAlignBoostSkillsRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **boost_attach_framework_to_boost** +> bool boost_attach_framework_to_boost(boost_attach_framework_to_boost_request) + +Attach framework to boost + +Ensures a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_attach_framework_to_boost_request = openapi_client.BoostAttachFrameworkToBoostRequest() # BoostAttachFrameworkToBoostRequest | + + try: + # Attach framework to boost + api_response = api_instance.boost_attach_framework_to_boost(boost_attach_framework_to_boost_request) + print("The response of BoostsApi->boost_attach_framework_to_boost:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_attach_framework_to_boost: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_attach_framework_to_boost_request** | [**BoostAttachFrameworkToBoostRequest**](BoostAttachFrameworkToBoostRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **boost_claim_boost_with_link** -> str boost_claim_boost_with_link(boost_generate_claim_link200_response) +> str boost_claim_boost_with_link(boost_claim_boost_with_link_request) Claim a boost using a claim link @@ -136,7 +309,7 @@ Claims a boost using a claim link, including a challenge ```python import openapi_client -from openapi_client.models.boost_generate_claim_link200_response import BoostGenerateClaimLink200Response +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest from openapi_client.rest import ApiException from pprint import pprint @@ -160,11 +333,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - boost_generate_claim_link200_response = openapi_client.BoostGenerateClaimLink200Response() # BoostGenerateClaimLink200Response | + boost_claim_boost_with_link_request = openapi_client.BoostClaimBoostWithLinkRequest() # BoostClaimBoostWithLinkRequest | try: # Claim a boost using a claim link - api_response = api_instance.boost_claim_boost_with_link(boost_generate_claim_link200_response) + api_response = api_instance.boost_claim_boost_with_link(boost_claim_boost_with_link_request) print("The response of BoostsApi->boost_claim_boost_with_link:\n") pprint(api_response) except Exception as e: @@ -178,7 +351,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **boost_generate_claim_link200_response** | [**BoostGenerateClaimLink200Response**](BoostGenerateClaimLink200Response.md)| | + **boost_claim_boost_with_link_request** | [**BoostClaimBoostWithLinkRequest**](BoostClaimBoostWithLinkRequest.md)| | ### Return type @@ -288,7 +461,7 @@ Name | Type | Description | Notes [[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) # **boost_count_boost_parents** -> float boost_count_boost_parents(boost_count_boost_children_request) +> float boost_count_boost_parents(boost_count_boost_parents_request) Count boost parents @@ -300,7 +473,7 @@ This endpoint counts the parents of a particular boost ```python import openapi_client -from openapi_client.models.boost_count_boost_children_request import BoostCountBoostChildrenRequest +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest from openapi_client.rest import ApiException from pprint import pprint @@ -324,11 +497,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - boost_count_boost_children_request = openapi_client.BoostCountBoostChildrenRequest() # BoostCountBoostChildrenRequest | + boost_count_boost_parents_request = openapi_client.BoostCountBoostParentsRequest() # BoostCountBoostParentsRequest | try: # Count boost parents - api_response = api_instance.boost_count_boost_parents(boost_count_boost_children_request) + api_response = api_instance.boost_count_boost_parents(boost_count_boost_parents_request) print("The response of BoostsApi->boost_count_boost_parents:\n") pprint(api_response) except Exception as e: @@ -342,7 +515,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **boost_count_boost_children_request** | [**BoostCountBoostChildrenRequest**](BoostCountBoostChildrenRequest.md)| | + **boost_count_boost_parents_request** | [**BoostCountBoostParentsRequest**](BoostCountBoostParentsRequest.md)| | ### Return type @@ -861,6 +1034,88 @@ Name | Type | Description | Notes [[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) +# **boost_detach_framework_from_boost** +> bool boost_detach_framework_from_boost(boost_detach_framework_from_boost_request) + +Detach framework from boost + +Removes a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_detach_framework_from_boost_request = openapi_client.BoostDetachFrameworkFromBoostRequest() # BoostDetachFrameworkFromBoostRequest | + + try: + # Detach framework from boost + api_response = api_instance.boost_detach_framework_from_boost(boost_detach_framework_from_boost_request) + print("The response of BoostsApi->boost_detach_framework_from_boost:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_detach_framework_from_boost: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_detach_framework_from_boost_request** | [**BoostDetachFrameworkFromBoostRequest**](BoostDetachFrameworkFromBoostRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **boost_generate_claim_link** > BoostGenerateClaimLink200Response boost_generate_claim_link(boost_generate_claim_link_request) @@ -1110,6 +1365,89 @@ Name | Type | Description | Notes [[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) +# **boost_get_boost_alignments** +> List[BoostGetBoostAlignments200ResponseInner] boost_get_boost_alignments(uri) + +Get OBv3 alignments for a boost + +Returns OBv3 alignment entries based on the boost's linked framework and aligned skills. Requires issue permission. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + uri = 'uri_example' # str | + + try: + # Get OBv3 alignments for a boost + api_response = api_instance.boost_get_boost_alignments(uri) + print("The response of BoostsApi->boost_get_boost_alignments:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_get_boost_alignments: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uri** | **str**| | + +### Return type + +[**List[BoostGetBoostAlignments200ResponseInner]**](BoostGetBoostAlignments200ResponseInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + # **boost_get_boost_children** > BoostGetPaginatedBoosts200Response boost_get_boost_children(boost_get_boost_children_request) @@ -1193,8 +1531,91 @@ Name | Type | Description | Notes [[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) +# **boost_get_boost_frameworks** +> BoostGetBoostFrameworks200Response boost_get_boost_frameworks(boost_get_boost_frameworks_request) + +List frameworks used by a boost (paginated) + +Returns frameworks aligned to a boost via USES_FRAMEWORK with pagination and optional query filtering. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_get_boost_frameworks_request = openapi_client.BoostGetBoostFrameworksRequest() # BoostGetBoostFrameworksRequest | + + try: + # List frameworks used by a boost (paginated) + api_response = api_instance.boost_get_boost_frameworks(boost_get_boost_frameworks_request) + print("The response of BoostsApi->boost_get_boost_frameworks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_get_boost_frameworks: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_get_boost_frameworks_request** | [**BoostGetBoostFrameworksRequest**](BoostGetBoostFrameworksRequest.md)| | + +### Return type + +[**BoostGetBoostFrameworks200Response**](BoostGetBoostFrameworks200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **boost_get_boost_parents** -> BoostGetPaginatedBoosts200Response boost_get_boost_parents(boost_get_boost_children_request) +> BoostGetPaginatedBoosts200Response boost_get_boost_parents(boost_get_boost_parents_request) Get boost parents @@ -1206,7 +1627,7 @@ This endpoint gets the parents of a particular boost ```python import openapi_client -from openapi_client.models.boost_get_boost_children_request import BoostGetBoostChildrenRequest +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response from openapi_client.rest import ApiException from pprint import pprint @@ -1231,11 +1652,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - boost_get_boost_children_request = openapi_client.BoostGetBoostChildrenRequest() # BoostGetBoostChildrenRequest | + boost_get_boost_parents_request = openapi_client.BoostGetBoostParentsRequest() # BoostGetBoostParentsRequest | try: # Get boost parents - api_response = api_instance.boost_get_boost_parents(boost_get_boost_children_request) + api_response = api_instance.boost_get_boost_parents(boost_get_boost_parents_request) print("The response of BoostsApi->boost_get_boost_parents:\n") pprint(api_response) except Exception as e: @@ -1249,7 +1670,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **boost_get_boost_children_request** | [**BoostGetBoostChildrenRequest**](BoostGetBoostChildrenRequest.md)| | + **boost_get_boost_parents_request** | [**BoostGetBoostParentsRequest**](BoostGetBoostParentsRequest.md)| | ### Return type @@ -1404,7 +1825,95 @@ with openapi_client.ApiClient(configuration) as api_client: print("The response of BoostsApi->boost_get_boost_recipient_count:\n") pprint(api_response) except Exception as e: - print("Exception when calling BoostsApi->boost_get_boost_recipient_count: %s\n" % e) + print("Exception when calling BoostsApi->boost_get_boost_recipient_count: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uri** | **str**| | + **include_unaccepted_boosts** | **bool**| | [optional] [default to True] + +### Return type + +**float** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **boost_get_boost_recipients** +> List[BoostGetBoostRecipients200ResponseInner] boost_get_boost_recipients(uri, limit=limit, skip=skip, include_unaccepted_boosts=include_unaccepted_boosts) + +Get boost recipients + +This endpoint gets the recipients of a particular boost. +Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + uri = 'uri_example' # str | + limit = 25 # float | (optional) (default to 25) + skip = 3.4 # float | (optional) + include_unaccepted_boosts = True # bool | (optional) (default to True) + + try: + # Get boost recipients + api_response = api_instance.boost_get_boost_recipients(uri, limit=limit, skip=skip, include_unaccepted_boosts=include_unaccepted_boosts) + print("The response of BoostsApi->boost_get_boost_recipients:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_get_boost_recipients: %s\n" % e) ``` @@ -1415,11 +1924,13 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **uri** | **str**| | + **limit** | **float**| | [optional] [default to 25] + **skip** | **float**| | [optional] **include_unaccepted_boosts** | **bool**| | [optional] [default to True] ### Return type -**float** +[**List[BoostGetBoostRecipients200ResponseInner]**](BoostGetBoostRecipients200ResponseInner.md) ### Authorization @@ -1443,13 +1954,12 @@ Name | Type | Description | Notes [[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) -# **boost_get_boost_recipients** -> List[BoostGetBoostRecipients200ResponseInner] boost_get_boost_recipients(uri, limit=limit, skip=skip, include_unaccepted_boosts=include_unaccepted_boosts) +# **boost_get_boost_recipients_with_children_count** +> float boost_get_boost_recipients_with_children_count(boost_get_boost_recipients_with_children_count_request) -Get boost recipients +Count boost recipients with children -This endpoint gets the recipients of a particular boost. -Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead +This endpoint counts distinct recipients of a boost and all its children boosts ### Example @@ -1457,7 +1967,7 @@ Warning! This route is deprecated and currently has a hard limit of returning on ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest from openapi_client.rest import ApiException from pprint import pprint @@ -1481,18 +1991,15 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - uri = 'uri_example' # str | - limit = 25 # float | (optional) (default to 25) - skip = 3.4 # float | (optional) - include_unaccepted_boosts = True # bool | (optional) (default to True) + boost_get_boost_recipients_with_children_count_request = openapi_client.BoostGetBoostRecipientsWithChildrenCountRequest() # BoostGetBoostRecipientsWithChildrenCountRequest | try: - # Get boost recipients - api_response = api_instance.boost_get_boost_recipients(uri, limit=limit, skip=skip, include_unaccepted_boosts=include_unaccepted_boosts) - print("The response of BoostsApi->boost_get_boost_recipients:\n") + # Count boost recipients with children + api_response = api_instance.boost_get_boost_recipients_with_children_count(boost_get_boost_recipients_with_children_count_request) + print("The response of BoostsApi->boost_get_boost_recipients_with_children_count:\n") pprint(api_response) except Exception as e: - print("Exception when calling BoostsApi->boost_get_boost_recipients: %s\n" % e) + print("Exception when calling BoostsApi->boost_get_boost_recipients_with_children_count: %s\n" % e) ``` @@ -1502,14 +2009,11 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uri** | **str**| | - **limit** | **float**| | [optional] [default to 25] - **skip** | **float**| | [optional] - **include_unaccepted_boosts** | **bool**| | [optional] [default to True] + **boost_get_boost_recipients_with_children_count_request** | [**BoostGetBoostRecipientsWithChildrenCountRequest**](BoostGetBoostRecipientsWithChildrenCountRequest.md)| | ### Return type -[**List[BoostGetBoostRecipients200ResponseInner]**](BoostGetBoostRecipients200ResponseInner.md) +**float** ### Authorization @@ -1517,7 +2021,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -1528,7 +2032,6 @@ Name | Type | Description | Notes **400** | Invalid input data | - | **401** | Authorization not provided | - | **403** | Insufficient access | - | -**404** | Not found | - | **500** | Internal server error | - | [[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) @@ -2203,6 +2706,89 @@ Name | Type | Description | Notes [[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) +# **boost_get_paginated_boost_recipients_with_children** +> BoostGetPaginatedBoostRecipientsWithChildren200Response boost_get_paginated_boost_recipients_with_children(boost_get_paginated_boost_recipients_with_children_request) + +Get boost recipients with children + +This endpoint gets the recipients of a boost and all its children boosts + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_get_paginated_boost_recipients_with_children_request = openapi_client.BoostGetPaginatedBoostRecipientsWithChildrenRequest() # BoostGetPaginatedBoostRecipientsWithChildrenRequest | + + try: + # Get boost recipients with children + api_response = api_instance.boost_get_paginated_boost_recipients_with_children(boost_get_paginated_boost_recipients_with_children_request) + print("The response of BoostsApi->boost_get_paginated_boost_recipients_with_children:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_get_paginated_boost_recipients_with_children: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_get_paginated_boost_recipients_with_children_request** | [**BoostGetPaginatedBoostRecipientsWithChildrenRequest**](BoostGetPaginatedBoostRecipientsWithChildrenRequest.md)| | + +### Return type + +[**BoostGetPaginatedBoostRecipientsWithChildren200Response**](BoostGetPaginatedBoostRecipientsWithChildren200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **boost_get_paginated_boosts** > BoostGetPaginatedBoosts200Response boost_get_paginated_boosts(boost_get_paginated_boosts_request=boost_get_paginated_boosts_request) @@ -2286,6 +2872,89 @@ Name | Type | Description | Notes [[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) +# **boost_get_skills_available_for_boost** +> List[BoostGetSkillsAvailableForBoost200ResponseInner] boost_get_skills_available_for_boost(uri) + +List available skills for a boost + +Returns skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + uri = 'uri_example' # str | + + try: + # List available skills for a boost + api_response = api_instance.boost_get_skills_available_for_boost(uri) + print("The response of BoostsApi->boost_get_skills_available_for_boost:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_get_skills_available_for_boost: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uri** | **str**| | + +### Return type + +[**List[BoostGetSkillsAvailableForBoost200ResponseInner]**](BoostGetSkillsAvailableForBoost200ResponseInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + # **boost_make_boost_parent** > bool boost_make_boost_parent(boost_make_boost_parent_request) @@ -2369,7 +3038,7 @@ Name | Type | Description | Notes [[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) # **boost_remove_boost_admin** -> bool boost_remove_boost_admin(boost_add_boost_admin_request) +> bool boost_remove_boost_admin(boost_remove_boost_admin_request) Remove a Boost admin @@ -2381,7 +3050,7 @@ This route removes an admin from a boost ```python import openapi_client -from openapi_client.models.boost_add_boost_admin_request import BoostAddBoostAdminRequest +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest from openapi_client.rest import ApiException from pprint import pprint @@ -2405,11 +3074,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - boost_add_boost_admin_request = openapi_client.BoostAddBoostAdminRequest() # BoostAddBoostAdminRequest | + boost_remove_boost_admin_request = openapi_client.BoostRemoveBoostAdminRequest() # BoostRemoveBoostAdminRequest | try: # Remove a Boost admin - api_response = api_instance.boost_remove_boost_admin(boost_add_boost_admin_request) + api_response = api_instance.boost_remove_boost_admin(boost_remove_boost_admin_request) print("The response of BoostsApi->boost_remove_boost_admin:\n") pprint(api_response) except Exception as e: @@ -2423,7 +3092,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **boost_add_boost_admin_request** | [**BoostAddBoostAdminRequest**](BoostAddBoostAdminRequest.md)| | + **boost_remove_boost_admin_request** | [**BoostRemoveBoostAdminRequest**](BoostRemoveBoostAdminRequest.md)| | ### Return type @@ -2451,7 +3120,7 @@ Name | Type | Description | Notes [[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) # **boost_remove_boost_parent** -> bool boost_remove_boost_parent(boost_make_boost_parent_request) +> bool boost_remove_boost_parent(boost_remove_boost_parent_request) Remove Boost Parent @@ -2463,7 +3132,7 @@ This endpoint removes a parent/child relationship between two boosts ```python import openapi_client -from openapi_client.models.boost_make_boost_parent_request import BoostMakeBoostParentRequest +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest from openapi_client.rest import ApiException from pprint import pprint @@ -2487,11 +3156,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) - boost_make_boost_parent_request = openapi_client.BoostMakeBoostParentRequest() # BoostMakeBoostParentRequest | + boost_remove_boost_parent_request = openapi_client.BoostRemoveBoostParentRequest() # BoostRemoveBoostParentRequest | try: # Remove Boost Parent - api_response = api_instance.boost_remove_boost_parent(boost_make_boost_parent_request) + api_response = api_instance.boost_remove_boost_parent(boost_remove_boost_parent_request) print("The response of BoostsApi->boost_remove_boost_parent:\n") pprint(api_response) except Exception as e: @@ -2505,7 +3174,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **boost_make_boost_parent_request** | [**BoostMakeBoostParentRequest**](BoostMakeBoostParentRequest.md)| | + **boost_remove_boost_parent_request** | [**BoostRemoveBoostParentRequest**](BoostRemoveBoostParentRequest.md)| | ### Return type @@ -2532,6 +3201,89 @@ Name | Type | Description | Notes [[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) +# **boost_search_skills_available_for_boost** +> BoostSearchSkillsAvailableForBoost200Response boost_search_skills_available_for_boost(boost_search_skills_available_for_boost_request) + +Search available skills for a boost + +Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Searches skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.BoostsApi(api_client) + boost_search_skills_available_for_boost_request = openapi_client.BoostSearchSkillsAvailableForBoostRequest() # BoostSearchSkillsAvailableForBoostRequest | + + try: + # Search available skills for a boost + api_response = api_instance.boost_search_skills_available_for_boost(boost_search_skills_available_for_boost_request) + print("The response of BoostsApi->boost_search_skills_available_for_boost:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BoostsApi->boost_search_skills_available_for_boost: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_search_skills_available_for_boost_request** | [**BoostSearchSkillsAvailableForBoostRequest**](BoostSearchSkillsAvailableForBoostRequest.md)| | + +### Return type + +[**BoostSearchSkillsAvailableForBoost200Response**](BoostSearchSkillsAvailableForBoost200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **boost_send_boost** > str boost_send_boost(profile_id, boost_send_boost_request) @@ -2865,7 +3617,7 @@ Name | Type | Description | Notes [[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) # **boost_update_other_boost_permissions** -> bool boost_update_other_boost_permissions(profile_id, boost_update_boost_permissions_request) +> bool boost_update_other_boost_permissions(profile_id, boost_update_other_boost_permissions_request) Update other profile's boost permissions @@ -2877,7 +3629,7 @@ This endpoint updates permission metadata about a boost for another user ```python import openapi_client -from openapi_client.models.boost_update_boost_permissions_request import BoostUpdateBoostPermissionsRequest +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest from openapi_client.rest import ApiException from pprint import pprint @@ -2902,11 +3654,11 @@ with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BoostsApi(api_client) profile_id = 'profile_id_example' # str | - boost_update_boost_permissions_request = openapi_client.BoostUpdateBoostPermissionsRequest() # BoostUpdateBoostPermissionsRequest | + boost_update_other_boost_permissions_request = openapi_client.BoostUpdateOtherBoostPermissionsRequest() # BoostUpdateOtherBoostPermissionsRequest | try: # Update other profile's boost permissions - api_response = api_instance.boost_update_other_boost_permissions(profile_id, boost_update_boost_permissions_request) + api_response = api_instance.boost_update_other_boost_permissions(profile_id, boost_update_other_boost_permissions_request) print("The response of BoostsApi->boost_update_other_boost_permissions:\n") pprint(api_response) except Exception as e: @@ -2921,7 +3673,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **profile_id** | **str**| | - **boost_update_boost_permissions_request** | [**BoostUpdateBoostPermissionsRequest**](BoostUpdateBoostPermissionsRequest.md)| | + **boost_update_other_boost_permissions_request** | [**BoostUpdateOtherBoostPermissionsRequest**](BoostUpdateOtherBoostPermissionsRequest.md)| | ### Return type diff --git a/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHook.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHook.md index 6af18e808f..5d0de3a496 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHook.md +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**data** | [**ClaimHookCreateClaimHookRequestHookOneOf1Data**](ClaimHookCreateClaimHookRequestHookOneOf1Data.md) | | +**data** | [**ClaimHookCreateClaimHookRequestHookOneOf2Data**](ClaimHookCreateClaimHookRequestHookOneOf2Data.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2.md new file mode 100644 index 0000000000..37a5198114 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2.md @@ -0,0 +1,30 @@ +# ClaimHookCreateClaimHookRequestHookOneOf2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**data** | [**ClaimHookCreateClaimHookRequestHookOneOf2Data**](ClaimHookCreateClaimHookRequestHookOneOf2Data.md) | | + +## Example + +```python +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2 import ClaimHookCreateClaimHookRequestHookOneOf2 + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookCreateClaimHookRequestHookOneOf2 from a JSON string +claim_hook_create_claim_hook_request_hook_one_of2_instance = ClaimHookCreateClaimHookRequestHookOneOf2.from_json(json) +# print the JSON string representation of the object +print(ClaimHookCreateClaimHookRequestHookOneOf2.to_json()) + +# convert the object into a dict +claim_hook_create_claim_hook_request_hook_one_of2_dict = claim_hook_create_claim_hook_request_hook_one_of2_instance.to_dict() +# create an instance of ClaimHookCreateClaimHookRequestHookOneOf2 from a dict +claim_hook_create_claim_hook_request_hook_one_of2_from_dict = ClaimHookCreateClaimHookRequestHookOneOf2.from_dict(claim_hook_create_claim_hook_request_hook_one_of2_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md new file mode 100644 index 0000000000..4765d87a4c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookCreateClaimHookRequestHookOneOf2Data.md @@ -0,0 +1,30 @@ +# ClaimHookCreateClaimHookRequestHookOneOf2Data + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_uri** | **str** | | +**target_uri** | **str** | | + +## Example + +```python +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2_data import ClaimHookCreateClaimHookRequestHookOneOf2Data + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookCreateClaimHookRequestHookOneOf2Data from a JSON string +claim_hook_create_claim_hook_request_hook_one_of2_data_instance = ClaimHookCreateClaimHookRequestHookOneOf2Data.from_json(json) +# print the JSON string representation of the object +print(ClaimHookCreateClaimHookRequestHookOneOf2Data.to_json()) + +# convert the object into a dict +claim_hook_create_claim_hook_request_hook_one_of2_data_dict = claim_hook_create_claim_hook_request_hook_one_of2_data_instance.to_dict() +# create an instance of ClaimHookCreateClaimHookRequestHookOneOf2Data from a dict +claim_hook_create_claim_hook_request_hook_one_of2_data_from_dict = ClaimHookCreateClaimHookRequestHookOneOf2Data.from_dict(claim_hook_create_claim_hook_request_hook_one_of2_data_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md index 35f6e38ea3..d537c9d955 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **created_at** | **str** | | **updated_at** | **str** | | **type** | **str** | | -**data** | [**ClaimHookCreateClaimHookRequestHookOneOf1Data**](ClaimHookCreateClaimHookRequestHookOneOf1Data.md) | | +**data** | [**ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data**](ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md new file mode 100644 index 0000000000..cac3b2fb53 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.md @@ -0,0 +1,30 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**data** | [**ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData**](ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md) | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md new file mode 100644 index 0000000000..cc6ccd0644 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.md @@ -0,0 +1,30 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**data** | [**ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data**](ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md) | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md new file mode 100644 index 0000000000..b1e1722bd3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.md @@ -0,0 +1,30 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_uri** | **str** | | +**target_uri** | **str** | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md new file mode 100644 index 0000000000..991bf9567e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.md @@ -0,0 +1,30 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**data** | [**ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data**](ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md) | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md new file mode 100644 index 0000000000..45c3c4c1de --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.md @@ -0,0 +1,30 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_uri** | **str** | | +**target_uri** | **str** | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md new file mode 100644 index 0000000000..07379f667f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.md @@ -0,0 +1,31 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**claim_uri** | **str** | | +**target_uri** | **str** | | +**permissions** | [**ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions**](ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md) | | + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md new file mode 100644 index 0000000000..36971461f4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.md @@ -0,0 +1,40 @@ +# ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | | [optional] +**can_edit** | **bool** | | [optional] +**can_issue** | **bool** | | [optional] +**can_revoke** | **bool** | | [optional] +**can_manage_permissions** | **bool** | | [optional] +**can_issue_children** | **str** | | [optional] +**can_create_children** | **str** | | [optional] +**can_edit_children** | **str** | | [optional] +**can_revoke_children** | **str** | | [optional] +**can_manage_children_permissions** | **str** | | [optional] +**can_manage_children_profiles** | **bool** | | [optional] +**can_view_analytics** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from a JSON string +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions_instance = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.from_json(json) +# print the JSON string representation of the object +print(ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.to_json()) + +# convert the object into a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions_dict = claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions_instance.to_dict() +# create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from a dict +claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions_from_dict = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.from_dict(claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQuery.md index e6961e7711..3850866149 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQuery.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**data** | [**ClaimHookGetClaimHooksForBoostRequestQueryData**](ClaimHookGetClaimHooksForBoostRequestQueryData.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | +**data** | [**ClaimHookGetClaimHooksForBoostRequestQueryData**](ClaimHookGetClaimHooksForBoostRequestQueryData.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md index 40ffed24ce..6cada9a8fd 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryData.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_uri** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**target_uri** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**claim_uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**target_uri** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] **permissions** | [**ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions**](ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md index 3b928966ba..723224160c 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md +++ b/packages/open-api-lcn-clients/python-client/docs/ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.md @@ -5,16 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**role** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**role** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] **can_edit** | **bool** | | [optional] **can_issue** | **bool** | | [optional] **can_revoke** | **bool** | | [optional] **can_manage_permissions** | **bool** | | [optional] -**can_issue_children** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**can_create_children** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**can_edit_children** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**can_revoke_children** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] -**can_manage_children_permissions** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**can_issue_children** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**can_create_children** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**can_edit_children** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**can_revoke_children** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**can_manage_children_permissions** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] **can_manage_children_profiles** | **bool** | | [optional] **can_view_analytics** | **bool** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/ContactMethodsApi.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsApi.md index 5f48a69e29..2013e5a3af 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContactMethodsApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsApi.md @@ -5,10 +5,13 @@ All URIs are relative to *https://network.learncard.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**contact_methods_add_contact_method**](ContactMethodsApi.md#contact_methods_add_contact_method) | **POST** /profile/contact-methods/add | Add Contact Method +[**contact_methods_create_contact_method_session**](ContactMethodsApi.md#contact_methods_create_contact_method_session) | **POST** /contact-methods/session | Create Contact Method Session [**contact_methods_get_my_contact_methods**](ContactMethodsApi.md#contact_methods_get_my_contact_methods) | **GET** /profile/contact-methods | Get My Contact Methods [**contact_methods_remove_contact_method**](ContactMethodsApi.md#contact_methods_remove_contact_method) | **POST** /profile/contact-methods/remove | Remove Contact Method +[**contact_methods_send_challenge**](ContactMethodsApi.md#contact_methods_send_challenge) | **POST** /contact-methods/challenge | Send Contact Method Challenge (OTP) [**contact_methods_set_primary_contact_method**](ContactMethodsApi.md#contact_methods_set_primary_contact_method) | **POST** /profile/contact-methods/set-primary | Set Primary Contact Method [**contact_methods_verify_contact_method**](ContactMethodsApi.md#contact_methods_verify_contact_method) | **POST** /profile/contact-methods/verify | Verify Contact Method +[**contact_methods_verify_with_credential**](ContactMethodsApi.md#contact_methods_verify_with_credential) | **POST** /profile/contact-methods/verify-with-credential | Verify Contact Method With Credential # **contact_methods_add_contact_method** @@ -94,6 +97,77 @@ Name | Type | Description | Notes [[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) +# **contact_methods_create_contact_method_session** +> ContactMethodsCreateContactMethodSession200Response contact_methods_create_contact_method_session(contact_methods_create_contact_method_session_request) + +Create Contact Method Session + +Creates a short-lived claim session for the specified contact method and returns a claim URL that can be used to claim pending inbox credentials. + +### Example + + +```python +import openapi_client +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContactMethodsApi(api_client) + contact_methods_create_contact_method_session_request = openapi_client.ContactMethodsCreateContactMethodSessionRequest() # ContactMethodsCreateContactMethodSessionRequest | + + try: + # Create Contact Method Session + api_response = api_instance.contact_methods_create_contact_method_session(contact_methods_create_contact_method_session_request) + print("The response of ContactMethodsApi->contact_methods_create_contact_method_session:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContactMethodsApi->contact_methods_create_contact_method_session: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contact_methods_create_contact_method_session_request** | [**ContactMethodsCreateContactMethodSessionRequest**](ContactMethodsCreateContactMethodSessionRequest.md)| | + +### Return type + +[**ContactMethodsCreateContactMethodSession200Response**](ContactMethodsCreateContactMethodSession200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**500** | Internal server error | - | + +[[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) + # **contact_methods_get_my_contact_methods** > List[ContactMethodsGetMyContactMethods200ResponseInner] contact_methods_get_my_contact_methods() @@ -172,7 +246,7 @@ This endpoint does not need any parameter. [[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) # **contact_methods_remove_contact_method** -> ContactMethodsSetPrimaryContactMethod200Response contact_methods_remove_contact_method(claim_hook_delete_claim_hook_request) +> ContactMethodsSendChallenge200Response contact_methods_remove_contact_method(contact_methods_remove_contact_method_request) Remove Contact Method @@ -184,8 +258,8 @@ Remove a contact method from the profile ```python import openapi_client -from openapi_client.models.claim_hook_delete_claim_hook_request import ClaimHookDeleteClaimHookRequest -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from openapi_client.rest import ApiException from pprint import pprint @@ -209,11 +283,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ContactMethodsApi(api_client) - claim_hook_delete_claim_hook_request = openapi_client.ClaimHookDeleteClaimHookRequest() # ClaimHookDeleteClaimHookRequest | + contact_methods_remove_contact_method_request = openapi_client.ContactMethodsRemoveContactMethodRequest() # ContactMethodsRemoveContactMethodRequest | try: # Remove Contact Method - api_response = api_instance.contact_methods_remove_contact_method(claim_hook_delete_claim_hook_request) + api_response = api_instance.contact_methods_remove_contact_method(contact_methods_remove_contact_method_request) print("The response of ContactMethodsApi->contact_methods_remove_contact_method:\n") pprint(api_response) except Exception as e: @@ -227,11 +301,11 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **claim_hook_delete_claim_hook_request** | [**ClaimHookDeleteClaimHookRequest**](ClaimHookDeleteClaimHookRequest.md)| | + **contact_methods_remove_contact_method_request** | [**ContactMethodsRemoveContactMethodRequest**](ContactMethodsRemoveContactMethodRequest.md)| | ### Return type -[**ContactMethodsSetPrimaryContactMethod200Response**](ContactMethodsSetPrimaryContactMethod200Response.md) +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) ### Authorization @@ -254,8 +328,79 @@ Name | Type | Description | Notes [[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) +# **contact_methods_send_challenge** +> ContactMethodsSendChallenge200Response contact_methods_send_challenge(contact_methods_send_challenge_request) + +Send Contact Method Challenge (OTP) + +Generates a 6-digit OTP and sends it to the specified contact method, caching it for short-lived verification. + +### Example + + +```python +import openapi_client +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContactMethodsApi(api_client) + contact_methods_send_challenge_request = openapi_client.ContactMethodsSendChallengeRequest() # ContactMethodsSendChallengeRequest | + + try: + # Send Contact Method Challenge (OTP) + api_response = api_instance.contact_methods_send_challenge(contact_methods_send_challenge_request) + print("The response of ContactMethodsApi->contact_methods_send_challenge:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContactMethodsApi->contact_methods_send_challenge: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contact_methods_send_challenge_request** | [**ContactMethodsSendChallengeRequest**](ContactMethodsSendChallengeRequest.md)| | + +### Return type + +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**500** | Internal server error | - | + +[[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) + # **contact_methods_set_primary_contact_method** -> ContactMethodsSetPrimaryContactMethod200Response contact_methods_set_primary_contact_method(contact_methods_set_primary_contact_method_request) +> ContactMethodsSendChallenge200Response contact_methods_set_primary_contact_method(contact_methods_set_primary_contact_method_request) Set Primary Contact Method @@ -267,7 +412,7 @@ Set a contact method as the primary one for the profile ```python import openapi_client -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from openapi_client.models.contact_methods_set_primary_contact_method_request import ContactMethodsSetPrimaryContactMethodRequest from openapi_client.rest import ApiException from pprint import pprint @@ -314,7 +459,7 @@ Name | Type | Description | Notes ### Return type -[**ContactMethodsSetPrimaryContactMethod200Response**](ContactMethodsSetPrimaryContactMethod200Response.md) +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) ### Authorization @@ -338,7 +483,7 @@ Name | Type | Description | Notes [[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) # **contact_methods_verify_contact_method** -> ContactMethodsVerifyContactMethod200Response contact_methods_verify_contact_method(contact_methods_verify_contact_method_request) +> ContactMethodsVerifyWithCredential200Response contact_methods_verify_contact_method(contact_methods_verify_contact_method_request) Verify Contact Method @@ -350,8 +495,8 @@ Verify a contact method using the verification token ```python import openapi_client -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response from openapi_client.models.contact_methods_verify_contact_method_request import ContactMethodsVerifyContactMethodRequest +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response from openapi_client.rest import ApiException from pprint import pprint @@ -397,7 +542,90 @@ Name | Type | Description | Notes ### Return type -[**ContactMethodsVerifyContactMethod200Response**](ContactMethodsVerifyContactMethod200Response.md) +[**ContactMethodsVerifyWithCredential200Response**](ContactMethodsVerifyWithCredential200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **contact_methods_verify_with_credential** +> ContactMethodsVerifyWithCredential200Response contact_methods_verify_with_credential(contact_methods_verify_with_credential_request) + +Verify Contact Method With Credential + +Verify ownership of a contact method using a cryptographically verified proof-of-login Verifiable Presentation JWT. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContactMethodsApi(api_client) + contact_methods_verify_with_credential_request = openapi_client.ContactMethodsVerifyWithCredentialRequest() # ContactMethodsVerifyWithCredentialRequest | + + try: + # Verify Contact Method With Credential + api_response = api_instance.contact_methods_verify_with_credential(contact_methods_verify_with_credential_request) + print("The response of ContactMethodsApi->contact_methods_verify_with_credential:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContactMethodsApi->contact_methods_verify_with_credential: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contact_methods_verify_with_credential_request** | [**ContactMethodsVerifyWithCredentialRequest**](ContactMethodsVerifyWithCredentialRequest.md)| | + +### Return type + +[**ContactMethodsVerifyWithCredential200Response**](ContactMethodsVerifyWithCredential200Response.md) ### Authorization diff --git a/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSession200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSession200Response.md new file mode 100644 index 0000000000..242ca47a3e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSession200Response.md @@ -0,0 +1,29 @@ +# ContactMethodsCreateContactMethodSession200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**session_jwt** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsCreateContactMethodSession200Response from a JSON string +contact_methods_create_contact_method_session200_response_instance = ContactMethodsCreateContactMethodSession200Response.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsCreateContactMethodSession200Response.to_json()) + +# convert the object into a dict +contact_methods_create_contact_method_session200_response_dict = contact_methods_create_contact_method_session200_response_instance.to_dict() +# create an instance of ContactMethodsCreateContactMethodSession200Response from a dict +contact_methods_create_contact_method_session200_response_from_dict = ContactMethodsCreateContactMethodSession200Response.from_dict(contact_methods_create_contact_method_session200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequest.md new file mode 100644 index 0000000000..be299fba03 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequest.md @@ -0,0 +1,30 @@ +# ContactMethodsCreateContactMethodSessionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contact_method** | [**ContactMethodsCreateContactMethodSessionRequestContactMethod**](ContactMethodsCreateContactMethodSessionRequestContactMethod.md) | | +**otp_challenge** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsCreateContactMethodSessionRequest from a JSON string +contact_methods_create_contact_method_session_request_instance = ContactMethodsCreateContactMethodSessionRequest.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsCreateContactMethodSessionRequest.to_json()) + +# convert the object into a dict +contact_methods_create_contact_method_session_request_dict = contact_methods_create_contact_method_session_request_instance.to_dict() +# create an instance of ContactMethodsCreateContactMethodSessionRequest from a dict +contact_methods_create_contact_method_session_request_from_dict = ContactMethodsCreateContactMethodSessionRequest.from_dict(contact_methods_create_contact_method_session_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md new file mode 100644 index 0000000000..1814ce0ba5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsCreateContactMethodSessionRequestContactMethod.md @@ -0,0 +1,30 @@ +# ContactMethodsCreateContactMethodSessionRequestContactMethod + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | +**type** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_create_contact_method_session_request_contact_method import ContactMethodsCreateContactMethodSessionRequestContactMethod + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsCreateContactMethodSessionRequestContactMethod from a JSON string +contact_methods_create_contact_method_session_request_contact_method_instance = ContactMethodsCreateContactMethodSessionRequestContactMethod.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsCreateContactMethodSessionRequestContactMethod.to_json()) + +# convert the object into a dict +contact_methods_create_contact_method_session_request_contact_method_dict = contact_methods_create_contact_method_session_request_contact_method_instance.to_dict() +# create an instance of ContactMethodsCreateContactMethodSessionRequestContactMethod from a dict +contact_methods_create_contact_method_session_request_contact_method_from_dict = ContactMethodsCreateContactMethodSessionRequestContactMethod.from_dict(contact_methods_create_contact_method_session_request_contact_method_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsRemoveContactMethodRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsRemoveContactMethodRequest.md new file mode 100644 index 0000000000..d742a58c9c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsRemoveContactMethodRequest.md @@ -0,0 +1,29 @@ +# ContactMethodsRemoveContactMethodRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsRemoveContactMethodRequest from a JSON string +contact_methods_remove_contact_method_request_instance = ContactMethodsRemoveContactMethodRequest.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsRemoveContactMethodRequest.to_json()) + +# convert the object into a dict +contact_methods_remove_contact_method_request_dict = contact_methods_remove_contact_method_request_instance.to_dict() +# create an instance of ContactMethodsRemoveContactMethodRequest from a dict +contact_methods_remove_contact_method_request_from_dict = ContactMethodsRemoveContactMethodRequest.from_dict(contact_methods_remove_contact_method_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallenge200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallenge200Response.md new file mode 100644 index 0000000000..f64c07638d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallenge200Response.md @@ -0,0 +1,29 @@ +# ContactMethodsSendChallenge200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsSendChallenge200Response from a JSON string +contact_methods_send_challenge200_response_instance = ContactMethodsSendChallenge200Response.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsSendChallenge200Response.to_json()) + +# convert the object into a dict +contact_methods_send_challenge200_response_dict = contact_methods_send_challenge200_response_instance.to_dict() +# create an instance of ContactMethodsSendChallenge200Response from a dict +contact_methods_send_challenge200_response_from_dict = ContactMethodsSendChallenge200Response.from_dict(contact_methods_send_challenge200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequest.md new file mode 100644 index 0000000000..f24ee4d7c1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequest.md @@ -0,0 +1,31 @@ +# ContactMethodsSendChallengeRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | +**type** | **str** | | +**configuration** | [**ContactMethodsSendChallengeRequestConfiguration**](ContactMethodsSendChallengeRequestConfiguration.md) | | + +## Example + +```python +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsSendChallengeRequest from a JSON string +contact_methods_send_challenge_request_instance = ContactMethodsSendChallengeRequest.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsSendChallengeRequest.to_json()) + +# convert the object into a dict +contact_methods_send_challenge_request_dict = contact_methods_send_challenge_request_instance.to_dict() +# create an instance of ContactMethodsSendChallengeRequest from a dict +contact_methods_send_challenge_request_from_dict = ContactMethodsSendChallengeRequest.from_dict(contact_methods_send_challenge_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequestConfiguration.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequestConfiguration.md new file mode 100644 index 0000000000..29b744c547 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSendChallengeRequestConfiguration.md @@ -0,0 +1,29 @@ +# ContactMethodsSendChallengeRequestConfiguration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publishable_key** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_send_challenge_request_configuration import ContactMethodsSendChallengeRequestConfiguration + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsSendChallengeRequestConfiguration from a JSON string +contact_methods_send_challenge_request_configuration_instance = ContactMethodsSendChallengeRequestConfiguration.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsSendChallengeRequestConfiguration.to_json()) + +# convert the object into a dict +contact_methods_send_challenge_request_configuration_dict = contact_methods_send_challenge_request_configuration_instance.to_dict() +# create an instance of ContactMethodsSendChallengeRequestConfiguration from a dict +contact_methods_send_challenge_request_configuration_from_dict = ContactMethodsSendChallengeRequestConfiguration.from_dict(contact_methods_send_challenge_request_configuration_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSetPrimaryContactMethod200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSetPrimaryContactMethod200Response.md deleted file mode 100644 index 6e4dc7d8cb..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/ContactMethodsSetPrimaryContactMethod200Response.md +++ /dev/null @@ -1,29 +0,0 @@ -# ContactMethodsSetPrimaryContactMethod200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | - -## Example - -```python -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ContactMethodsSetPrimaryContactMethod200Response from a JSON string -contact_methods_set_primary_contact_method200_response_instance = ContactMethodsSetPrimaryContactMethod200Response.from_json(json) -# print the JSON string representation of the object -print(ContactMethodsSetPrimaryContactMethod200Response.to_json()) - -# convert the object into a dict -contact_methods_set_primary_contact_method200_response_dict = contact_methods_set_primary_contact_method200_response_instance.to_dict() -# create an instance of ContactMethodsSetPrimaryContactMethod200Response from a dict -contact_methods_set_primary_contact_method200_response_from_dict = ContactMethodsSetPrimaryContactMethod200Response.from_dict(contact_methods_set_primary_contact_method200_response_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyContactMethod200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyContactMethod200Response.md deleted file mode 100644 index b4773a0f67..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyContactMethod200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# ContactMethodsVerifyContactMethod200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | -**contact_method** | [**ContactMethodsGetMyContactMethods200ResponseInner**](ContactMethodsGetMyContactMethods200ResponseInner.md) | | - -## Example - -```python -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ContactMethodsVerifyContactMethod200Response from a JSON string -contact_methods_verify_contact_method200_response_instance = ContactMethodsVerifyContactMethod200Response.from_json(json) -# print the JSON string representation of the object -print(ContactMethodsVerifyContactMethod200Response.to_json()) - -# convert the object into a dict -contact_methods_verify_contact_method200_response_dict = contact_methods_verify_contact_method200_response_instance.to_dict() -# create an instance of ContactMethodsVerifyContactMethod200Response from a dict -contact_methods_verify_contact_method200_response_from_dict = ContactMethodsVerifyContactMethod200Response.from_dict(contact_methods_verify_contact_method200_response_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200Response.md new file mode 100644 index 0000000000..6040c4b412 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200Response.md @@ -0,0 +1,30 @@ +# ContactMethodsVerifyWithCredential200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | +**contact_method** | [**ContactMethodsVerifyWithCredential200ResponseContactMethod**](ContactMethodsVerifyWithCredential200ResponseContactMethod.md) | | + +## Example + +```python +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsVerifyWithCredential200Response from a JSON string +contact_methods_verify_with_credential200_response_instance = ContactMethodsVerifyWithCredential200Response.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsVerifyWithCredential200Response.to_json()) + +# convert the object into a dict +contact_methods_verify_with_credential200_response_dict = contact_methods_verify_with_credential200_response_instance.to_dict() +# create an instance of ContactMethodsVerifyWithCredential200Response from a dict +contact_methods_verify_with_credential200_response_from_dict = ContactMethodsVerifyWithCredential200Response.from_dict(contact_methods_verify_with_credential200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md new file mode 100644 index 0000000000..117d2bbcee --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethod.md @@ -0,0 +1,35 @@ +# ContactMethodsVerifyWithCredential200ResponseContactMethod + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | +**id** | **str** | | +**is_verified** | **bool** | | +**verified_at** | **str** | | [optional] +**is_primary** | **bool** | | +**created_at** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method import ContactMethodsVerifyWithCredential200ResponseContactMethod + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethod from a JSON string +contact_methods_verify_with_credential200_response_contact_method_instance = ContactMethodsVerifyWithCredential200ResponseContactMethod.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsVerifyWithCredential200ResponseContactMethod.to_json()) + +# convert the object into a dict +contact_methods_verify_with_credential200_response_contact_method_dict = contact_methods_verify_with_credential200_response_contact_method_instance.to_dict() +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethod from a dict +contact_methods_verify_with_credential200_response_contact_method_from_dict = ContactMethodsVerifyWithCredential200ResponseContactMethod.from_dict(contact_methods_verify_with_credential200_response_contact_method_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md new file mode 100644 index 0000000000..076c24d0ea --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.md @@ -0,0 +1,35 @@ +# ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | +**id** | **str** | | +**is_verified** | **bool** | | +**verified_at** | **str** | | [optional] +**is_primary** | **bool** | | +**created_at** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf from a JSON string +contact_methods_verify_with_credential200_response_contact_method_one_of_instance = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.to_json()) + +# convert the object into a dict +contact_methods_verify_with_credential200_response_contact_method_one_of_dict = contact_methods_verify_with_credential200_response_contact_method_one_of_instance.to_dict() +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf from a dict +contact_methods_verify_with_credential200_response_contact_method_one_of_from_dict = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.from_dict(contact_methods_verify_with_credential200_response_contact_method_one_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md new file mode 100644 index 0000000000..edc3fa8b31 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.md @@ -0,0 +1,35 @@ +# ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | +**id** | **str** | | +**is_verified** | **bool** | | +**verified_at** | **str** | | [optional] +**is_primary** | **bool** | | +**created_at** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of1 import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 from a JSON string +contact_methods_verify_with_credential200_response_contact_method_one_of1_instance = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.to_json()) + +# convert the object into a dict +contact_methods_verify_with_credential200_response_contact_method_one_of1_dict = contact_methods_verify_with_credential200_response_contact_method_one_of1_instance.to_dict() +# create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 from a dict +contact_methods_verify_with_credential200_response_contact_method_one_of1_from_dict = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.from_dict(contact_methods_verify_with_credential200_response_contact_method_one_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredentialRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredentialRequest.md new file mode 100644 index 0000000000..f84e2e8ba1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContactMethodsVerifyWithCredentialRequest.md @@ -0,0 +1,29 @@ +# ContactMethodsVerifyWithCredentialRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**proof_of_login_jwt** | **str** | | + +## Example + +```python +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContactMethodsVerifyWithCredentialRequest from a JSON string +contact_methods_verify_with_credential_request_instance = ContactMethodsVerifyWithCredentialRequest.from_json(json) +# print the JSON string representation of the object +print(ContactMethodsVerifyWithCredentialRequest.to_json()) + +# convert the object into a dict +contact_methods_verify_with_credential_request_dict = contact_methods_verify_with_credential_request_instance.to_dict() +# create an instance of ContactMethodsVerifyWithCredentialRequest from a dict +contact_methods_verify_with_credential_request_from_dict = ContactMethodsVerifyWithCredentialRequest.from_dict(contact_methods_verify_with_credential_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequest.md index 4632933d67..80b43c91ad 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **contract_uri** | **str** | | -**autoboosts** | [**List[ContractsCreateConsentFlowContractRequestAutoboostsInner]**](ContractsCreateConsentFlowContractRequestAutoboostsInner.md) | | +**autoboosts** | [**List[ContractsAddAutoBoostsToContractRequestAutoboostsInner]**](ContractsAddAutoBoostsToContractRequestAutoboostsInner.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md new file mode 100644 index 0000000000..b43ad546a8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsAddAutoBoostsToContractRequestAutoboostsInner.md @@ -0,0 +1,30 @@ +# ContractsAddAutoBoostsToContractRequestAutoboostsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**boost_uri** | **str** | | +**signing_authority** | [**ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority**](ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md) | | + +## Example + +```python +from openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner import ContractsAddAutoBoostsToContractRequestAutoboostsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsAddAutoBoostsToContractRequestAutoboostsInner from a JSON string +contracts_add_auto_boosts_to_contract_request_autoboosts_inner_instance = ContractsAddAutoBoostsToContractRequestAutoboostsInner.from_json(json) +# print the JSON string representation of the object +print(ContractsAddAutoBoostsToContractRequestAutoboostsInner.to_json()) + +# convert the object into a dict +contracts_add_auto_boosts_to_contract_request_autoboosts_inner_dict = contracts_add_auto_boosts_to_contract_request_autoboosts_inner_instance.to_dict() +# create an instance of ContractsAddAutoBoostsToContractRequestAutoboostsInner from a dict +contracts_add_auto_boosts_to_contract_request_autoboosts_inner_from_dict = ContractsAddAutoBoostsToContractRequestAutoboostsInner.from_dict(contracts_add_auto_boosts_to_contract_request_autoboosts_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsApi.md b/packages/open-api-lcn-clients/python-client/docs/ContractsApi.md index 8660eada74..f15789f99a 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsApi.md @@ -5,9 +5,12 @@ All URIs are relative to *https://network.learncard.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**contracts_add_auto_boosts_to_contract**](ContractsApi.md#contracts_add_auto_boosts_to_contract) | **POST** /consent-flow-contracts/autoboosts/add | Add autoboosts to a contract +[**contracts_cancel_contract_request**](ContractsApi.md#contracts_cancel_contract_request) | **POST** /consent-flow-contracts/cancel-request | Cancels/removes a contract request [**contracts_consent_to_contract**](ContractsApi.md#contracts_consent_to_contract) | **POST** /consent-flow-contract/consent | Consent To Contract [**contracts_create_consent_flow_contract**](ContractsApi.md#contracts_create_consent_flow_contract) | **POST** /consent-flow-contract | Create Consent Flow Contract [**contracts_delete_consent_flow_contract**](ContractsApi.md#contracts_delete_consent_flow_contract) | **DELETE** /consent-flow-contract | Delete a Consent Flow Contract +[**contracts_forward_contract_request_to_profile**](ContractsApi.md#contracts_forward_contract_request_to_profile) | **POST** /consent-flow-contracts/forward-request-to-profile | Forward a contract request +[**contracts_get_all_contract_requests_for_profile**](ContractsApi.md#contracts_get_all_contract_requests_for_profile) | **GET** /consent-flow-contracts/all-requests-for-profile | Get all contract requests for a target profile [**contracts_get_all_credentials_for_terms**](ContractsApi.md#contracts_get_all_credentials_for_terms) | **POST** /consent-flow-contracts/credentials | Get all credentials written to any terms [**contracts_get_consent_flow_contract**](ContractsApi.md#contracts_get_consent_flow_contract) | **GET** /consent-flow-contract | Get Consent Flow Contracts [**contracts_get_consent_flow_contracts**](ContractsApi.md#contracts_get_consent_flow_contracts) | **POST** /consent-flow-contracts | Get Consent Flow Contracts @@ -15,9 +18,14 @@ Method | HTTP request | Description [**contracts_get_consented_data**](ContractsApi.md#contracts_get_consented_data) | **POST** /consent-flow-contract/data | Get the data that has been consented for all of your contracts [**contracts_get_consented_data_for_contract**](ContractsApi.md#contracts_get_consented_data_for_contract) | **POST** /consent-flow-contract/data-for-contract | Get the data that has been consented for a contract [**contracts_get_consented_data_for_did**](ContractsApi.md#contracts_get_consented_data_for_did) | **POST** /consent-flow-contract/data-for-did | Get the data that has been consented by a did +[**contracts_get_contract_sent_requests**](ContractsApi.md#contracts_get_contract_sent_requests) | **GET** /consent-flow-contracts/sent-requests | Get requests sent for a given contract [**contracts_get_credentials_for_contract**](ContractsApi.md#contracts_get_credentials_for_contract) | **POST** /consent-flow-contract/credentials | Get credentials issued via a contract +[**contracts_get_request_status_for_profile**](ContractsApi.md#contracts_get_request_status_for_profile) | **GET** /consent-flow-contracts/request-status | Get request status for a specific profile under a contract [**contracts_get_terms_transaction_history**](ContractsApi.md#contracts_get_terms_transaction_history) | **POST** /consent-flow-contract/consent/history | Gets Transaction History +[**contracts_mark_contract_request_as_seen**](ContractsApi.md#contracts_mark_contract_request_as_seen) | **POST** /consent-flow-contracts/mark-request-as-seen | Marks a contract request as seen [**contracts_remove_auto_boosts_from_contract**](ContractsApi.md#contracts_remove_auto_boosts_from_contract) | **POST** /consent-flow-contracts/autoboosts/remove | Remove autoboosts from a contract +[**contracts_send_ai_insight_share_request**](ContractsApi.md#contracts_send_ai_insight_share_request) | **POST** /consent-flow-contracts/ai-insights/share-request | AI Insights, consent flow share-notifcation request +[**contracts_send_ai_insights_contract_request**](ContractsApi.md#contracts_send_ai_insights_contract_request) | **POST** /consent-flow-contracts/ai-insights/request | AI Insights, consent flow notifcation request [**contracts_sync_credentials_to_contract**](ContractsApi.md#contracts_sync_credentials_to_contract) | **POST** /consent-flow-contract/sync | Sync credentials to a contract [**contracts_update_consented_contract_terms**](ContractsApi.md#contracts_update_consented_contract_terms) | **POST** /consent-flow-contract/consent/update | Updates Contract Terms [**contracts_verify_consent**](ContractsApi.md#contracts_verify_consent) | **GET** /consent-flow-contract/verify | Verifies that a profile has consented to a contract @@ -108,8 +116,90 @@ Name | Type | Description | Notes [[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) +# **contracts_cancel_contract_request** +> bool contracts_cancel_contract_request(contracts_cancel_contract_request_request) + +Cancels/removes a contract request + +Removes a REQUESTED_FOR relationship, cancelling the request sent to the specified target profile. Only contract writers are authorized to perform this action. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_cancel_contract_request_request = openapi_client.ContractsCancelContractRequestRequest() # ContractsCancelContractRequestRequest | + + try: + # Cancels/removes a contract request + api_response = api_instance.contracts_cancel_contract_request(contracts_cancel_contract_request_request) + print("The response of ContractsApi->contracts_cancel_contract_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_cancel_contract_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_cancel_contract_request_request** | [**ContractsCancelContractRequestRequest**](ContractsCancelContractRequestRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **contracts_consent_to_contract** -> str contracts_consent_to_contract(contracts_consent_to_contract_request) +> ContractsConsentToContract200Response contracts_consent_to_contract(contracts_consent_to_contract_request) Consent To Contract @@ -121,6 +211,7 @@ Consents to a Contract with a hard set of terms ```python import openapi_client +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response from openapi_client.models.contracts_consent_to_contract_request import ContractsConsentToContractRequest from openapi_client.rest import ApiException from pprint import pprint @@ -167,7 +258,7 @@ Name | Type | Description | Notes ### Return type -**str** +[**ContractsConsentToContract200Response**](ContractsConsentToContract200Response.md) ### Authorization @@ -354,6 +445,171 @@ Name | Type | Description | Notes [[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) +# **contracts_forward_contract_request_to_profile** +> bool contracts_forward_contract_request_to_profile(contracts_forward_contract_request_to_profile_request) + +Forward a contract request + +Forwards a contract request to another profile + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_forward_contract_request_to_profile_request = openapi_client.ContractsForwardContractRequestToProfileRequest() # ContractsForwardContractRequestToProfileRequest | + + try: + # Forward a contract request + api_response = api_instance.contracts_forward_contract_request_to_profile(contracts_forward_contract_request_to_profile_request) + print("The response of ContractsApi->contracts_forward_contract_request_to_profile:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_forward_contract_request_to_profile: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_forward_contract_request_to_profile_request** | [**ContractsForwardContractRequestToProfileRequest**](ContractsForwardContractRequestToProfileRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **contracts_get_all_contract_requests_for_profile** +> List[ContractsGetAllContractRequestsForProfile200ResponseInner] contracts_get_all_contract_requests_for_profile(target_profile_id) + +Get all contract requests for a target profile + +Gets all contract requests from all contracts for a specified target profile. Users can query their own requests. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + target_profile_id = 'target_profile_id_example' # str | + + try: + # Get all contract requests for a target profile + api_response = api_instance.contracts_get_all_contract_requests_for_profile(target_profile_id) + print("The response of ContractsApi->contracts_get_all_contract_requests_for_profile:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_get_all_contract_requests_for_profile: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **target_profile_id** | **str**| | + +### Return type + +[**List[ContractsGetAllContractRequestsForProfile200ResponseInner]**](ContractsGetAllContractRequestsForProfile200ResponseInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + # **contracts_get_all_credentials_for_terms** > ContractsGetCredentialsForContract200Response contracts_get_all_credentials_for_terms(contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request) @@ -687,7 +943,7 @@ Name | Type | Description | Notes [[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) # **contracts_get_consented_data** -> ContractsGetConsentedDataForContract200Response contracts_get_consented_data(contracts_get_consented_data_request=contracts_get_consented_data_request) +> ContractsGetConsentedData200Response contracts_get_consented_data(contracts_get_consented_data_request=contracts_get_consented_data_request) Get the data that has been consented for all of your contracts @@ -699,7 +955,7 @@ This route grabs all the data that has been consented for all of your contracts ```python import openapi_client -from openapi_client.models.contracts_get_consented_data_for_contract200_response import ContractsGetConsentedDataForContract200Response +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response from openapi_client.models.contracts_get_consented_data_request import ContractsGetConsentedDataRequest from openapi_client.rest import ApiException from pprint import pprint @@ -746,7 +1002,7 @@ Name | Type | Description | Notes ### Return type -[**ContractsGetConsentedDataForContract200Response**](ContractsGetConsentedDataForContract200Response.md) +[**ContractsGetConsentedData200Response**](ContractsGetConsentedData200Response.md) ### Authorization @@ -935,12 +1191,12 @@ Name | Type | Description | Notes [[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) -# **contracts_get_credentials_for_contract** -> ContractsGetCredentialsForContract200Response contracts_get_credentials_for_contract(contracts_get_credentials_for_contract_request) +# **contracts_get_contract_sent_requests** +> List[ContractsGetContractSentRequests200ResponseInner] contracts_get_contract_sent_requests(contract_uri) -Get credentials issued via a contract +Get requests sent for a given contract -Gets all credentials that were issued via a contract +Gets a list of users and their request statuses for a given contract. ### Example @@ -948,8 +1204,7 @@ Gets all credentials that were issued via a contract ```python import openapi_client -from openapi_client.models.contracts_get_credentials_for_contract200_response import ContractsGetCredentialsForContract200Response -from openapi_client.models.contracts_get_credentials_for_contract_request import ContractsGetCredentialsForContractRequest +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner from openapi_client.rest import ApiException from pprint import pprint @@ -973,15 +1228,15 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ContractsApi(api_client) - contracts_get_credentials_for_contract_request = openapi_client.ContractsGetCredentialsForContractRequest() # ContractsGetCredentialsForContractRequest | + contract_uri = 'contract_uri_example' # str | try: - # Get credentials issued via a contract - api_response = api_instance.contracts_get_credentials_for_contract(contracts_get_credentials_for_contract_request) - print("The response of ContractsApi->contracts_get_credentials_for_contract:\n") + # Get requests sent for a given contract + api_response = api_instance.contracts_get_contract_sent_requests(contract_uri) + print("The response of ContractsApi->contracts_get_contract_sent_requests:\n") pprint(api_response) except Exception as e: - print("Exception when calling ContractsApi->contracts_get_credentials_for_contract: %s\n" % e) + print("Exception when calling ContractsApi->contracts_get_contract_sent_requests: %s\n" % e) ``` @@ -991,11 +1246,11 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contracts_get_credentials_for_contract_request** | [**ContractsGetCredentialsForContractRequest**](ContractsGetCredentialsForContractRequest.md)| | + **contract_uri** | **str**| | ### Return type -[**ContractsGetCredentialsForContract200Response**](ContractsGetCredentialsForContract200Response.md) +[**List[ContractsGetContractSentRequests200ResponseInner]**](ContractsGetContractSentRequests200ResponseInner.md) ### Authorization @@ -1003,7 +1258,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -1014,16 +1269,17 @@ Name | Type | Description | Notes **400** | Invalid input data | - | **401** | Authorization not provided | - | **403** | Insufficient access | - | +**404** | Not found | - | **500** | Internal server error | - | [[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) -# **contracts_get_terms_transaction_history** -> ContractsGetTermsTransactionHistory200Response contracts_get_terms_transaction_history(contracts_get_terms_transaction_history_request) +# **contracts_get_credentials_for_contract** +> ContractsGetCredentialsForContract200Response contracts_get_credentials_for_contract(contracts_get_credentials_for_contract_request) -Gets Transaction History +Get credentials issued via a contract -Gets the transaction history for a set of Consent Flow Contract Terms +Gets all credentials that were issued via a contract ### Example @@ -1031,8 +1287,8 @@ Gets the transaction history for a set of Consent Flow Contract Terms ```python import openapi_client -from openapi_client.models.contracts_get_terms_transaction_history200_response import ContractsGetTermsTransactionHistory200Response -from openapi_client.models.contracts_get_terms_transaction_history_request import ContractsGetTermsTransactionHistoryRequest +from openapi_client.models.contracts_get_credentials_for_contract200_response import ContractsGetCredentialsForContract200Response +from openapi_client.models.contracts_get_credentials_for_contract_request import ContractsGetCredentialsForContractRequest from openapi_client.rest import ApiException from pprint import pprint @@ -1056,15 +1312,15 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ContractsApi(api_client) - contracts_get_terms_transaction_history_request = openapi_client.ContractsGetTermsTransactionHistoryRequest() # ContractsGetTermsTransactionHistoryRequest | + contracts_get_credentials_for_contract_request = openapi_client.ContractsGetCredentialsForContractRequest() # ContractsGetCredentialsForContractRequest | try: - # Gets Transaction History - api_response = api_instance.contracts_get_terms_transaction_history(contracts_get_terms_transaction_history_request) - print("The response of ContractsApi->contracts_get_terms_transaction_history:\n") + # Get credentials issued via a contract + api_response = api_instance.contracts_get_credentials_for_contract(contracts_get_credentials_for_contract_request) + print("The response of ContractsApi->contracts_get_credentials_for_contract:\n") pprint(api_response) except Exception as e: - print("Exception when calling ContractsApi->contracts_get_terms_transaction_history: %s\n" % e) + print("Exception when calling ContractsApi->contracts_get_credentials_for_contract: %s\n" % e) ``` @@ -1074,7 +1330,177 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contracts_get_terms_transaction_history_request** | [**ContractsGetTermsTransactionHistoryRequest**](ContractsGetTermsTransactionHistoryRequest.md)| | + **contracts_get_credentials_for_contract_request** | [**ContractsGetCredentialsForContractRequest**](ContractsGetCredentialsForContractRequest.md)| | + +### Return type + +[**ContractsGetCredentialsForContract200Response**](ContractsGetCredentialsForContract200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **contracts_get_request_status_for_profile** +> ContractsGetRequestStatusForProfile200Response contracts_get_request_status_for_profile(target_profile_id, contract_id=contract_id, contract_uri=contract_uri) + +Get request status for a specific profile under a contract + +Returns the request status and read status for a given profile in a specific contract. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + target_profile_id = 'target_profile_id_example' # str | + contract_id = 'contract_id_example' # str | (optional) + contract_uri = 'contract_uri_example' # str | (optional) + + try: + # Get request status for a specific profile under a contract + api_response = api_instance.contracts_get_request_status_for_profile(target_profile_id, contract_id=contract_id, contract_uri=contract_uri) + print("The response of ContractsApi->contracts_get_request_status_for_profile:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_get_request_status_for_profile: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **target_profile_id** | **str**| | + **contract_id** | **str**| | [optional] + **contract_uri** | **str**| | [optional] + +### Return type + +[**ContractsGetRequestStatusForProfile200Response**](ContractsGetRequestStatusForProfile200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **contracts_get_terms_transaction_history** +> ContractsGetTermsTransactionHistory200Response contracts_get_terms_transaction_history(contracts_get_terms_transaction_history_request) + +Gets Transaction History + +Gets the transaction history for a set of Consent Flow Contract Terms + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_get_terms_transaction_history200_response import ContractsGetTermsTransactionHistory200Response +from openapi_client.models.contracts_get_terms_transaction_history_request import ContractsGetTermsTransactionHistoryRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_get_terms_transaction_history_request = openapi_client.ContractsGetTermsTransactionHistoryRequest() # ContractsGetTermsTransactionHistoryRequest | + + try: + # Gets Transaction History + api_response = api_instance.contracts_get_terms_transaction_history(contracts_get_terms_transaction_history_request) + print("The response of ContractsApi->contracts_get_terms_transaction_history:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_get_terms_transaction_history: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_get_terms_transaction_history_request** | [**ContractsGetTermsTransactionHistoryRequest**](ContractsGetTermsTransactionHistoryRequest.md)| | ### Return type @@ -1101,6 +1527,88 @@ Name | Type | Description | Notes [[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) +# **contracts_mark_contract_request_as_seen** +> bool contracts_mark_contract_request_as_seen(contracts_mark_contract_request_as_seen_request) + +Marks a contract request as seen + +Updates the read status of a contract request to "seen" for the specified target profile. Only contract writers are authorized to perform this action. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_mark_contract_request_as_seen_request = openapi_client.ContractsMarkContractRequestAsSeenRequest() # ContractsMarkContractRequestAsSeenRequest | + + try: + # Marks a contract request as seen + api_response = api_instance.contracts_mark_contract_request_as_seen(contracts_mark_contract_request_as_seen_request) + print("The response of ContractsApi->contracts_mark_contract_request_as_seen:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_mark_contract_request_as_seen: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_mark_contract_request_as_seen_request** | [**ContractsMarkContractRequestAsSeenRequest**](ContractsMarkContractRequestAsSeenRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **contracts_remove_auto_boosts_from_contract** > bool contracts_remove_auto_boosts_from_contract(contracts_remove_auto_boosts_from_contract_request) @@ -1183,6 +1691,170 @@ Name | Type | Description | Notes [[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) +# **contracts_send_ai_insight_share_request** +> bool contracts_send_ai_insight_share_request(contracts_send_ai_insight_share_request_request) + +AI Insights, consent flow share-notifcation request + +Sends the targeted user an AI insights share notification + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_send_ai_insight_share_request_request = openapi_client.ContractsSendAiInsightShareRequestRequest() # ContractsSendAiInsightShareRequestRequest | + + try: + # AI Insights, consent flow share-notifcation request + api_response = api_instance.contracts_send_ai_insight_share_request(contracts_send_ai_insight_share_request_request) + print("The response of ContractsApi->contracts_send_ai_insight_share_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_send_ai_insight_share_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_send_ai_insight_share_request_request** | [**ContractsSendAiInsightShareRequestRequest**](ContractsSendAiInsightShareRequestRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **contracts_send_ai_insights_contract_request** +> bool contracts_send_ai_insights_contract_request(contracts_send_ai_insights_contract_request_request) + +AI Insights, consent flow notifcation request + +Sends the targeted user an AI insights consent flow request via a notification + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ContractsApi(api_client) + contracts_send_ai_insights_contract_request_request = openapi_client.ContractsSendAiInsightsContractRequestRequest() # ContractsSendAiInsightsContractRequestRequest | + + try: + # AI Insights, consent flow notifcation request + api_response = api_instance.contracts_send_ai_insights_contract_request(contracts_send_ai_insights_contract_request_request) + print("The response of ContractsApi->contracts_send_ai_insights_contract_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->contracts_send_ai_insights_contract_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contracts_send_ai_insights_contract_request_request** | [**ContractsSendAiInsightsContractRequestRequest**](ContractsSendAiInsightsContractRequestRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **contracts_sync_credentials_to_contract** > bool contracts_sync_credentials_to_contract(contracts_sync_credentials_to_contract_request) diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsCancelContractRequestRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCancelContractRequestRequest.md new file mode 100644 index 0000000000..8a2bb923fb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCancelContractRequestRequest.md @@ -0,0 +1,30 @@ +# ContractsCancelContractRequestRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_uri** | **str** | | +**target_profile_id** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsCancelContractRequestRequest from a JSON string +contracts_cancel_contract_request_request_instance = ContractsCancelContractRequestRequest.from_json(json) +# print the JSON string representation of the object +print(ContractsCancelContractRequestRequest.to_json()) + +# convert the object into a dict +contracts_cancel_contract_request_request_dict = contracts_cancel_contract_request_request_instance.to_dict() +# create an instance of ContractsCancelContractRequestRequest from a dict +contracts_cancel_contract_request_request_from_dict = ContractsCancelContractRequestRequest.from_dict(contracts_cancel_contract_request_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContract200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContract200Response.md new file mode 100644 index 0000000000..8a4c6c3bc2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContract200Response.md @@ -0,0 +1,30 @@ +# ContractsConsentToContract200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terms_uri** | **str** | | +**redirect_url** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsConsentToContract200Response from a JSON string +contracts_consent_to_contract200_response_instance = ContractsConsentToContract200Response.from_json(json) +# print the JSON string representation of the object +print(ContractsConsentToContract200Response.to_json()) + +# convert the object into a dict +contracts_consent_to_contract200_response_dict = contracts_consent_to_contract200_response_instance.to_dict() +# create an instance of ContractsConsentToContract200Response from a dict +contracts_consent_to_contract200_response_from_dict = ContractsConsentToContract200Response.from_dict(contracts_consent_to_contract200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequest.md index fb51c7a38d..be7713b45d 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **contract_uri** | **str** | | **expires_at** | **str** | | [optional] **one_time** | **bool** | | [optional] +**recipient_token** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentials.md index 49288606e8..94839f071f 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentials.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **share_all** | **bool** | | [optional] **sharing** | **bool** | | [optional] -**categories** | [**Dict[str, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue.md) | | [optional] +**categories** | [**Dict[str, ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue]**](ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md new file mode 100644 index 0000000000..49aedb32e3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.md @@ -0,0 +1,32 @@ +# ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sharing** | **bool** | | [optional] +**shared** | **List[str]** | | [optional] +**share_all** | **bool** | | [optional] +**share_until** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value import ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from a JSON string +contracts_consent_to_contract_request_terms_read_credentials_categories_value_instance = ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.from_json(json) +# print the JSON string representation of the object +print(ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.to_json()) + +# convert the object into a dict +contracts_consent_to_contract_request_terms_read_credentials_categories_value_dict = contracts_consent_to_contract_request_terms_read_credentials_categories_value_instance.to_dict() +# create an instance of ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from a dict +contracts_consent_to_contract_request_terms_read_credentials_categories_value_from_dict = ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.from_dict(contracts_consent_to_contract_request_terms_read_credentials_categories_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md index 22c2d7aab8..3e0b3d7783 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**endpoint** | **str** | | **name** | **str** | | +**endpoint** | **str** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractRead.md index 50b5a9e09e..3d630debf7 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractRead.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractRead.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **anonymize** | **bool** | | [optional] **credentials** | [**ContractsCreateConsentFlowContractRequestContractReadCredentials**](ContractsCreateConsentFlowContractRequestContractReadCredentials.md) | | [optional] -**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | [optional] +**personal** | [**Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]**](ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md index c54aa001fa..b00c742b47 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentials.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**categories** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | [optional] +**categories** | [**Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]**](ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md new file mode 100644 index 0000000000..93d5889bde --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md @@ -0,0 +1,30 @@ +# ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**required** | **bool** | | +**default_enabled** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from a JSON string +contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value_instance = ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.from_json(json) +# print the JSON string representation of the object +print(ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.to_json()) + +# convert the object into a dict +contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value_dict = contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value_instance.to_dict() +# create an instance of ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from a dict +contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value_from_dict = ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.from_dict(contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractWrite.md b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractWrite.md index d19129fa76..893e17a11b 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractWrite.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsCreateConsentFlowContractRequestContractWrite.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **credentials** | [**ContractsCreateConsentFlowContractRequestContractReadCredentials**](ContractsCreateConsentFlowContractRequestContractReadCredentials.md) | | [optional] -**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | [optional] +**personal** | [**Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]**](ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsForwardContractRequestToProfileRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsForwardContractRequestToProfileRequest.md new file mode 100644 index 0000000000..46a42cfe9d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsForwardContractRequestToProfileRequest.md @@ -0,0 +1,31 @@ +# ContractsForwardContractRequestToProfileRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parent_profile_id** | **str** | | +**target_profile_id** | **str** | | +**contract_uri** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsForwardContractRequestToProfileRequest from a JSON string +contracts_forward_contract_request_to_profile_request_instance = ContractsForwardContractRequestToProfileRequest.from_json(json) +# print the JSON string representation of the object +print(ContractsForwardContractRequestToProfileRequest.to_json()) + +# convert the object into a dict +contracts_forward_contract_request_to_profile_request_dict = contracts_forward_contract_request_to_profile_request_instance.to_dict() +# create an instance of ContractsForwardContractRequestToProfileRequest from a dict +contracts_forward_contract_request_to_profile_request_from_dict = ContractsForwardContractRequestToProfileRequest.from_dict(contracts_forward_contract_request_to_profile_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md new file mode 100644 index 0000000000..fa8a272035 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInner.md @@ -0,0 +1,32 @@ +# ContractsGetAllContractRequestsForProfile200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract** | [**ContractsGetAllContractRequestsForProfile200ResponseInnerContract**](ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md) | | +**profile** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**status** | **str** | | +**read_status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetAllContractRequestsForProfile200ResponseInner from a JSON string +contracts_get_all_contract_requests_for_profile200_response_inner_instance = ContractsGetAllContractRequestsForProfile200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(ContractsGetAllContractRequestsForProfile200ResponseInner.to_json()) + +# convert the object into a dict +contracts_get_all_contract_requests_for_profile200_response_inner_dict = contracts_get_all_contract_requests_for_profile200_response_inner_instance.to_dict() +# create an instance of ContractsGetAllContractRequestsForProfile200ResponseInner from a dict +contracts_get_all_contract_requests_for_profile200_response_inner_from_dict = ContractsGetAllContractRequestsForProfile200ResponseInner.from_dict(contracts_get_all_contract_requests_for_profile200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md new file mode 100644 index 0000000000..216fafe891 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetAllContractRequestsForProfile200ResponseInnerContract.md @@ -0,0 +1,31 @@ +# ContractsGetAllContractRequestsForProfile200ResponseInnerContract + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**ContractsGetConsentFlowContract200ResponseContractRead**](ContractsGetConsentFlowContract200ResponseContractRead.md) | | +**write** | [**StorageResolve200ResponseAnyOfAnyOf1Write**](StorageResolve200ResponseAnyOfAnyOf1Write.md) | | +**uri** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner_contract import ContractsGetAllContractRequestsForProfile200ResponseInnerContract + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetAllContractRequestsForProfile200ResponseInnerContract from a JSON string +contracts_get_all_contract_requests_for_profile200_response_inner_contract_instance = ContractsGetAllContractRequestsForProfile200ResponseInnerContract.from_json(json) +# print the JSON string representation of the object +print(ContractsGetAllContractRequestsForProfile200ResponseInnerContract.to_json()) + +# convert the object into a dict +contracts_get_all_contract_requests_for_profile200_response_inner_contract_dict = contracts_get_all_contract_requests_for_profile200_response_inner_contract_instance.to_dict() +# create an instance of ContractsGetAllContractRequestsForProfile200ResponseInnerContract from a dict +contracts_get_all_contract_requests_for_profile200_response_inner_contract_from_dict = ContractsGetAllContractRequestsForProfile200ResponseInnerContract.from_dict(contracts_get_all_contract_requests_for_profile200_response_inner_contract_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200Response.md index 36c5ea3fe5..485bc392fb 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200Response.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contract** | [**StorageResolve200ResponseAnyOfAnyOf**](StorageResolve200ResponseAnyOfAnyOf.md) | | -**owner** | [**BoostGetBoostRecipients200ResponseInnerTo**](BoostGetBoostRecipients200ResponseInnerTo.md) | | +**contract** | [**ContractsGetConsentFlowContract200ResponseContract**](ContractsGetConsentFlowContract200ResponseContract.md) | | +**owner** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | **name** | **str** | | **subtitle** | **str** | | [optional] **description** | **str** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes **updated_at** | **str** | | **expires_at** | **str** | | [optional] **auto_boosts** | **List[str]** | | [optional] -**writers** | [**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) | | [optional] +**writers** | [**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContract.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContract.md new file mode 100644 index 0000000000..352da0bc8b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContract.md @@ -0,0 +1,30 @@ +# ContractsGetConsentFlowContract200ResponseContract + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**ContractsGetConsentFlowContract200ResponseContractRead**](ContractsGetConsentFlowContract200ResponseContractRead.md) | | +**write** | [**StorageResolve200ResponseAnyOfAnyOf1Write**](StorageResolve200ResponseAnyOfAnyOf1Write.md) | | + +## Example + +```python +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentFlowContract200ResponseContract from a JSON string +contracts_get_consent_flow_contract200_response_contract_instance = ContractsGetConsentFlowContract200ResponseContract.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentFlowContract200ResponseContract.to_json()) + +# convert the object into a dict +contracts_get_consent_flow_contract200_response_contract_dict = contracts_get_consent_flow_contract200_response_contract_instance.to_dict() +# create an instance of ContractsGetConsentFlowContract200ResponseContract from a dict +contracts_get_consent_flow_contract200_response_contract_from_dict = ContractsGetConsentFlowContract200ResponseContract.from_dict(contracts_get_consent_flow_contract200_response_contract_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContractRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContractRead.md new file mode 100644 index 0000000000..cd424c8cc6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContract200ResponseContractRead.md @@ -0,0 +1,31 @@ +# ContractsGetConsentFlowContract200ResponseContractRead + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anonymize** | **bool** | | [optional] +**credentials** | [**StorageResolve200ResponseAnyOfAnyOf1WriteCredentials**](StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md) | | +**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue]**](StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md) | | + +## Example + +```python +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentFlowContract200ResponseContractRead from a JSON string +contracts_get_consent_flow_contract200_response_contract_read_instance = ContractsGetConsentFlowContract200ResponseContractRead.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentFlowContract200ResponseContractRead.to_json()) + +# convert the object into a dict +contracts_get_consent_flow_contract200_response_contract_read_dict = contracts_get_consent_flow_contract200_response_contract_read_instance.to_dict() +# create an instance of ContractsGetConsentFlowContract200ResponseContractRead from a dict +contracts_get_consent_flow_contract200_response_contract_read_from_dict = ContractsGetConsentFlowContract200ResponseContractRead.from_dict(contracts_get_consent_flow_contract200_response_contract_read_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md index 4c234efca6..47b11594ff 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentFlowContracts200ResponseRecordsInner.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contract** | [**StorageResolve200ResponseAnyOfAnyOf**](StorageResolve200ResponseAnyOfAnyOf.md) | | +**contract** | [**ContractsGetConsentFlowContract200ResponseContract**](ContractsGetConsentFlowContract200ResponseContract.md) | | **name** | **str** | | **subtitle** | **str** | | [optional] **description** | **str** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **updated_at** | **str** | | **expires_at** | **str** | | [optional] **auto_boosts** | **List[str]** | | [optional] -**writers** | [**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) | | [optional] +**writers** | [**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInner.md index 599265b451..97fac2a138 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInner.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **expires_at** | **str** | | [optional] **one_time** | **bool** | | [optional] -**terms** | [**StorageResolve200ResponseAnyOf1**](StorageResolve200ResponseAnyOf1.md) | | +**terms** | [**ContractsGetConsentedContracts200ResponseRecordsInnerTerms**](ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md) | | **contract** | [**ContractsGetConsentFlowContract200Response**](ContractsGetConsentFlowContract200Response.md) | | **uri** | **str** | | -**consenter** | [**BoostGetBoostRecipients200ResponseInnerTo**](BoostGetBoostRecipients200ResponseInnerTo.md) | | +**consenter** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | **status** | **str** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md new file mode 100644 index 0000000000..fbb6452e2f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTerms.md @@ -0,0 +1,31 @@ +# ContractsGetConsentedContracts200ResponseRecordsInnerTerms + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead**](ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md) | | +**write** | [**StorageResolve200ResponseAnyOf1Write**](StorageResolve200ResponseAnyOf1Write.md) | | +**denied_writers** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms import ContractsGetConsentedContracts200ResponseRecordsInnerTerms + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTerms from a JSON string +contracts_get_consented_contracts200_response_records_inner_terms_instance = ContractsGetConsentedContracts200ResponseRecordsInnerTerms.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedContracts200ResponseRecordsInnerTerms.to_json()) + +# convert the object into a dict +contracts_get_consented_contracts200_response_records_inner_terms_dict = contracts_get_consented_contracts200_response_records_inner_terms_instance.to_dict() +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTerms from a dict +contracts_get_consented_contracts200_response_records_inner_terms_from_dict = ContractsGetConsentedContracts200ResponseRecordsInnerTerms.from_dict(contracts_get_consented_contracts200_response_records_inner_terms_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md new file mode 100644 index 0000000000..f7e3ee7d1c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md @@ -0,0 +1,31 @@ +# ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anonymize** | **bool** | | [optional] +**credentials** | [**ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials**](ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md) | | +**personal** | **Dict[str, str]** | | + +## Example + +```python +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead from a JSON string +contracts_get_consented_contracts200_response_records_inner_terms_read_instance = ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.to_json()) + +# convert the object into a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_dict = contracts_get_consented_contracts200_response_records_inner_terms_read_instance.to_dict() +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead from a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_from_dict = ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.from_dict(contracts_get_consented_contracts200_response_records_inner_terms_read_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md new file mode 100644 index 0000000000..3cb1a86475 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.md @@ -0,0 +1,31 @@ +# ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**share_all** | **bool** | | [optional] +**sharing** | **bool** | | [optional] +**categories** | [**Dict[str, ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue]**](ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md) | | + +## Example + +```python +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials from a JSON string +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_instance = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.to_json()) + +# convert the object into a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_dict = contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_instance.to_dict() +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials from a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_from_dict = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.from_dict(contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md new file mode 100644 index 0000000000..a073d6ab72 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.md @@ -0,0 +1,32 @@ +# ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sharing** | **bool** | | [optional] +**shared** | **List[str]** | | [optional] +**share_all** | **bool** | | [optional] +**share_until** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from a JSON string +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value_instance = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.to_json()) + +# convert the object into a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value_dict = contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value_instance.to_dict() +# create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from a dict +contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value_from_dict = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.from_dict(contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryRead.md index f59c960676..0c9c1ba367 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryRead.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryRead.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **anonymize** | **bool** | | [optional] **credentials** | [**ContractsGetConsentedContractsRequestQueryReadCredentials**](ContractsGetConsentedContractsRequestQueryReadCredentials.md) | | [optional] -**personal** | **Dict[str, str]** | | [optional] +**personal** | **Dict[str, Optional[str]]** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md index f38f44d455..581a70a4c7 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **share_all** | **bool** | | [optional] **sharing** | **bool** | | [optional] -**categories** | [**Dict[str, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue.md) | | [optional] +**categories** | [**Dict[str, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue]**](ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md new file mode 100644 index 0000000000..2ec57e7e46 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md @@ -0,0 +1,32 @@ +# ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sharing** | **bool** | | [optional] +**shared** | **List[str]** | | [optional] +**share_all** | **bool** | | [optional] +**share_until** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from a JSON string +contracts_get_consented_contracts_request_query_read_credentials_categories_value_instance = ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.to_json()) + +# convert the object into a dict +contracts_get_consented_contracts_request_query_read_credentials_categories_value_dict = contracts_get_consented_contracts_request_query_read_credentials_categories_value_instance.to_dict() +# create an instance of ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from a dict +contracts_get_consented_contracts_request_query_read_credentials_categories_value_from_dict = ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.from_dict(contracts_get_consented_contracts_request_query_read_credentials_categories_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200Response.md new file mode 100644 index 0000000000..abf67e4b6a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200Response.md @@ -0,0 +1,31 @@ +# ContractsGetConsentedData200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **str** | | [optional] +**has_more** | **bool** | | +**records** | [**List[ContractsGetConsentedData200ResponseRecordsInner]**](ContractsGetConsentedData200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedData200Response from a JSON string +contracts_get_consented_data200_response_instance = ContractsGetConsentedData200Response.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedData200Response.to_json()) + +# convert the object into a dict +contracts_get_consented_data200_response_dict = contracts_get_consented_data200_response_instance.to_dict() +# create an instance of ContractsGetConsentedData200Response from a dict +contracts_get_consented_data200_response_from_dict = ContractsGetConsentedData200Response.from_dict(contracts_get_consented_data200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200ResponseRecordsInner.md new file mode 100644 index 0000000000..e171a4b8df --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedData200ResponseRecordsInner.md @@ -0,0 +1,31 @@ +# ContractsGetConsentedData200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | [**ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials**](ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials.md) | | +**personal** | **Dict[str, str]** | | +**var_date** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_consented_data200_response_records_inner import ContractsGetConsentedData200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetConsentedData200ResponseRecordsInner from a JSON string +contracts_get_consented_data200_response_records_inner_instance = ContractsGetConsentedData200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(ContractsGetConsentedData200ResponseRecordsInner.to_json()) + +# convert the object into a dict +contracts_get_consented_data200_response_records_inner_dict = contracts_get_consented_data200_response_records_inner_instance.to_dict() +# create an instance of ContractsGetConsentedData200ResponseRecordsInner from a dict +contracts_get_consented_data200_response_records_inner_from_dict = ContractsGetConsentedData200ResponseRecordsInner.from_dict(contracts_get_consented_data200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md index 07a632a985..70682e7f9d 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForContract200ResponseRecordsInner.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **credentials** | [**ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials**](ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials.md) | | -**personal** | **Dict[str, str]** | | +**personal** | **Dict[str, Optional[str]]** | | **var_date** | **str** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForDidRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForDidRequestQuery.md index e04ac9d579..dc082ce0ca 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForDidRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetConsentedDataForDidRequestQuery.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **credentials** | [**ContractsGetConsentedDataForContractRequestQueryCredentials**](ContractsGetConsentedDataForContractRequestQueryCredentials.md) | | [optional] **personal** | **Dict[str, bool]** | | [optional] -**id** | [**BoostGetBoostsRequestQueryUri**](BoostGetBoostsRequestQueryUri.md) | | [optional] +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetContractSentRequests200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetContractSentRequests200ResponseInner.md new file mode 100644 index 0000000000..ce28d2c9bc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetContractSentRequests200ResponseInner.md @@ -0,0 +1,31 @@ +# ContractsGetContractSentRequests200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**status** | **str** | | +**read_status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetContractSentRequests200ResponseInner from a JSON string +contracts_get_contract_sent_requests200_response_inner_instance = ContractsGetContractSentRequests200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(ContractsGetContractSentRequests200ResponseInner.to_json()) + +# convert the object into a dict +contracts_get_contract_sent_requests200_response_inner_dict = contracts_get_contract_sent_requests200_response_inner_instance.to_dict() +# create an instance of ContractsGetContractSentRequests200ResponseInner from a dict +contracts_get_contract_sent_requests200_response_inner_from_dict = ContractsGetContractSentRequests200ResponseInner.from_dict(contracts_get_contract_sent_requests200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetRequestStatusForProfile200Response.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetRequestStatusForProfile200Response.md new file mode 100644 index 0000000000..2f1a7a0dc4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetRequestStatusForProfile200Response.md @@ -0,0 +1,31 @@ +# ContractsGetRequestStatusForProfile200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**status** | **str** | | +**read_status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetRequestStatusForProfile200Response from a JSON string +contracts_get_request_status_for_profile200_response_instance = ContractsGetRequestStatusForProfile200Response.from_json(json) +# print the JSON string representation of the object +print(ContractsGetRequestStatusForProfile200Response.to_json()) + +# convert the object into a dict +contracts_get_request_status_for_profile200_response_dict = contracts_get_request_status_for_profile200_response_instance.to_dict() +# create an instance of ContractsGetRequestStatusForProfile200Response from a dict +contracts_get_request_status_for_profile200_response_from_dict = ContractsGetRequestStatusForProfile200Response.from_dict(contracts_get_request_status_for_profile200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md index a8ab6763a8..23f4de1ea5 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInner.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **expires_at** | **str** | | [optional] **one_time** | **bool** | | [optional] -**terms** | [**StorageResolve200ResponseAnyOf1**](StorageResolve200ResponseAnyOf1.md) | | [optional] +**terms** | [**ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms**](ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md) | | [optional] **id** | **str** | | **action** | **str** | | **var_date** | **str** | | diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md new file mode 100644 index 0000000000..6cadc332d2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.md @@ -0,0 +1,31 @@ +# ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead**](ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.md) | | +**write** | [**ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite**](ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md) | | +**denied_writers** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms from a JSON string +contracts_get_terms_transaction_history200_response_records_inner_terms_instance = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_dict = contracts_get_terms_transaction_history200_response_records_inner_terms_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms from a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_from_dict = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.from_dict(contracts_get_terms_transaction_history200_response_records_inner_terms_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md new file mode 100644 index 0000000000..a97063ea7f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.md @@ -0,0 +1,30 @@ +# ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | [**ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials**](ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md) | | +**personal** | **Dict[str, bool]** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite from a JSON string +contracts_get_terms_transaction_history200_response_records_inner_terms_write_instance = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_write_dict = contracts_get_terms_transaction_history200_response_records_inner_terms_write_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite from a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_write_from_dict = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.from_dict(contracts_get_terms_transaction_history200_response_records_inner_terms_write_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md new file mode 100644 index 0000000000..6ab6d0f65b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.md @@ -0,0 +1,29 @@ +# ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | **Dict[str, bool]** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from a JSON string +contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials_instance = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials_dict = contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from a dict +contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials_from_dict = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.from_dict(contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQuery.md index 1168e5a9ed..8b1d7c35ff 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQuery.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **terms** | [**ContractsGetTermsTransactionHistoryRequestQueryTerms**](ContractsGetTermsTransactionHistoryRequestQueryTerms.md) | | [optional] **action** | [**ContractsGetTermsTransactionHistoryRequestQueryAction**](ContractsGetTermsTransactionHistoryRequestQueryAction.md) | | [optional] **var_date** | [**ContractsGetTermsTransactionHistoryRequestQueryDate**](ContractsGetTermsTransactionHistoryRequestQueryDate.md) | | [optional] -**expires_at** | [**ContractsGetTermsTransactionHistoryRequestQueryDate**](ContractsGetTermsTransactionHistoryRequestQueryDate.md) | | [optional] +**expires_at** | [**ContractsGetTermsTransactionHistoryRequestQueryExpiresAt**](ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md) | | [optional] **one_time** | **bool** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md new file mode 100644 index 0000000000..4a989a163d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.md @@ -0,0 +1,31 @@ +# ContractsGetTermsTransactionHistoryRequestQueryExpiresAt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gt** | **str** | | +**lt** | **str** | | +**eq** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at import ContractsGetTermsTransactionHistoryRequestQueryExpiresAt + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAt from a JSON string +contracts_get_terms_transaction_history_request_query_expires_at_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_expires_at_dict = contracts_get_terms_transaction_history_request_query_expires_at_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAt from a dict +contracts_get_terms_transaction_history_request_query_expires_at_from_dict = ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.from_dict(contracts_get_terms_transaction_history_request_query_expires_at_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md new file mode 100644 index 0000000000..215b9bc1a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.md @@ -0,0 +1,30 @@ +# ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gt** | **str** | | +**lt** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf from a JSON string +contracts_get_terms_transaction_history_request_query_expires_at_any_of_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_dict = contracts_get_terms_transaction_history_request_query_expires_at_any_of_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf from a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_from_dict = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.from_dict(contracts_get_terms_transaction_history_request_query_expires_at_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md new file mode 100644 index 0000000000..5a8a18778e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.md @@ -0,0 +1,29 @@ +# ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eq** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 from a JSON string +contracts_get_terms_transaction_history_request_query_expires_at_any_of1_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of1_dict = contracts_get_terms_transaction_history_request_query_expires_at_any_of1_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 from a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of1_from_dict = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.from_dict(contracts_get_terms_transaction_history_request_query_expires_at_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md new file mode 100644 index 0000000000..da31f93c04 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.md @@ -0,0 +1,29 @@ +# ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gt** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf from a JSON string +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of_dict = contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf from a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of_from_dict = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.from_dict(contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md new file mode 100644 index 0000000000..e494a17a6f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.md @@ -0,0 +1,29 @@ +# ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lt** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from a JSON string +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1_dict = contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from a dict +contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1_from_dict = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.from_dict(contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md index 099e5c06c3..4cbc4e1910 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTerms.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**read** | [**ContractsGetConsentedContractsRequestQueryRead**](ContractsGetConsentedContractsRequestQueryRead.md) | | [optional] +**read** | [**ContractsGetTermsTransactionHistoryRequestQueryTermsRead**](ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md) | | [optional] **write** | [**ContractsGetConsentedContractsRequestQueryWrite**](ContractsGetConsentedContractsRequestQueryWrite.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md new file mode 100644 index 0000000000..8eaa65f814 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsGetTermsTransactionHistoryRequestQueryTermsRead.md @@ -0,0 +1,31 @@ +# ContractsGetTermsTransactionHistoryRequestQueryTermsRead + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anonymize** | **bool** | | [optional] +**credentials** | [**ContractsGetConsentedContractsRequestQueryReadCredentials**](ContractsGetConsentedContractsRequestQueryReadCredentials.md) | | [optional] +**personal** | **Dict[str, str]** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read import ContractsGetTermsTransactionHistoryRequestQueryTermsRead + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryTermsRead from a JSON string +contracts_get_terms_transaction_history_request_query_terms_read_instance = ContractsGetTermsTransactionHistoryRequestQueryTermsRead.from_json(json) +# print the JSON string representation of the object +print(ContractsGetTermsTransactionHistoryRequestQueryTermsRead.to_json()) + +# convert the object into a dict +contracts_get_terms_transaction_history_request_query_terms_read_dict = contracts_get_terms_transaction_history_request_query_terms_read_instance.to_dict() +# create an instance of ContractsGetTermsTransactionHistoryRequestQueryTermsRead from a dict +contracts_get_terms_transaction_history_request_query_terms_read_from_dict = ContractsGetTermsTransactionHistoryRequestQueryTermsRead.from_dict(contracts_get_terms_transaction_history_request_query_terms_read_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsMarkContractRequestAsSeenRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsMarkContractRequestAsSeenRequest.md new file mode 100644 index 0000000000..7e718f9c40 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsMarkContractRequestAsSeenRequest.md @@ -0,0 +1,30 @@ +# ContractsMarkContractRequestAsSeenRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_uri** | **str** | | +**target_profile_id** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsMarkContractRequestAsSeenRequest from a JSON string +contracts_mark_contract_request_as_seen_request_instance = ContractsMarkContractRequestAsSeenRequest.from_json(json) +# print the JSON string representation of the object +print(ContractsMarkContractRequestAsSeenRequest.to_json()) + +# convert the object into a dict +contracts_mark_contract_request_as_seen_request_dict = contracts_mark_contract_request_as_seen_request_instance.to_dict() +# create an instance of ContractsMarkContractRequestAsSeenRequest from a dict +contracts_mark_contract_request_as_seen_request_from_dict = ContractsMarkContractRequestAsSeenRequest.from_dict(contracts_mark_contract_request_as_seen_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightShareRequestRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightShareRequestRequest.md new file mode 100644 index 0000000000..80dc8d4cee --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightShareRequestRequest.md @@ -0,0 +1,31 @@ +# ContractsSendAiInsightShareRequestRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**child_profile_id** | **str** | | [optional] +**target_profile_id** | **str** | | +**share_link** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsSendAiInsightShareRequestRequest from a JSON string +contracts_send_ai_insight_share_request_request_instance = ContractsSendAiInsightShareRequestRequest.from_json(json) +# print the JSON string representation of the object +print(ContractsSendAiInsightShareRequestRequest.to_json()) + +# convert the object into a dict +contracts_send_ai_insight_share_request_request_dict = contracts_send_ai_insight_share_request_request_instance.to_dict() +# create an instance of ContractsSendAiInsightShareRequestRequest from a dict +contracts_send_ai_insight_share_request_request_from_dict = ContractsSendAiInsightShareRequestRequest.from_dict(contracts_send_ai_insight_share_request_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightsContractRequestRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightsContractRequestRequest.md new file mode 100644 index 0000000000..abf2625dd0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsSendAiInsightsContractRequestRequest.md @@ -0,0 +1,31 @@ +# ContractsSendAiInsightsContractRequestRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_uri** | **str** | | +**target_profile_id** | **str** | | +**share_link** | **str** | | + +## Example + +```python +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsSendAiInsightsContractRequestRequest from a JSON string +contracts_send_ai_insights_contract_request_request_instance = ContractsSendAiInsightsContractRequestRequest.from_json(json) +# print the JSON string representation of the object +print(ContractsSendAiInsightsContractRequestRequest.to_json()) + +# convert the object into a dict +contracts_send_ai_insights_contract_request_request_dict = contracts_send_ai_insights_contract_request_request_instance.to_dict() +# create an instance of ContractsSendAiInsightsContractRequestRequest from a dict +contracts_send_ai_insights_contract_request_request_from_dict = ContractsSendAiInsightsContractRequestRequest.from_dict(contracts_send_ai_insights_contract_request_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequest.md index 15ece513db..eab21b3d10 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uri** | **str** | | -**terms** | [**ContractsConsentToContractRequestTerms**](ContractsConsentToContractRequestTerms.md) | | +**terms** | [**ContractsUpdateConsentedContractTermsRequestTerms**](ContractsUpdateConsentedContractTermsRequestTerms.md) | | **expires_at** | **str** | | [optional] **one_time** | **bool** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTerms.md b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTerms.md new file mode 100644 index 0000000000..0f47fd2139 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTerms.md @@ -0,0 +1,31 @@ +# ContractsUpdateConsentedContractTermsRequestTerms + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**ContractsUpdateConsentedContractTermsRequestTermsRead**](ContractsUpdateConsentedContractTermsRequestTermsRead.md) | | [optional] +**write** | [**ContractsConsentToContractRequestTermsWrite**](ContractsConsentToContractRequestTermsWrite.md) | | [optional] +**denied_writers** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_update_consented_contract_terms_request_terms import ContractsUpdateConsentedContractTermsRequestTerms + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsUpdateConsentedContractTermsRequestTerms from a JSON string +contracts_update_consented_contract_terms_request_terms_instance = ContractsUpdateConsentedContractTermsRequestTerms.from_json(json) +# print the JSON string representation of the object +print(ContractsUpdateConsentedContractTermsRequestTerms.to_json()) + +# convert the object into a dict +contracts_update_consented_contract_terms_request_terms_dict = contracts_update_consented_contract_terms_request_terms_instance.to_dict() +# create an instance of ContractsUpdateConsentedContractTermsRequestTerms from a dict +contracts_update_consented_contract_terms_request_terms_from_dict = ContractsUpdateConsentedContractTermsRequestTerms.from_dict(contracts_update_consented_contract_terms_request_terms_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md new file mode 100644 index 0000000000..dfd390c052 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsRead.md @@ -0,0 +1,31 @@ +# ContractsUpdateConsentedContractTermsRequestTermsRead + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anonymize** | **bool** | | [optional] +**credentials** | [**ContractsUpdateConsentedContractTermsRequestTermsReadCredentials**](ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md) | | [optional] +**personal** | **Dict[str, str]** | | [optional] + +## Example + +```python +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read import ContractsUpdateConsentedContractTermsRequestTermsRead + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsUpdateConsentedContractTermsRequestTermsRead from a JSON string +contracts_update_consented_contract_terms_request_terms_read_instance = ContractsUpdateConsentedContractTermsRequestTermsRead.from_json(json) +# print the JSON string representation of the object +print(ContractsUpdateConsentedContractTermsRequestTermsRead.to_json()) + +# convert the object into a dict +contracts_update_consented_contract_terms_request_terms_read_dict = contracts_update_consented_contract_terms_request_terms_read_instance.to_dict() +# create an instance of ContractsUpdateConsentedContractTermsRequestTermsRead from a dict +contracts_update_consented_contract_terms_request_terms_read_from_dict = ContractsUpdateConsentedContractTermsRequestTermsRead.from_dict(contracts_update_consented_contract_terms_request_terms_read_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md new file mode 100644 index 0000000000..ead9a98316 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.md @@ -0,0 +1,31 @@ +# ContractsUpdateConsentedContractTermsRequestTermsReadCredentials + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**share_all** | **bool** | | [optional] +**sharing** | **bool** | | [optional] +**categories** | [**Dict[str, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue]**](ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.md) | | [optional] + +## Example + +```python +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials import ContractsUpdateConsentedContractTermsRequestTermsReadCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from a JSON string +contracts_update_consented_contract_terms_request_terms_read_credentials_instance = ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.from_json(json) +# print the JSON string representation of the object +print(ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.to_json()) + +# convert the object into a dict +contracts_update_consented_contract_terms_request_terms_read_credentials_dict = contracts_update_consented_contract_terms_request_terms_read_credentials_instance.to_dict() +# create an instance of ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from a dict +contracts_update_consented_contract_terms_request_terms_read_credentials_from_dict = ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.from_dict(contracts_update_consented_contract_terms_request_terms_read_credentials_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequest.md index 7979e21645..d2bf64a4d2 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **did** | **str** | | **contract_uri** | **str** | | **boost_uri** | **str** | | -**credential** | [**BoostSendBoostRequestCredential**](BoostSendBoostRequestCredential.md) | | +**credential** | [**ContractsWriteCredentialToContractRequestCredential**](ContractsWriteCredentialToContractRequestCredential.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequestCredential.md b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequestCredential.md new file mode 100644 index 0000000000..a47258ae0c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractRequestCredential.md @@ -0,0 +1,52 @@ +# ContractsWriteCredentialToContractRequestCredential + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**protected** | **str** | | +**iv** | **str** | | +**ciphertext** | **str** | | +**tag** | **str** | | +**aad** | **str** | | [optional] +**recipients** | [**List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) | | [optional] + +## Example + +```python +from openapi_client.models.contracts_write_credential_to_contract_request_credential import ContractsWriteCredentialToContractRequestCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractsWriteCredentialToContractRequestCredential from a JSON string +contracts_write_credential_to_contract_request_credential_instance = ContractsWriteCredentialToContractRequestCredential.from_json(json) +# print the JSON string representation of the object +print(ContractsWriteCredentialToContractRequestCredential.to_json()) + +# convert the object into a dict +contracts_write_credential_to_contract_request_credential_dict = contracts_write_credential_to_contract_request_credential_instance.to_dict() +# create an instance of ContractsWriteCredentialToContractRequestCredential from a dict +contracts_write_credential_to_contract_request_credential_from_dict = ContractsWriteCredentialToContractRequestCredential.from_dict(contracts_write_credential_to_contract_request_credential_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md index e6a33a2d20..8dfa389945 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ContractsWriteCredentialToContractViaSigningAuthorityRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **did** | **str** | | **contract_uri** | **str** | | **boost_uri** | **str** | | -**signing_authority** | [**BoostSendBoostViaSigningAuthorityRequestSigningAuthority**](BoostSendBoostViaSigningAuthorityRequestSigningAuthority.md) | | +**signing_authority** | [**ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority**](ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequest.md b/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequest.md index 683c27237e..37debf3c78 100644 --- a/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uri** | **str** | | -**options** | [**BoostSendBoostRequestOptions**](BoostSendBoostRequestOptions.md) | | [optional] +**options** | [**CredentialAcceptCredentialRequestOptions**](CredentialAcceptCredentialRequestOptions.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequestOptions.md b/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequestOptions.md new file mode 100644 index 0000000000..332c2d8cd7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialAcceptCredentialRequestOptions.md @@ -0,0 +1,30 @@ +# CredentialAcceptCredentialRequestOptions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skip_notification** | **bool** | | [optional] [default to False] +**metadata** | **Dict[str, object]** | | [optional] + +## Example + +```python +from openapi_client.models.credential_accept_credential_request_options import CredentialAcceptCredentialRequestOptions + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialAcceptCredentialRequestOptions from a JSON string +credential_accept_credential_request_options_instance = CredentialAcceptCredentialRequestOptions.from_json(json) +# print the JSON string representation of the object +print(CredentialAcceptCredentialRequestOptions.to_json()) + +# convert the object into a dict +credential_accept_credential_request_options_dict = credential_accept_credential_request_options_instance.to_dict() +# create an instance of CredentialAcceptCredentialRequestOptions from a dict +credential_accept_credential_request_options_from_dict = CredentialAcceptCredentialRequestOptions.from_dict(credential_accept_credential_request_options_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/CredentialReceivedCredentials200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/CredentialReceivedCredentials200ResponseInner.md index 3e3c8b4693..c177f6d7a4 100644 --- a/packages/open-api-lcn-clients/python-client/docs/CredentialReceivedCredentials200ResponseInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialReceivedCredentials200ResponseInner.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **var_from** | **str** | | **sent** | **datetime** | | **received** | **datetime** | | [optional] +**metadata** | **Dict[str, object]** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequest.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequest.md index 95f007d4c1..11833c35f1 100644 --- a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **credential** | [**CredentialSendCredentialRequestCredential**](CredentialSendCredentialRequestCredential.md) | | +**metadata** | **Dict[str, object]** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredential.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredential.md index 2a6e7e75b6..8fde995b4c 100644 --- a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredential.md +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredential.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,14 +21,14 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **protected** | **str** | | **iv** | **str** | | **ciphertext** | **str** | | **tag** | **str** | | **aad** | **str** | | [optional] -**recipients** | [**List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]**](BoostSendBoostRequestCredentialAnyOf1RecipientsInner.md) | | [optional] +**recipients** | [**List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf.md index 374c2036da..ab854caf67 100644 --- a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1.md new file mode 100644 index 0000000000..7ff4df69f0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1.md @@ -0,0 +1,34 @@ +# CredentialSendCredentialRequestCredentialAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**protected** | **str** | | +**iv** | **str** | | +**ciphertext** | **str** | | +**tag** | **str** | | +**aad** | **str** | | [optional] +**recipients** | [**List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) | | [optional] + +## Example + +```python +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1 from a JSON string +credential_send_credential_request_credential_any_of1_instance = CredentialSendCredentialRequestCredentialAnyOf1.from_json(json) +# print the JSON string representation of the object +print(CredentialSendCredentialRequestCredentialAnyOf1.to_json()) + +# convert the object into a dict +credential_send_credential_request_credential_any_of1_dict = credential_send_credential_request_credential_any_of1_instance.to_dict() +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1 from a dict +credential_send_credential_request_credential_any_of1_from_dict = CredentialSendCredentialRequestCredentialAnyOf1.from_dict(credential_send_credential_request_credential_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md new file mode 100644 index 0000000000..b5027d5972 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md @@ -0,0 +1,30 @@ +# CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md) | | +**encrypted_key** | **str** | | + +## Example + +```python +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner from a JSON string +credential_send_credential_request_credential_any_of1_recipients_inner_instance = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.from_json(json) +# print the JSON string representation of the object +print(CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.to_json()) + +# convert the object into a dict +credential_send_credential_request_credential_any_of1_recipients_inner_dict = credential_send_credential_request_credential_any_of1_recipients_inner_instance.to_dict() +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner from a dict +credential_send_credential_request_credential_any_of1_recipients_inner_from_dict = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.from_dict(credential_send_credential_request_credential_any_of1_recipients_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md new file mode 100644 index 0000000000..28d4bd6967 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.md @@ -0,0 +1,35 @@ +# CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alg** | **str** | | +**iv** | **str** | | +**tag** | **str** | | +**epk** | [**CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md) | | [optional] +**kid** | **str** | | [optional] +**apv** | **str** | | [optional] +**apu** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader from a JSON string +credential_send_credential_request_credential_any_of1_recipients_inner_header_instance = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.from_json(json) +# print the JSON string representation of the object +print(CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.to_json()) + +# convert the object into a dict +credential_send_credential_request_credential_any_of1_recipients_inner_header_dict = credential_send_credential_request_credential_any_of1_recipients_inner_header_instance.to_dict() +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader from a dict +credential_send_credential_request_credential_any_of1_recipients_inner_header_from_dict = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.from_dict(credential_send_credential_request_credential_any_of1_recipients_inner_header_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md new file mode 100644 index 0000000000..27f08eeb47 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.md @@ -0,0 +1,34 @@ +# CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | | [optional] +**crv** | **str** | | [optional] +**x** | **str** | | [optional] +**y** | **str** | | [optional] +**n** | **str** | | [optional] +**d** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header_epk import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from a JSON string +credential_send_credential_request_credential_any_of1_recipients_inner_header_epk_instance = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.from_json(json) +# print the JSON string representation of the object +print(CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.to_json()) + +# convert the object into a dict +credential_send_credential_request_credential_any_of1_recipients_inner_header_epk_dict = credential_send_credential_request_credential_any_of1_recipients_inner_header_epk_instance.to_dict() +# create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from a dict +credential_send_credential_request_credential_any_of1_recipients_inner_header_epk_from_dict = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.from_dict(credential_send_credential_request_credential_any_of1_recipients_inner_header_epk_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DIDMetadataApi.md b/packages/open-api-lcn-clients/python-client/docs/DIDMetadataApi.md index a210cbcb07..dfe31e2b5b 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DIDMetadataApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/DIDMetadataApi.md @@ -176,7 +176,7 @@ Name | Type | Description | Notes [[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) # **did_metadata_get_did_metadata** -> DidMetadataAddDidMetadataRequest did_metadata_get_did_metadata(id) +> DidMetadataGetDidMetadata200Response did_metadata_get_did_metadata(id) Get DID Metadata @@ -188,7 +188,7 @@ Get DID Metadata ```python import openapi_client -from openapi_client.models.did_metadata_add_did_metadata_request import DidMetadataAddDidMetadataRequest +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response from openapi_client.rest import ApiException from pprint import pprint @@ -234,7 +234,7 @@ Name | Type | Description | Notes ### Return type -[**DidMetadataAddDidMetadataRequest**](DidMetadataAddDidMetadataRequest.md) +[**DidMetadataGetDidMetadata200Response**](DidMetadataGetDidMetadata200Response.md) ### Authorization diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequest.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequest.md index a7a5c35928..caf46451e9 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequest.md @@ -5,19 +5,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | [optional] +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] **id** | **str** | | [optional] **also_known_as** | **str** | | [optional] -**controller** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**controller** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] **verification_method** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**authentication** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**assertion_method** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**key_agreement** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**capability_invocation** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**capability_delegation** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**public_key** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] +**authentication** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**assertion_method** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**key_agreement** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**capability_invocation** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**capability_delegation** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**public_key** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] **service** | [**List[DidMetadataAddDidMetadataRequestServiceInner]**](DidMetadataAddDidMetadataRequestServiceInner.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md new file mode 100644 index 0000000000..7b48a56aa6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInner.md @@ -0,0 +1,36 @@ +# DidMetadataAddDidMetadataRequestAuthenticationInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk**](DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInner from a JSON string +did_metadata_add_did_metadata_request_authentication_inner_instance = DidMetadataAddDidMetadataRequestAuthenticationInner.from_json(json) +# print the JSON string representation of the object +print(DidMetadataAddDidMetadataRequestAuthenticationInner.to_json()) + +# convert the object into a dict +did_metadata_add_did_metadata_request_authentication_inner_dict = did_metadata_add_did_metadata_request_authentication_inner_instance.to_dict() +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInner from a dict +did_metadata_add_did_metadata_request_authentication_inner_from_dict = DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(did_metadata_add_did_metadata_request_authentication_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md new file mode 100644 index 0000000000..8616a325e2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.md @@ -0,0 +1,36 @@ +# DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk**](DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf from a JSON string +did_metadata_add_did_metadata_request_authentication_inner_any_of_instance = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.from_json(json) +# print the JSON string representation of the object +print(DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.to_json()) + +# convert the object into a dict +did_metadata_add_did_metadata_request_authentication_inner_any_of_dict = did_metadata_add_did_metadata_request_authentication_inner_any_of_instance.to_dict() +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf from a dict +did_metadata_add_did_metadata_request_authentication_inner_any_of_from_dict = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.from_dict(did_metadata_add_did_metadata_request_authentication_inner_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md new file mode 100644 index 0000000000..64d1f43919 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.md @@ -0,0 +1,34 @@ +# DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | | +**crv** | **str** | | +**x** | **str** | | +**y** | **str** | | [optional] +**n** | **str** | | [optional] +**d** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from a JSON string +did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk_instance = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.from_json(json) +# print the JSON string representation of the object +print(DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.to_json()) + +# convert the object into a dict +did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk_dict = did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk_instance.to_dict() +# create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from a dict +did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk_from_dict = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.from_dict(did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInner.md index 626f930bc1..5854f3fd12 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInner.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**service_endpoint** | [**DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint**](DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**service_endpoint** | **List[object]** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md deleted file mode 100644 index 24717a7afd..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.md +++ /dev/null @@ -1,28 +0,0 @@ -# DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner_service_endpoint import DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint - -# TODO update the JSON string below -json = "{}" -# create an instance of DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint from a JSON string -did_metadata_add_did_metadata_request_service_inner_service_endpoint_instance = DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.from_json(json) -# print the JSON string representation of the object -print(DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.to_json()) - -# convert the object into a dict -did_metadata_add_did_metadata_request_service_inner_service_endpoint_dict = did_metadata_add_did_metadata_request_service_inner_service_endpoint_instance.to_dict() -# create an instance of DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint from a dict -did_metadata_add_did_metadata_request_service_inner_service_endpoint_from_dict = DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.from_dict(did_metadata_add_did_metadata_request_service_inner_service_endpoint_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md index 4e8a9bf672..6fe9a92955 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInner.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | [optional] +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] **id** | **str** | | **type** | **str** | | **controller** | **str** | | **public_key_jwk** | [**DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk**](DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk.md) | | [optional] **public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] **block_chain_account_id** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md index 7e13db9db0..9c6cf86e0f 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | [optional] +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] **id** | **str** | | **type** | **str** | | **controller** | **str** | | **public_key_jwk** | [**DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk**](DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk.md) | | [optional] **public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] **block_chain_account_id** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200Response.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200Response.md new file mode 100644 index 0000000000..1173c9710e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200Response.md @@ -0,0 +1,41 @@ +# DidMetadataGetDidMetadata200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | [optional] +**also_known_as** | **str** | | [optional] +**controller** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**verification_method** | [**List[DidMetadataGetDidMetadata200ResponseVerificationMethodInner]**](DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md) | | [optional] +**authentication** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**assertion_method** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**key_agreement** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**capability_invocation** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**capability_delegation** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**public_key** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**service** | [**List[DidMetadataGetDidMetadata200ResponseServiceInner]**](DidMetadataGetDidMetadata200ResponseServiceInner.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200Response from a JSON string +did_metadata_get_did_metadata200_response_instance = DidMetadataGetDidMetadata200Response.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200Response.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_dict = did_metadata_get_did_metadata200_response_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200Response from a dict +did_metadata_get_did_metadata200_response_from_dict = DidMetadataGetDidMetadata200Response.from_dict(did_metadata_get_did_metadata200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md new file mode 100644 index 0000000000..bf880dfcc6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInner.md @@ -0,0 +1,36 @@ +# DidMetadataGetDidMetadata200ResponseAuthenticationInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk**](DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInner from a JSON string +did_metadata_get_did_metadata200_response_authentication_inner_instance = DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseAuthenticationInner.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_authentication_inner_dict = did_metadata_get_did_metadata200_response_authentication_inner_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInner from a dict +did_metadata_get_did_metadata200_response_authentication_inner_from_dict = DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(did_metadata_get_did_metadata200_response_authentication_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md new file mode 100644 index 0000000000..1149faea4d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.md @@ -0,0 +1,36 @@ +# DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk**](DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf from a JSON string +did_metadata_get_did_metadata200_response_authentication_inner_any_of_instance = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_authentication_inner_any_of_dict = did_metadata_get_did_metadata200_response_authentication_inner_any_of_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf from a dict +did_metadata_get_did_metadata200_response_authentication_inner_any_of_from_dict = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.from_dict(did_metadata_get_did_metadata200_response_authentication_inner_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md new file mode 100644 index 0000000000..1ecf633f2b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.md @@ -0,0 +1,34 @@ +# DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | | +**crv** | **str** | | +**x** | **str** | | +**y** | **str** | | [optional] +**n** | **str** | | [optional] +**d** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk from a JSON string +did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk_instance = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk_dict = did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk from a dict +did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk_from_dict = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.from_dict(did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseServiceInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseServiceInner.md new file mode 100644 index 0000000000..0cd0efd900 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseServiceInner.md @@ -0,0 +1,31 @@ +# DidMetadataGetDidMetadata200ResponseServiceInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**service_endpoint** | **List[object]** | | + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseServiceInner from a JSON string +did_metadata_get_did_metadata200_response_service_inner_instance = DidMetadataGetDidMetadata200ResponseServiceInner.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseServiceInner.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_service_inner_dict = did_metadata_get_did_metadata200_response_service_inner_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseServiceInner from a dict +did_metadata_get_did_metadata200_response_service_inner_from_dict = DidMetadataGetDidMetadata200ResponseServiceInner.from_dict(did_metadata_get_did_metadata200_response_service_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md new file mode 100644 index 0000000000..3e34a11cd9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInner.md @@ -0,0 +1,36 @@ +# DidMetadataGetDidMetadata200ResponseVerificationMethodInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk**](DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner import DidMetadataGetDidMetadata200ResponseVerificationMethodInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInner from a JSON string +did_metadata_get_did_metadata200_response_verification_method_inner_instance = DidMetadataGetDidMetadata200ResponseVerificationMethodInner.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseVerificationMethodInner.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_verification_method_inner_dict = did_metadata_get_did_metadata200_response_verification_method_inner_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInner from a dict +did_metadata_get_did_metadata200_response_verification_method_inner_from_dict = DidMetadataGetDidMetadata200ResponseVerificationMethodInner.from_dict(did_metadata_get_did_metadata200_response_verification_method_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md new file mode 100644 index 0000000000..44e32f0d93 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.md @@ -0,0 +1,36 @@ +# DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | +**type** | **str** | | +**controller** | **str** | | +**public_key_jwk** | [**DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk**](DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md) | | [optional] +**public_key_base58** | **str** | | [optional] +**public_key_multibase** | **str** | | [optional] +**block_chain_account_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf from a JSON string +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_instance = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_dict = did_metadata_get_did_metadata200_response_verification_method_inner_any_of_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf from a dict +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_from_dict = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.from_dict(did_metadata_get_did_metadata200_response_verification_method_inner_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md new file mode 100644 index 0000000000..8ba1063ea4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.md @@ -0,0 +1,34 @@ +# DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | | +**crv** | **str** | | +**x** | **str** | | +**y** | **str** | | [optional] +**n** | **str** | | [optional] +**d** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from a JSON string +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk_instance = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.from_json(json) +# print the JSON string representation of the object +print(DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.to_json()) + +# convert the object into a dict +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk_dict = did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk_instance.to_dict() +# create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from a dict +did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk_from_dict = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.from_dict(did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetMyDidMetadata200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetMyDidMetadata200ResponseInner.md index 34806e488d..ee2e218b37 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetMyDidMetadata200ResponseInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataGetMyDidMetadata200ResponseInner.md @@ -5,19 +5,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | [optional] +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] **id** | **str** | | **also_known_as** | **str** | | [optional] -**controller** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | [optional] -**verification_method** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**authentication** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**assertion_method** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**key_agreement** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**capability_invocation** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**capability_delegation** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**public_key** | [**List[DidMetadataAddDidMetadataRequestVerificationMethodInner]**](DidMetadataAddDidMetadataRequestVerificationMethodInner.md) | | [optional] -**service** | [**List[DidMetadataAddDidMetadataRequestServiceInner]**](DidMetadataAddDidMetadataRequestServiceInner.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | [optional] +**controller** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**verification_method** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**authentication** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**assertion_method** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**key_agreement** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**capability_invocation** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**capability_delegation** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**public_key** | [**List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]**](DidMetadataGetDidMetadata200ResponseAuthenticationInner.md) | | [optional] +**service** | [**List[DidMetadataGetDidMetadata200ResponseServiceInner]**](DidMetadataGetDidMetadata200ResponseServiceInner.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequest.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequest.md index c3d91d6036..dce7104709 100644 --- a/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**updates** | [**DidMetadataAddDidMetadataRequest**](DidMetadataAddDidMetadataRequest.md) | | +**updates** | [**DidMetadataUpdateDidMetadataRequestUpdates**](DidMetadataUpdateDidMetadataRequestUpdates.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequestUpdates.md new file mode 100644 index 0000000000..876108d91d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/DidMetadataUpdateDidMetadataRequestUpdates.md @@ -0,0 +1,41 @@ +# DidMetadataUpdateDidMetadataRequestUpdates + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | [optional] +**id** | **str** | | [optional] +**also_known_as** | **str** | | [optional] +**controller** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**verification_method** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**authentication** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**assertion_method** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**key_agreement** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**capability_invocation** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**capability_delegation** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**public_key** | [**List[DidMetadataAddDidMetadataRequestAuthenticationInner]**](DidMetadataAddDidMetadataRequestAuthenticationInner.md) | | [optional] +**service** | [**List[DidMetadataGetDidMetadata200ResponseServiceInner]**](DidMetadataGetDidMetadata200ResponseServiceInner.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | [optional] + +## Example + +```python +from openapi_client.models.did_metadata_update_did_metadata_request_updates import DidMetadataUpdateDidMetadataRequestUpdates + +# TODO update the JSON string below +json = "{}" +# create an instance of DidMetadataUpdateDidMetadataRequestUpdates from a JSON string +did_metadata_update_did_metadata_request_updates_instance = DidMetadataUpdateDidMetadataRequestUpdates.from_json(json) +# print the JSON string representation of the object +print(DidMetadataUpdateDidMetadataRequestUpdates.to_json()) + +# convert the object into a dict +did_metadata_update_did_metadata_request_updates_dict = did_metadata_update_did_metadata_request_updates_instance.to_dict() +# create an instance of DidMetadataUpdateDidMetadataRequestUpdates from a dict +did_metadata_update_did_metadata_request_updates_from_dict = DidMetadataUpdateDidMetadataRequestUpdates.from_dict(did_metadata_update_did_metadata_request_updates_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUEST.md b/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUEST.md index 37696c8103..888b2b8ee1 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUEST.md +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUEST.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | The error message | **code** | **str** | The error code | -**issues** | [**List[ContactMethodsSetPrimaryContactMethod200Response]**](ContactMethodsSetPrimaryContactMethod200Response.md) | An array of issues that were responsible for the error | [optional] +**issues** | [**List[ErrorBADREQUESTIssuesInner]**](ErrorBADREQUESTIssuesInner.md) | An array of issues that were responsible for the error | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUESTIssuesInner.md b/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUESTIssuesInner.md new file mode 100644 index 0000000000..e9d01df1fc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorBADREQUESTIssuesInner.md @@ -0,0 +1,29 @@ +# ErrorBADREQUESTIssuesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | + +## Example + +```python +from openapi_client.models.error_badrequest_issues_inner import ErrorBADREQUESTIssuesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ErrorBADREQUESTIssuesInner from a JSON string +error_badrequest_issues_inner_instance = ErrorBADREQUESTIssuesInner.from_json(json) +# print the JSON string representation of the object +print(ErrorBADREQUESTIssuesInner.to_json()) + +# convert the object into a dict +error_badrequest_issues_inner_dict = error_badrequest_issues_inner_instance.to_dict() +# create an instance of ErrorBADREQUESTIssuesInner from a dict +error_badrequest_issues_inner_from_dict = ErrorBADREQUESTIssuesInner.from_dict(error_badrequest_issues_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ErrorFORBIDDEN.md b/packages/open-api-lcn-clients/python-client/docs/ErrorFORBIDDEN.md index 1926ef6e62..75b3db208a 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ErrorFORBIDDEN.md +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorFORBIDDEN.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | The error message | **code** | **str** | The error code | -**issues** | [**List[ContactMethodsSetPrimaryContactMethod200Response]**](ContactMethodsSetPrimaryContactMethod200Response.md) | An array of issues that were responsible for the error | [optional] +**issues** | [**List[ContactMethodsSendChallenge200Response]**](ContactMethodsSendChallenge200Response.md) | An array of issues that were responsible for the error | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ErrorINTERNALSERVERERROR.md b/packages/open-api-lcn-clients/python-client/docs/ErrorINTERNALSERVERERROR.md index a002016cb6..b4bb60df63 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ErrorINTERNALSERVERERROR.md +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorINTERNALSERVERERROR.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | The error message | **code** | **str** | The error code | -**issues** | [**List[ContactMethodsSetPrimaryContactMethod200Response]**](ContactMethodsSetPrimaryContactMethod200Response.md) | An array of issues that were responsible for the error | [optional] +**issues** | [**List[ContactMethodsSendChallenge200Response]**](ContactMethodsSendChallenge200Response.md) | An array of issues that were responsible for the error | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ErrorNOTFOUND.md b/packages/open-api-lcn-clients/python-client/docs/ErrorNOTFOUND.md index 24ad69604c..69085e6895 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ErrorNOTFOUND.md +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorNOTFOUND.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | The error message | **code** | **str** | The error code | -**issues** | [**List[ContactMethodsSetPrimaryContactMethod200Response]**](ContactMethodsSetPrimaryContactMethod200Response.md) | An array of issues that were responsible for the error | [optional] +**issues** | [**List[ContactMethodsSendChallenge200Response]**](ContactMethodsSendChallenge200Response.md) | An array of issues that were responsible for the error | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ErrorUNAUTHORIZED.md b/packages/open-api-lcn-clients/python-client/docs/ErrorUNAUTHORIZED.md index b6bac12e77..90c780a1e4 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ErrorUNAUTHORIZED.md +++ b/packages/open-api-lcn-clients/python-client/docs/ErrorUNAUTHORIZED.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | The error message | **code** | **str** | The error code | -**issues** | [**List[ContactMethodsSetPrimaryContactMethod200Response]**](ContactMethodsSetPrimaryContactMethod200Response.md) | An array of issues that were responsible for the error | [optional] +**issues** | [**List[ContactMethodsSendChallenge200Response]**](ContactMethodsSendChallenge200Response.md) | An array of issues that were responsible for the error | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxApproveGuardianRequestRequest.md b/packages/open-api-lcn-clients/python-client/docs/InboxApproveGuardianRequestRequest.md new file mode 100644 index 0000000000..f828637631 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxApproveGuardianRequestRequest.md @@ -0,0 +1,29 @@ +# InboxApproveGuardianRequestRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxApproveGuardianRequestRequest from a JSON string +inbox_approve_guardian_request_request_instance = InboxApproveGuardianRequestRequest.from_json(json) +# print the JSON string representation of the object +print(InboxApproveGuardianRequestRequest.to_json()) + +# convert the object into a dict +inbox_approve_guardian_request_request_dict = inbox_approve_guardian_request_request_instance.to_dict() +# create an instance of InboxApproveGuardianRequestRequest from a dict +inbox_approve_guardian_request_request_from_dict = InboxApproveGuardianRequestRequest.from_dict(inbox_approve_guardian_request_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaim200Response.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200Response.md new file mode 100644 index 0000000000..a07d26758f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200Response.md @@ -0,0 +1,31 @@ +# InboxClaim200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inbox_credential** | [**InboxClaim200ResponseInboxCredential**](InboxClaim200ResponseInboxCredential.md) | | +**status** | **str** | | +**recipient_did** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim200_response import InboxClaim200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaim200Response from a JSON string +inbox_claim200_response_instance = InboxClaim200Response.from_json(json) +# print the JSON string representation of the object +print(InboxClaim200Response.to_json()) + +# convert the object into a dict +inbox_claim200_response_dict = inbox_claim200_response_instance.to_dict() +# create an instance of InboxClaim200Response from a dict +inbox_claim200_response_from_dict = InboxClaim200Response.from_dict(inbox_claim200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredential.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredential.md new file mode 100644 index 0000000000..9f60e77e02 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredential.md @@ -0,0 +1,38 @@ +# InboxClaim200ResponseInboxCredential + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**credential** | **str** | | +**is_signed** | **bool** | | +**current_status** | **str** | | +**is_accepted** | **bool** | | [optional] +**expires_at** | **str** | | +**created_at** | **str** | | +**issuer_did** | **str** | | +**webhook_url** | **str** | | [optional] +**signing_authority** | [**InboxClaim200ResponseInboxCredentialSigningAuthority**](InboxClaim200ResponseInboxCredentialSigningAuthority.md) | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim200_response_inbox_credential import InboxClaim200ResponseInboxCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaim200ResponseInboxCredential from a JSON string +inbox_claim200_response_inbox_credential_instance = InboxClaim200ResponseInboxCredential.from_json(json) +# print the JSON string representation of the object +print(InboxClaim200ResponseInboxCredential.to_json()) + +# convert the object into a dict +inbox_claim200_response_inbox_credential_dict = inbox_claim200_response_inbox_credential_instance.to_dict() +# create an instance of InboxClaim200ResponseInboxCredential from a dict +inbox_claim200_response_inbox_credential_from_dict = InboxClaim200ResponseInboxCredential.from_dict(inbox_claim200_response_inbox_credential_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md new file mode 100644 index 0000000000..a8f854de80 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaim200ResponseInboxCredentialSigningAuthority.md @@ -0,0 +1,30 @@ +# InboxClaim200ResponseInboxCredentialSigningAuthority + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim200_response_inbox_credential_signing_authority import InboxClaim200ResponseInboxCredentialSigningAuthority + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaim200ResponseInboxCredentialSigningAuthority from a JSON string +inbox_claim200_response_inbox_credential_signing_authority_instance = InboxClaim200ResponseInboxCredentialSigningAuthority.from_json(json) +# print the JSON string representation of the object +print(InboxClaim200ResponseInboxCredentialSigningAuthority.to_json()) + +# convert the object into a dict +inbox_claim200_response_inbox_credential_signing_authority_dict = inbox_claim200_response_inbox_credential_signing_authority_instance.to_dict() +# create an instance of InboxClaim200ResponseInboxCredentialSigningAuthority from a dict +inbox_claim200_response_inbox_credential_signing_authority_from_dict = InboxClaim200ResponseInboxCredentialSigningAuthority.from_dict(inbox_claim200_response_inbox_credential_signing_authority_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequest.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequest.md new file mode 100644 index 0000000000..53af844ca9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequest.md @@ -0,0 +1,30 @@ +# InboxClaimRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential** | [**InboxClaimRequestCredential**](InboxClaimRequestCredential.md) | | +**configuration** | [**InboxClaimRequestConfiguration**](InboxClaimRequestConfiguration.md) | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim_request import InboxClaimRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaimRequest from a JSON string +inbox_claim_request_instance = InboxClaimRequest.from_json(json) +# print the JSON string representation of the object +print(InboxClaimRequest.to_json()) + +# convert the object into a dict +inbox_claim_request_dict = inbox_claim_request_instance.to_dict() +# create an instance of InboxClaimRequest from a dict +inbox_claim_request_from_dict = InboxClaimRequest.from_dict(inbox_claim_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestConfiguration.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestConfiguration.md new file mode 100644 index 0000000000..4552d11cf9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestConfiguration.md @@ -0,0 +1,30 @@ +# InboxClaimRequestConfiguration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publishable_key** | **str** | | +**signing_authority_name** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim_request_configuration import InboxClaimRequestConfiguration + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaimRequestConfiguration from a JSON string +inbox_claim_request_configuration_instance = InboxClaimRequestConfiguration.from_json(json) +# print the JSON string representation of the object +print(InboxClaimRequestConfiguration.to_json()) + +# convert the object into a dict +inbox_claim_request_configuration_dict = inbox_claim_request_configuration_instance.to_dict() +# create an instance of InboxClaimRequestConfiguration from a dict +inbox_claim_request_configuration_from_dict = InboxClaimRequestConfiguration.from_dict(inbox_claim_request_configuration_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestCredential.md b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestCredential.md new file mode 100644 index 0000000000..336f0425cc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxClaimRequestCredential.md @@ -0,0 +1,49 @@ +# InboxClaimRequestCredential + +The credential to issue. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] +**holder** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_claim_request_credential import InboxClaimRequestCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxClaimRequestCredential from a JSON string +inbox_claim_request_credential_instance = InboxClaimRequestCredential.from_json(json) +# print the JSON string representation of the object +print(InboxClaimRequestCredential.to_json()) + +# convert the object into a dict +inbox_claim_request_credential_dict = inbox_claim_request_credential_instance.to_dict() +# create an instance of InboxClaimRequestCredential from a dict +inbox_claim_request_credential_from_dict = InboxClaimRequestCredential.from_dict(inbox_claim_request_credential_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxFinalize200Response.md b/packages/open-api-lcn-clients/python-client/docs/InboxFinalize200Response.md new file mode 100644 index 0000000000..e8ccdd975b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxFinalize200Response.md @@ -0,0 +1,32 @@ +# InboxFinalize200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processed** | **float** | | +**claimed** | **float** | | +**errors** | **float** | | +**verifiable_credentials** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md) | | + +## Example + +```python +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxFinalize200Response from a JSON string +inbox_finalize200_response_instance = InboxFinalize200Response.from_json(json) +# print the JSON string representation of the object +print(InboxFinalize200Response.to_json()) + +# convert the object into a dict +inbox_finalize200_response_dict = inbox_finalize200_response_instance.to_dict() +# create an instance of InboxFinalize200Response from a dict +inbox_finalize200_response_from_dict = InboxFinalize200Response.from_dict(inbox_finalize200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md index 41474caf71..2383e52781 100644 --- a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInner.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes **credential** | **str** | | **is_signed** | **bool** | | **current_status** | **str** | | +**is_accepted** | **bool** | | [optional] **expires_at** | **str** | | **created_at** | **str** | | **issuer_did** | **str** | | **webhook_url** | **str** | | [optional] -**signing_authority_endpoint** | **str** | | [optional] -**signing_authority_name** | **str** | | [optional] +**signing_authority** | [**InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority**](InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md new file mode 100644 index 0000000000..0fb9cdd4fd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.md @@ -0,0 +1,30 @@ +# InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner_signing_authority import InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from a JSON string +inbox_get_my_issued_credentials200_response_records_inner_signing_authority_instance = InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.from_json(json) +# print the JSON string representation of the object +print(InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.to_json()) + +# convert the object into a dict +inbox_get_my_issued_credentials200_response_records_inner_signing_authority_dict = inbox_get_my_issued_credentials200_response_records_inner_signing_authority_instance.to_dict() +# create an instance of InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from a dict +inbox_get_my_issued_credentials200_response_records_inner_signing_authority_from_dict = InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.from_dict(inbox_get_my_issued_credentials200_response_records_inner_signing_authority_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequest.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequest.md index 5f4245520a..3303f518d9 100644 --- a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **cursor** | **str** | | [optional] **sort** | **str** | | [optional] **query** | [**InboxGetMyIssuedCredentialsRequestQuery**](InboxGetMyIssuedCredentialsRequestQuery.md) | | [optional] -**recipient** | [**InboxIssue200ResponseRecipient**](InboxIssue200ResponseRecipient.md) | | [optional] +**recipient** | [**InboxGetMyIssuedCredentialsRequestRecipient**](InboxGetMyIssuedCredentialsRequestRecipient.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestQuery.md index ea4553188b..39d48f2a4f 100644 --- a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestQuery.md +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestQuery.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **current_status** | **str** | | [optional] **id** | **str** | | [optional] **is_signed** | **bool** | | [optional] +**is_accepted** | **bool** | | [optional] **issuer_did** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipient.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipient.md new file mode 100644 index 0000000000..677e02f963 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipient.md @@ -0,0 +1,30 @@ +# InboxGetMyIssuedCredentialsRequestRecipient + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient import InboxGetMyIssuedCredentialsRequestRecipient + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxGetMyIssuedCredentialsRequestRecipient from a JSON string +inbox_get_my_issued_credentials_request_recipient_instance = InboxGetMyIssuedCredentialsRequestRecipient.from_json(json) +# print the JSON string representation of the object +print(InboxGetMyIssuedCredentialsRequestRecipient.to_json()) + +# convert the object into a dict +inbox_get_my_issued_credentials_request_recipient_dict = inbox_get_my_issued_credentials_request_recipient_instance.to_dict() +# create an instance of InboxGetMyIssuedCredentialsRequestRecipient from a dict +inbox_get_my_issued_credentials_request_recipient_from_dict = InboxGetMyIssuedCredentialsRequestRecipient.from_dict(inbox_get_my_issued_credentials_request_recipient_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md new file mode 100644 index 0000000000..c2b023f853 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxGetMyIssuedCredentialsRequestRecipientOneOf.md @@ -0,0 +1,30 @@ +# InboxGetMyIssuedCredentialsRequestRecipientOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient_one_of import InboxGetMyIssuedCredentialsRequestRecipientOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxGetMyIssuedCredentialsRequestRecipientOneOf from a JSON string +inbox_get_my_issued_credentials_request_recipient_one_of_instance = InboxGetMyIssuedCredentialsRequestRecipientOneOf.from_json(json) +# print the JSON string representation of the object +print(InboxGetMyIssuedCredentialsRequestRecipientOneOf.to_json()) + +# convert the object into a dict +inbox_get_my_issued_credentials_request_recipient_one_of_dict = inbox_get_my_issued_credentials_request_recipient_one_of_instance.to_dict() +# create an instance of InboxGetMyIssuedCredentialsRequestRecipientOneOf from a dict +inbox_get_my_issued_credentials_request_recipient_one_of_from_dict = InboxGetMyIssuedCredentialsRequestRecipientOneOf.from_dict(inbox_get_my_issued_credentials_request_recipient_one_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf.md b/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf.md new file mode 100644 index 0000000000..889e7e7877 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf.md @@ -0,0 +1,30 @@ +# InboxIssue200ResponseRecipientOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_issue200_response_recipient_one_of import InboxIssue200ResponseRecipientOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxIssue200ResponseRecipientOneOf from a JSON string +inbox_issue200_response_recipient_one_of_instance = InboxIssue200ResponseRecipientOneOf.from_json(json) +# print the JSON string representation of the object +print(InboxIssue200ResponseRecipientOneOf.to_json()) + +# convert the object into a dict +inbox_issue200_response_recipient_one_of_dict = inbox_issue200_response_recipient_one_of_instance.to_dict() +# create an instance of InboxIssue200ResponseRecipientOneOf from a dict +inbox_issue200_response_recipient_one_of_from_dict = InboxIssue200ResponseRecipientOneOf.from_dict(inbox_issue200_response_recipient_one_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf1.md b/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf1.md new file mode 100644 index 0000000000..3f51df0669 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxIssue200ResponseRecipientOneOf1.md @@ -0,0 +1,30 @@ +# InboxIssue200ResponseRecipientOneOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**value** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_issue200_response_recipient_one_of1 import InboxIssue200ResponseRecipientOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxIssue200ResponseRecipientOneOf1 from a JSON string +inbox_issue200_response_recipient_one_of1_instance = InboxIssue200ResponseRecipientOneOf1.from_json(json) +# print the JSON string representation of the object +print(InboxIssue200ResponseRecipientOneOf1.to_json()) + +# convert the object into a dict +inbox_issue200_response_recipient_one_of1_dict = inbox_issue200_response_recipient_one_of1_instance.to_dict() +# create an instance of InboxIssue200ResponseRecipientOneOf1 from a dict +inbox_issue200_response_recipient_one_of1_from_dict = InboxIssue200ResponseRecipientOneOf1.from_dict(inbox_issue200_response_recipient_one_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredential.md b/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredential.md index d312e61d46..d1a262a43f 100644 --- a/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredential.md +++ b/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredential.md @@ -6,13 +6,13 @@ The credential to issue. If not signed, the users default signing authority will Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -22,8 +22,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredentialAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredentialAnyOf.md index f09d4e296b..9e1743e709 100644 --- a/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredentialAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/InboxIssueRequestCredentialAnyOf.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmail200Response.md b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmail200Response.md new file mode 100644 index 0000000000..31c90a4fa4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmail200Response.md @@ -0,0 +1,30 @@ +# InboxSendGuardianApprovalEmail200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | +**approval_url** | **str** | | + +## Example + +```python +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxSendGuardianApprovalEmail200Response from a JSON string +inbox_send_guardian_approval_email200_response_instance = InboxSendGuardianApprovalEmail200Response.from_json(json) +# print the JSON string representation of the object +print(InboxSendGuardianApprovalEmail200Response.to_json()) + +# convert the object into a dict +inbox_send_guardian_approval_email200_response_dict = inbox_send_guardian_approval_email200_response_instance.to_dict() +# create an instance of InboxSendGuardianApprovalEmail200Response from a dict +inbox_send_guardian_approval_email200_response_from_dict = InboxSendGuardianApprovalEmail200Response.from_dict(inbox_send_guardian_approval_email200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequest.md b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequest.md new file mode 100644 index 0000000000..4707a457d3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequest.md @@ -0,0 +1,31 @@ +# InboxSendGuardianApprovalEmailRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guardian_email** | **str** | | +**ttl_hours** | **int** | | [optional] +**template** | [**InboxSendGuardianApprovalEmailRequestTemplate**](InboxSendGuardianApprovalEmailRequestTemplate.md) | | [optional] + +## Example + +```python +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxSendGuardianApprovalEmailRequest from a JSON string +inbox_send_guardian_approval_email_request_instance = InboxSendGuardianApprovalEmailRequest.from_json(json) +# print the JSON string representation of the object +print(InboxSendGuardianApprovalEmailRequest.to_json()) + +# convert the object into a dict +inbox_send_guardian_approval_email_request_dict = inbox_send_guardian_approval_email_request_instance.to_dict() +# create an instance of InboxSendGuardianApprovalEmailRequest from a dict +inbox_send_guardian_approval_email_request_from_dict = InboxSendGuardianApprovalEmailRequest.from_dict(inbox_send_guardian_approval_email_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequestTemplate.md b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequestTemplate.md new file mode 100644 index 0000000000..39c8ecc856 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/InboxSendGuardianApprovalEmailRequestTemplate.md @@ -0,0 +1,30 @@ +# InboxSendGuardianApprovalEmailRequestTemplate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**model** | **Dict[str, object]** | | [optional] + +## Example + +```python +from openapi_client.models.inbox_send_guardian_approval_email_request_template import InboxSendGuardianApprovalEmailRequestTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of InboxSendGuardianApprovalEmailRequestTemplate from a JSON string +inbox_send_guardian_approval_email_request_template_instance = InboxSendGuardianApprovalEmailRequestTemplate.from_json(json) +# print the JSON string representation of the object +print(InboxSendGuardianApprovalEmailRequestTemplate.to_json()) + +# convert the object into a dict +inbox_send_guardian_approval_email_request_template_dict = inbox_send_guardian_approval_email_request_template_instance.to_dict() +# create an instance of InboxSendGuardianApprovalEmailRequestTemplate from a dict +inbox_send_guardian_approval_email_request_template_from_dict = InboxSendGuardianApprovalEmailRequestTemplate.from_dict(inbox_send_guardian_approval_email_request_template_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequest.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequest.md new file mode 100644 index 0000000000..2e5a824ddb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequest.md @@ -0,0 +1,31 @@ +# IntegrationsAddIntegrationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**description** | **str** | | [optional] +**whitelisted_domains** | [**List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]**](IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md) | | [optional] [default to []] + +## Example + +```python +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsAddIntegrationRequest from a JSON string +integrations_add_integration_request_instance = IntegrationsAddIntegrationRequest.from_json(json) +# print the JSON string representation of the object +print(IntegrationsAddIntegrationRequest.to_json()) + +# convert the object into a dict +integrations_add_integration_request_dict = integrations_add_integration_request_instance.to_dict() +# create an instance of IntegrationsAddIntegrationRequest from a dict +integrations_add_integration_request_from_dict = IntegrationsAddIntegrationRequest.from_dict(integrations_add_integration_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md new file mode 100644 index 0000000000..371267ff61 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md @@ -0,0 +1,28 @@ +# IntegrationsAddIntegrationRequestWhitelistedDomainsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsAddIntegrationRequestWhitelistedDomainsInner from a JSON string +integrations_add_integration_request_whitelisted_domains_inner_instance = IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_json(json) +# print the JSON string representation of the object +print(IntegrationsAddIntegrationRequestWhitelistedDomainsInner.to_json()) + +# convert the object into a dict +integrations_add_integration_request_whitelisted_domains_inner_dict = integrations_add_integration_request_whitelisted_domains_inner_instance.to_dict() +# create an instance of IntegrationsAddIntegrationRequestWhitelistedDomainsInner from a dict +integrations_add_integration_request_whitelisted_domains_inner_from_dict = IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_dict(integrations_add_integration_request_whitelisted_domains_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsApi.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsApi.md new file mode 100644 index 0000000000..c2c29f09c8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsApi.md @@ -0,0 +1,595 @@ +# openapi_client.IntegrationsApi + +All URIs are relative to *https://network.learncard.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**integrations_add_integration**](IntegrationsApi.md#integrations_add_integration) | **POST** /integration/create | Create Integration +[**integrations_associate_integration_with_signing_authority**](IntegrationsApi.md#integrations_associate_integration_with_signing_authority) | **POST** /integration/{integrationId}/associate-with-signing-authority | Associate Integration with Signing Authority +[**integrations_count_integrations**](IntegrationsApi.md#integrations_count_integrations) | **POST** /profile/integrations/count | Count My Integrations +[**integrations_delete_integration**](IntegrationsApi.md#integrations_delete_integration) | **DELETE** /integration/{id} | Delete Integration +[**integrations_get_integration**](IntegrationsApi.md#integrations_get_integration) | **GET** /integration/{id} | Get Integration +[**integrations_get_integrations**](IntegrationsApi.md#integrations_get_integrations) | **POST** /profile/integrations | Get My Integrations +[**integrations_update_integration**](IntegrationsApi.md#integrations_update_integration) | **POST** /integration/update/{id} | Update Integration + + +# **integrations_add_integration** +> str integrations_add_integration(integrations_add_integration_request) + +Create Integration + +Create a new Integration for your profile + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + integrations_add_integration_request = openapi_client.IntegrationsAddIntegrationRequest() # IntegrationsAddIntegrationRequest | + + try: + # Create Integration + api_response = api_instance.integrations_add_integration(integrations_add_integration_request) + print("The response of IntegrationsApi->integrations_add_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_add_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integrations_add_integration_request** | [**IntegrationsAddIntegrationRequest**](IntegrationsAddIntegrationRequest.md)| | + +### Return type + +**str** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_associate_integration_with_signing_authority** +> bool integrations_associate_integration_with_signing_authority(integration_id, integrations_associate_integration_with_signing_authority_request) + +Associate Integration with Signing Authority + +Associate an Integration with a Signing Authority + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + integration_id = 'integration_id_example' # str | + integrations_associate_integration_with_signing_authority_request = openapi_client.IntegrationsAssociateIntegrationWithSigningAuthorityRequest() # IntegrationsAssociateIntegrationWithSigningAuthorityRequest | + + try: + # Associate Integration with Signing Authority + api_response = api_instance.integrations_associate_integration_with_signing_authority(integration_id, integrations_associate_integration_with_signing_authority_request) + print("The response of IntegrationsApi->integrations_associate_integration_with_signing_authority:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_associate_integration_with_signing_authority: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integration_id** | **str**| | + **integrations_associate_integration_with_signing_authority_request** | [**IntegrationsAssociateIntegrationWithSigningAuthorityRequest**](IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_count_integrations** +> float integrations_count_integrations(integrations_count_integrations_request=integrations_count_integrations_request) + +Count My Integrations + +Get a count of your Integrations matching a query + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + integrations_count_integrations_request = openapi_client.IntegrationsCountIntegrationsRequest() # IntegrationsCountIntegrationsRequest | (optional) + + try: + # Count My Integrations + api_response = api_instance.integrations_count_integrations(integrations_count_integrations_request=integrations_count_integrations_request) + print("The response of IntegrationsApi->integrations_count_integrations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_count_integrations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integrations_count_integrations_request** | [**IntegrationsCountIntegrationsRequest**](IntegrationsCountIntegrationsRequest.md)| | [optional] + +### Return type + +**float** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_delete_integration** +> bool integrations_delete_integration(id) + +Delete Integration + +Delete an Integration by id + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + id = 'id_example' # str | + + try: + # Delete Integration + api_response = api_instance.integrations_delete_integration(id) + print("The response of IntegrationsApi->integrations_delete_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_delete_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_get_integration** +> IntegrationsGetIntegration200Response integrations_get_integration(id) + +Get Integration + +Get an Integration by id + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + id = 'id_example' # str | + + try: + # Get Integration + api_response = api_instance.integrations_get_integration(id) + print("The response of IntegrationsApi->integrations_get_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_get_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**IntegrationsGetIntegration200Response**](IntegrationsGetIntegration200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_get_integrations** +> IntegrationsGetIntegrations200Response integrations_get_integrations(integrations_get_integrations_request=integrations_get_integrations_request) + +Get My Integrations + +Get your Integrations with cursor-based pagination + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + integrations_get_integrations_request = openapi_client.IntegrationsGetIntegrationsRequest() # IntegrationsGetIntegrationsRequest | (optional) + + try: + # Get My Integrations + api_response = api_instance.integrations_get_integrations(integrations_get_integrations_request=integrations_get_integrations_request) + print("The response of IntegrationsApi->integrations_get_integrations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_get_integrations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **integrations_get_integrations_request** | [**IntegrationsGetIntegrationsRequest**](IntegrationsGetIntegrationsRequest.md)| | [optional] + +### Return type + +[**IntegrationsGetIntegrations200Response**](IntegrationsGetIntegrations200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **integrations_update_integration** +> bool integrations_update_integration(id, integrations_update_integration_request) + +Update Integration + +Update an Integration by id + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.IntegrationsApi(api_client) + id = 'id_example' # str | + integrations_update_integration_request = openapi_client.IntegrationsUpdateIntegrationRequest() # IntegrationsUpdateIntegrationRequest | + + try: + # Update Integration + api_response = api_instance.integrations_update_integration(id, integrations_update_integration_request) + print("The response of IntegrationsApi->integrations_update_integration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationsApi->integrations_update_integration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **integrations_update_integration_request** | [**IntegrationsUpdateIntegrationRequest**](IntegrationsUpdateIntegrationRequest.md)| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md new file mode 100644 index 0000000000..407a2b3263 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsAssociateIntegrationWithSigningAuthorityRequest.md @@ -0,0 +1,32 @@ +# IntegrationsAssociateIntegrationWithSigningAuthorityRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | | +**name** | **str** | | +**did** | **str** | | +**is_primary** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsAssociateIntegrationWithSigningAuthorityRequest from a JSON string +integrations_associate_integration_with_signing_authority_request_instance = IntegrationsAssociateIntegrationWithSigningAuthorityRequest.from_json(json) +# print the JSON string representation of the object +print(IntegrationsAssociateIntegrationWithSigningAuthorityRequest.to_json()) + +# convert the object into a dict +integrations_associate_integration_with_signing_authority_request_dict = integrations_associate_integration_with_signing_authority_request_instance.to_dict() +# create an instance of IntegrationsAssociateIntegrationWithSigningAuthorityRequest from a dict +integrations_associate_integration_with_signing_authority_request_from_dict = IntegrationsAssociateIntegrationWithSigningAuthorityRequest.from_dict(integrations_associate_integration_with_signing_authority_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsCountIntegrationsRequest.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsCountIntegrationsRequest.md new file mode 100644 index 0000000000..b5adee9ce6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsCountIntegrationsRequest.md @@ -0,0 +1,29 @@ +# IntegrationsCountIntegrationsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query** | [**IntegrationsGetIntegrationsRequestQuery**](IntegrationsGetIntegrationsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsCountIntegrationsRequest from a JSON string +integrations_count_integrations_request_instance = IntegrationsCountIntegrationsRequest.from_json(json) +# print the JSON string representation of the object +print(IntegrationsCountIntegrationsRequest.to_json()) + +# convert the object into a dict +integrations_count_integrations_request_dict = integrations_count_integrations_request_instance.to_dict() +# create an instance of IntegrationsCountIntegrationsRequest from a dict +integrations_count_integrations_request_from_dict = IntegrationsCountIntegrationsRequest.from_dict(integrations_count_integrations_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegration200Response.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegration200Response.md new file mode 100644 index 0000000000..29e172b4c3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegration200Response.md @@ -0,0 +1,33 @@ +# IntegrationsGetIntegration200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**description** | **str** | | [optional] +**publishable_key** | **str** | | +**whitelisted_domains** | [**List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]**](IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md) | | [default to []] + +## Example + +```python +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsGetIntegration200Response from a JSON string +integrations_get_integration200_response_instance = IntegrationsGetIntegration200Response.from_json(json) +# print the JSON string representation of the object +print(IntegrationsGetIntegration200Response.to_json()) + +# convert the object into a dict +integrations_get_integration200_response_dict = integrations_get_integration200_response_instance.to_dict() +# create an instance of IntegrationsGetIntegration200Response from a dict +integrations_get_integration200_response_from_dict = IntegrationsGetIntegration200Response.from_dict(integrations_get_integration200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200Response.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200Response.md new file mode 100644 index 0000000000..ac8acbada3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200Response.md @@ -0,0 +1,31 @@ +# IntegrationsGetIntegrations200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **str** | | [optional] +**has_more** | **bool** | | +**records** | [**List[IntegrationsGetIntegrations200ResponseRecordsInner]**](IntegrationsGetIntegrations200ResponseRecordsInner.md) | | + +## Example + +```python +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsGetIntegrations200Response from a JSON string +integrations_get_integrations200_response_instance = IntegrationsGetIntegrations200Response.from_json(json) +# print the JSON string representation of the object +print(IntegrationsGetIntegrations200Response.to_json()) + +# convert the object into a dict +integrations_get_integrations200_response_dict = integrations_get_integrations200_response_instance.to_dict() +# create an instance of IntegrationsGetIntegrations200Response from a dict +integrations_get_integrations200_response_from_dict = IntegrationsGetIntegrations200Response.from_dict(integrations_get_integrations200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200ResponseRecordsInner.md new file mode 100644 index 0000000000..8272204240 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrations200ResponseRecordsInner.md @@ -0,0 +1,33 @@ +# IntegrationsGetIntegrations200ResponseRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**description** | **str** | | [optional] +**publishable_key** | **str** | | +**whitelisted_domains** | [**List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]**](IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md) | | [default to []] + +## Example + +```python +from openapi_client.models.integrations_get_integrations200_response_records_inner import IntegrationsGetIntegrations200ResponseRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsGetIntegrations200ResponseRecordsInner from a JSON string +integrations_get_integrations200_response_records_inner_instance = IntegrationsGetIntegrations200ResponseRecordsInner.from_json(json) +# print the JSON string representation of the object +print(IntegrationsGetIntegrations200ResponseRecordsInner.to_json()) + +# convert the object into a dict +integrations_get_integrations200_response_records_inner_dict = integrations_get_integrations200_response_records_inner_instance.to_dict() +# create an instance of IntegrationsGetIntegrations200ResponseRecordsInner from a dict +integrations_get_integrations200_response_records_inner_from_dict = IntegrationsGetIntegrations200ResponseRecordsInner.from_dict(integrations_get_integrations200_response_records_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequest.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequest.md new file mode 100644 index 0000000000..e72a5eddf7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequest.md @@ -0,0 +1,31 @@ +# IntegrationsGetIntegrationsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] +**cursor** | **str** | | [optional] +**query** | [**IntegrationsGetIntegrationsRequestQuery**](IntegrationsGetIntegrationsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsGetIntegrationsRequest from a JSON string +integrations_get_integrations_request_instance = IntegrationsGetIntegrationsRequest.from_json(json) +# print the JSON string representation of the object +print(IntegrationsGetIntegrationsRequest.to_json()) + +# convert the object into a dict +integrations_get_integrations_request_dict = integrations_get_integrations_request_instance.to_dict() +# create an instance of IntegrationsGetIntegrationsRequest from a dict +integrations_get_integrations_request_from_dict = IntegrationsGetIntegrationsRequest.from_dict(integrations_get_integrations_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequestQuery.md new file mode 100644 index 0000000000..d76e6902ff --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsGetIntegrationsRequestQuery.md @@ -0,0 +1,31 @@ +# IntegrationsGetIntegrationsRequestQuery + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**name** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] + +## Example + +```python +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsGetIntegrationsRequestQuery from a JSON string +integrations_get_integrations_request_query_instance = IntegrationsGetIntegrationsRequestQuery.from_json(json) +# print the JSON string representation of the object +print(IntegrationsGetIntegrationsRequestQuery.to_json()) + +# convert the object into a dict +integrations_get_integrations_request_query_dict = integrations_get_integrations_request_query_instance.to_dict() +# create an instance of IntegrationsGetIntegrationsRequestQuery from a dict +integrations_get_integrations_request_query_from_dict = IntegrationsGetIntegrationsRequestQuery.from_dict(integrations_get_integrations_request_query_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequest.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequest.md new file mode 100644 index 0000000000..0ae5ed7c5f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequest.md @@ -0,0 +1,29 @@ +# IntegrationsUpdateIntegrationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updates** | [**IntegrationsUpdateIntegrationRequestUpdates**](IntegrationsUpdateIntegrationRequestUpdates.md) | | + +## Example + +```python +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsUpdateIntegrationRequest from a JSON string +integrations_update_integration_request_instance = IntegrationsUpdateIntegrationRequest.from_json(json) +# print the JSON string representation of the object +print(IntegrationsUpdateIntegrationRequest.to_json()) + +# convert the object into a dict +integrations_update_integration_request_dict = integrations_update_integration_request_instance.to_dict() +# create an instance of IntegrationsUpdateIntegrationRequest from a dict +integrations_update_integration_request_from_dict = IntegrationsUpdateIntegrationRequest.from_dict(integrations_update_integration_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequestUpdates.md b/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequestUpdates.md new file mode 100644 index 0000000000..e70397ca83 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/IntegrationsUpdateIntegrationRequestUpdates.md @@ -0,0 +1,32 @@ +# IntegrationsUpdateIntegrationRequestUpdates + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**whitelisted_domains** | [**List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]**](IntegrationsAddIntegrationRequestWhitelistedDomainsInner.md) | | [optional] +**rotate_publishable_key** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.integrations_update_integration_request_updates import IntegrationsUpdateIntegrationRequestUpdates + +# TODO update the JSON string below +json = "{}" +# create an instance of IntegrationsUpdateIntegrationRequestUpdates from a JSON string +integrations_update_integration_request_updates_instance = IntegrationsUpdateIntegrationRequestUpdates.from_json(json) +# print the JSON string representation of the object +print(IntegrationsUpdateIntegrationRequestUpdates.to_json()) + +# convert the object into a dict +integrations_update_integration_request_updates_dict = integrations_update_integration_request_updates_instance.to_dict() +# create an instance of IntegrationsUpdateIntegrationRequestUpdates from a dict +integrations_update_integration_request_updates_from_dict = IntegrationsUpdateIntegrationRequestUpdates.from_dict(integrations_update_integration_request_updates_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentation.md b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentation.md index fa20a07cb4..da8b9b907b 100644 --- a/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentation.md +++ b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentation.md @@ -5,18 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **protected** | **str** | | **iv** | **str** | | **ciphertext** | **str** | | **tag** | **str** | | **aad** | **str** | | [optional] -**recipients** | [**List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]**](BoostSendBoostRequestCredentialAnyOf1RecipientsInner.md) | | [optional] +**recipients** | [**List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOf.md index d08fc9d72e..6066ba6178 100644 --- a/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOf.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md index c8b9cdd473..5ce6fd5093 100644 --- a/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md +++ b/packages/open-api-lcn-clients/python-client/docs/PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] **type** | **List[str]** | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequest.md index eb7588548a..9a85880596 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequest.md @@ -16,9 +16,12 @@ Name | Type | Description | Notes **website_link** | **str** | Website link for the profile. | [optional] **type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] **notifications_webhook** | **str** | URL to send notifications to. | [optional] -**display** | [**BoostGetBoostRecipients200ResponseInnerToDisplay**](BoostGetBoostRecipients200ResponseInnerToDisplay.md) | | [optional] +**display** | [**ProfileCreateProfileRequestDisplay**](ProfileCreateProfileRequestDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] **role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] **dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequestDisplay.md b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequestDisplay.md new file mode 100644 index 0000000000..5a881ab81f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateProfileRequestDisplay.md @@ -0,0 +1,40 @@ +# ProfileCreateProfileRequestDisplay + +Display settings for the profile. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**background_color** | **str** | | [optional] +**background_image** | **str** | | [optional] +**fade_background_image** | **bool** | | [optional] +**repeat_background_image** | **bool** | | [optional] +**font_color** | **str** | | [optional] +**accent_color** | **str** | | [optional] +**accent_font_color** | **str** | | [optional] +**id_background_image** | **str** | | [optional] +**fade_id_background_image** | **bool** | | [optional] +**id_background_color** | **str** | | [optional] +**repeat_id_background_image** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.profile_create_profile_request_display import ProfileCreateProfileRequestDisplay + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileCreateProfileRequestDisplay from a JSON string +profile_create_profile_request_display_instance = ProfileCreateProfileRequestDisplay.from_json(json) +# print the JSON string representation of the object +print(ProfileCreateProfileRequestDisplay.to_json()) + +# convert the object into a dict +profile_create_profile_request_display_dict = profile_create_profile_request_display_instance.to_dict() +# create an instance of ProfileCreateProfileRequestDisplay from a dict +profile_create_profile_request_display_from_dict = ProfileCreateProfileRequestDisplay.from_dict(profile_create_profile_request_display_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequest.md new file mode 100644 index 0000000000..51cbc24a9a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequest.md @@ -0,0 +1,45 @@ +# ProfileCreateServiceProfileRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile_id** | **str** | Unique, URL-safe identifier for the profile. | +**display_name** | **str** | Human-readable display name for the profile. | [optional] [default to ''] +**short_bio** | **str** | Short bio for the profile. | [optional] [default to ''] +**bio** | **str** | Longer bio for the profile. | [optional] [default to ''] +**is_private** | **bool** | Whether the profile is private or not and shows up in search results. | [optional] +**email** | **str** | Contact email address for the profile. (deprecated) | [optional] +**image** | **str** | Profile image URL for the profile. | [optional] +**hero_image** | **str** | Hero image URL for the profile. | [optional] +**website_link** | **str** | Website link for the profile. | [optional] +**type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] +**notifications_webhook** | **str** | URL to send notifications to. | [optional] +**display** | [**ProfileCreateServiceProfileRequestDisplay**](ProfileCreateServiceProfileRequestDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] +**role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] +**dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] + +## Example + +```python +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileCreateServiceProfileRequest from a JSON string +profile_create_service_profile_request_instance = ProfileCreateServiceProfileRequest.from_json(json) +# print the JSON string representation of the object +print(ProfileCreateServiceProfileRequest.to_json()) + +# convert the object into a dict +profile_create_service_profile_request_dict = profile_create_service_profile_request_instance.to_dict() +# create an instance of ProfileCreateServiceProfileRequest from a dict +profile_create_service_profile_request_from_dict = ProfileCreateServiceProfileRequest.from_dict(profile_create_service_profile_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequestDisplay.md b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequestDisplay.md new file mode 100644 index 0000000000..616d9d9e59 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileCreateServiceProfileRequestDisplay.md @@ -0,0 +1,40 @@ +# ProfileCreateServiceProfileRequestDisplay + +Display settings for the profile. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**background_color** | **str** | | [optional] +**background_image** | **str** | | [optional] +**fade_background_image** | **bool** | | [optional] +**repeat_background_image** | **bool** | | [optional] +**font_color** | **str** | | [optional] +**accent_color** | **str** | | [optional] +**accent_font_color** | **str** | | [optional] +**id_background_image** | **str** | | [optional] +**fade_id_background_image** | **bool** | | [optional] +**id_background_color** | **str** | | [optional] +**repeat_id_background_image** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileCreateServiceProfileRequestDisplay from a JSON string +profile_create_service_profile_request_display_instance = ProfileCreateServiceProfileRequestDisplay.from_json(json) +# print the JSON string representation of the object +print(ProfileCreateServiceProfileRequestDisplay.to_json()) + +# convert the object into a dict +profile_create_service_profile_request_display_dict = profile_create_service_profile_request_display_instance.to_dict() +# create an instance of ProfileCreateServiceProfileRequestDisplay from a dict +profile_create_service_profile_request_display_from_dict = ProfileCreateServiceProfileRequestDisplay.from_dict(profile_create_service_profile_request_display_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileGenerateInviteRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileGenerateInviteRequest.md index 62816889ef..183736272a 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileGenerateInviteRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileGenerateInviteRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **expiration** | **float** | | [optional] [default to 2592000] **challenge** | **str** | | [optional] +**max_uses** | **int** | | [optional] [default to 1] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md b/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md index e0c0c24188..c935e01ab2 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInner.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**profile** | [**BoostGetBoostRecipients200ResponseInnerTo**](BoostGetBoostRecipients200ResponseInnerTo.md) | | -**manager** | [**BoostGetChildrenProfileManagers200ResponseRecordsInner**](BoostGetChildrenProfileManagers200ResponseRecordsInner.md) | | [optional] +**profile** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) | | +**manager** | [**ProfileGetAvailableProfiles200ResponseRecordsInnerManager**](ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md b/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md new file mode 100644 index 0000000000..e137af4533 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md @@ -0,0 +1,37 @@ +# ProfileGetAvailableProfiles200ResponseRecordsInnerManager + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**created** | **str** | | +**display_name** | **str** | | [optional] [default to ''] +**short_bio** | **str** | | [optional] [default to ''] +**bio** | **str** | | [optional] [default to ''] +**email** | **str** | | [optional] +**image** | **str** | | [optional] +**hero_image** | **str** | | [optional] +**did** | **str** | | + +## Example + +```python +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileGetAvailableProfiles200ResponseRecordsInnerManager from a JSON string +profile_get_available_profiles200_response_records_inner_manager_instance = ProfileGetAvailableProfiles200ResponseRecordsInnerManager.from_json(json) +# print the JSON string representation of the object +print(ProfileGetAvailableProfiles200ResponseRecordsInnerManager.to_json()) + +# convert the object into a dict +profile_get_available_profiles200_response_records_inner_manager_dict = profile_get_available_profiles200_response_records_inner_manager_instance.to_dict() +# create an instance of ProfileGetAvailableProfiles200ResponseRecordsInnerManager from a dict +profile_get_available_profiles200_response_records_inner_manager_from_dict = ProfileGetAvailableProfiles200ResponseRecordsInnerManager.from_dict(profile_get_available_profiles200_response_records_inner_manager_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileListInvites200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/ProfileListInvites200ResponseInner.md new file mode 100644 index 0000000000..eeb4a18ea5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileListInvites200ResponseInner.md @@ -0,0 +1,32 @@ +# ProfileListInvites200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**challenge** | **str** | | +**expires_in** | **float** | | +**uses_remaining** | **float** | | +**max_uses** | **float** | | + +## Example + +```python +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileListInvites200ResponseInner from a JSON string +profile_list_invites200_response_inner_instance = ProfileListInvites200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(ProfileListInvites200ResponseInner.to_json()) + +# convert the object into a dict +profile_list_invites200_response_inner_dict = profile_list_invites200_response_inner_instance.to_dict() +# create an instance of ProfileListInvites200ResponseInner from a dict +profile_list_invites200_response_inner_from_dict = ProfileListInvites200ResponseInner.from_dict(profile_list_invites200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequest.md index c044507709..eea0243735 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **parent_uri** | **str** | | -**profile** | [**ProfileManagerCreateProfileManagerRequest**](ProfileManagerCreateProfileManagerRequest.md) | | +**profile** | [**ProfileManagerCreateChildProfileManagerRequestProfile**](ProfileManagerCreateChildProfileManagerRequestProfile.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequestProfile.md b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequestProfile.md new file mode 100644 index 0000000000..c7f6276c95 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateChildProfileManagerRequestProfile.md @@ -0,0 +1,34 @@ +# ProfileManagerCreateChildProfileManagerRequestProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | | [optional] [default to ''] +**short_bio** | **str** | | [optional] [default to ''] +**bio** | **str** | | [optional] [default to ''] +**email** | **str** | | [optional] +**image** | **str** | | [optional] +**hero_image** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileManagerCreateChildProfileManagerRequestProfile from a JSON string +profile_manager_create_child_profile_manager_request_profile_instance = ProfileManagerCreateChildProfileManagerRequestProfile.from_json(json) +# print the JSON string representation of the object +print(ProfileManagerCreateChildProfileManagerRequestProfile.to_json()) + +# convert the object into a dict +profile_manager_create_child_profile_manager_request_profile_dict = profile_manager_create_child_profile_manager_request_profile_instance.to_dict() +# create an instance of ProfileManagerCreateChildProfileManagerRequestProfile from a dict +profile_manager_create_child_profile_manager_request_profile_from_dict = ProfileManagerCreateChildProfileManagerRequestProfile.from_dict(profile_manager_create_child_profile_manager_request_profile_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateManagedProfileRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateManagedProfileRequest.md index 965d9234d8..0ccb5a5d69 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateManagedProfileRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerCreateManagedProfileRequest.md @@ -17,9 +17,12 @@ Name | Type | Description | Notes **is_service_profile** | **bool** | Whether the profile is a service profile or not. | [optional] [default to False] **type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] **notifications_webhook** | **str** | URL to send notifications to. | [optional] -**display** | [**BoostGetBoostRecipients200ResponseInnerToDisplay**](BoostGetBoostRecipients200ResponseInnerToDisplay.md) | | [optional] +**display** | [**ProfileCreateServiceProfileRequestDisplay**](ProfileCreateServiceProfileRequestDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] **role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] **dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileManagerGetManagedProfilesRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerGetManagedProfilesRequest.md new file mode 100644 index 0000000000..895139fa5f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileManagerGetManagedProfilesRequest.md @@ -0,0 +1,32 @@ +# ProfileManagerGetManagedProfilesRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | | [optional] [default to 25] +**cursor** | **str** | | [optional] +**sort** | **str** | | [optional] +**query** | [**BoostGetPaginatedBoostRecipientsRequestQuery**](BoostGetPaginatedBoostRecipientsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileManagerGetManagedProfilesRequest from a JSON string +profile_manager_get_managed_profiles_request_instance = ProfileManagerGetManagedProfilesRequest.from_json(json) +# print the JSON string representation of the object +print(ProfileManagerGetManagedProfilesRequest.to_json()) + +# convert the object into a dict +profile_manager_get_managed_profiles_request_dict = profile_manager_get_managed_profiles_request_instance.to_dict() +# create an instance of ProfileManagerGetManagedProfilesRequest from a dict +profile_manager_get_managed_profiles_request_from_dict = ProfileManagerGetManagedProfilesRequest.from_dict(profile_manager_get_managed_profiles_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileManagersApi.md b/packages/open-api-lcn-clients/python-client/docs/ProfileManagersApi.md index cee75dbca2..e0a19212b3 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileManagersApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileManagersApi.md @@ -344,7 +344,7 @@ Name | Type | Description | Notes [[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) # **profile_manager_get_managed_profiles** -> BoostGetBoostAdmins200Response profile_manager_get_managed_profiles(profile_get_available_profiles_request=profile_get_available_profiles_request) +> BoostGetBoostAdmins200Response profile_manager_get_managed_profiles(profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request) Managed Profiles @@ -357,7 +357,7 @@ This route gets all of your managed profiles ```python import openapi_client from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response -from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest from openapi_client.rest import ApiException from pprint import pprint @@ -381,11 +381,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ProfileManagersApi(api_client) - profile_get_available_profiles_request = openapi_client.ProfileGetAvailableProfilesRequest() # ProfileGetAvailableProfilesRequest | (optional) + profile_manager_get_managed_profiles_request = openapi_client.ProfileManagerGetManagedProfilesRequest() # ProfileManagerGetManagedProfilesRequest | (optional) try: # Managed Profiles - api_response = api_instance.profile_manager_get_managed_profiles(profile_get_available_profiles_request=profile_get_available_profiles_request) + api_response = api_instance.profile_manager_get_managed_profiles(profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request) print("The response of ProfileManagersApi->profile_manager_get_managed_profiles:\n") pprint(api_response) except Exception as e: @@ -399,7 +399,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **profile_get_available_profiles_request** | [**ProfileGetAvailableProfilesRequest**](ProfileGetAvailableProfilesRequest.md)| | [optional] + **profile_manager_get_managed_profiles_request** | [**ProfileManagerGetManagedProfilesRequest**](ProfileManagerGetManagedProfilesRequest.md)| | [optional] ### Return type @@ -427,7 +427,7 @@ Name | Type | Description | Notes [[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) # **profile_manager_get_other_profile_manager** -> BoostGetChildrenProfileManagers200ResponseRecordsInner profile_manager_get_other_profile_manager(id) +> ProfileGetAvailableProfiles200ResponseRecordsInnerManager profile_manager_get_other_profile_manager(id) Get profile manager information @@ -439,7 +439,7 @@ This route grabs the profile information of any profile manager, using their id ```python import openapi_client -from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager from openapi_client.rest import ApiException from pprint import pprint @@ -485,7 +485,7 @@ Name | Type | Description | Notes ### Return type -[**BoostGetChildrenProfileManagers200ResponseRecordsInner**](BoostGetChildrenProfileManagers200ResponseRecordsInner.md) +[**ProfileGetAvailableProfiles200ResponseRecordsInnerManager**](ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md) ### Authorization @@ -510,7 +510,7 @@ Name | Type | Description | Notes [[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) # **profile_manager_get_profile_manager** -> BoostGetChildrenProfileManagers200ResponseRecordsInner profile_manager_get_profile_manager() +> ProfileGetAvailableProfiles200ResponseRecordsInnerManager profile_manager_get_profile_manager() Get your profile manager profile information @@ -522,7 +522,7 @@ This route uses the request header to grab the profile manager profile of the cu ```python import openapi_client -from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager from openapi_client.rest import ApiException from pprint import pprint @@ -564,7 +564,7 @@ This endpoint does not need any parameter. ### Return type -[**BoostGetChildrenProfileManagers200ResponseRecordsInner**](BoostGetChildrenProfileManagers200ResponseRecordsInner.md) +[**ProfileGetAvailableProfiles200ResponseRecordsInnerManager**](ProfileGetAvailableProfiles200ResponseRecordsInnerManager.md) ### Authorization @@ -587,7 +587,7 @@ This endpoint does not need any parameter. [[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) # **profile_manager_update_profile_manager** -> bool profile_manager_update_profile_manager(profile_manager_create_profile_manager_request) +> bool profile_manager_update_profile_manager(profile_manager_create_child_profile_manager_request_profile) Update the profile of your Profile Manager @@ -599,7 +599,7 @@ This route updates the profile of the current profile manager ```python import openapi_client -from openapi_client.models.profile_manager_create_profile_manager_request import ProfileManagerCreateProfileManagerRequest +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile from openapi_client.rest import ApiException from pprint import pprint @@ -623,11 +623,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ProfileManagersApi(api_client) - profile_manager_create_profile_manager_request = openapi_client.ProfileManagerCreateProfileManagerRequest() # ProfileManagerCreateProfileManagerRequest | + profile_manager_create_child_profile_manager_request_profile = openapi_client.ProfileManagerCreateChildProfileManagerRequestProfile() # ProfileManagerCreateChildProfileManagerRequestProfile | try: # Update the profile of your Profile Manager - api_response = api_instance.profile_manager_update_profile_manager(profile_manager_create_profile_manager_request) + api_response = api_instance.profile_manager_update_profile_manager(profile_manager_create_child_profile_manager_request_profile) print("The response of ProfileManagersApi->profile_manager_update_profile_manager:\n") pprint(api_response) except Exception as e: @@ -641,7 +641,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **profile_manager_create_profile_manager_request** | [**ProfileManagerCreateProfileManagerRequest**](ProfileManagerCreateProfileManagerRequest.md)| | + **profile_manager_create_child_profile_manager_request_profile** | [**ProfileManagerCreateChildProfileManagerRequestProfile**](ProfileManagerCreateChildProfileManagerRequestProfile.md)| | ### Return type diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileSearchProfiles200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/ProfileSearchProfiles200ResponseInner.md index ab1afc77fe..b5ee4394c5 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileSearchProfiles200ResponseInner.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileSearchProfiles200ResponseInner.md @@ -18,9 +18,12 @@ Name | Type | Description | Notes **is_service_profile** | **bool** | Whether the profile is a service profile or not. | [optional] [default to False] **type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] **notifications_webhook** | **str** | URL to send notifications to. | [optional] -**display** | [**BoostGetBoostRecipients200ResponseInnerToDisplay**](BoostGetBoostRecipients200ResponseInnerToDisplay.md) | | [optional] +**display** | [**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] **role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] **dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] **connection_status** | **str** | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200Response.md b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200Response.md new file mode 100644 index 0000000000..6565740498 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200Response.md @@ -0,0 +1,30 @@ +# ProfileSigningAuthority200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signing_authority** | [**ProfileSigningAuthority200ResponseSigningAuthority**](ProfileSigningAuthority200ResponseSigningAuthority.md) | | +**relationship** | [**ProfileSigningAuthority200ResponseRelationship**](ProfileSigningAuthority200ResponseRelationship.md) | | + +## Example + +```python +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileSigningAuthority200Response from a JSON string +profile_signing_authority200_response_instance = ProfileSigningAuthority200Response.from_json(json) +# print the JSON string representation of the object +print(ProfileSigningAuthority200Response.to_json()) + +# convert the object into a dict +profile_signing_authority200_response_dict = profile_signing_authority200_response_instance.to_dict() +# create an instance of ProfileSigningAuthority200Response from a dict +profile_signing_authority200_response_from_dict = ProfileSigningAuthority200Response.from_dict(profile_signing_authority200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseRelationship.md b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseRelationship.md new file mode 100644 index 0000000000..890c81e786 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseRelationship.md @@ -0,0 +1,31 @@ +# ProfileSigningAuthority200ResponseRelationship + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**did** | **str** | | +**is_primary** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.profile_signing_authority200_response_relationship import ProfileSigningAuthority200ResponseRelationship + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileSigningAuthority200ResponseRelationship from a JSON string +profile_signing_authority200_response_relationship_instance = ProfileSigningAuthority200ResponseRelationship.from_json(json) +# print the JSON string representation of the object +print(ProfileSigningAuthority200ResponseRelationship.to_json()) + +# convert the object into a dict +profile_signing_authority200_response_relationship_dict = profile_signing_authority200_response_relationship_instance.to_dict() +# create an instance of ProfileSigningAuthority200ResponseRelationship from a dict +profile_signing_authority200_response_relationship_from_dict = ProfileSigningAuthority200ResponseRelationship.from_dict(profile_signing_authority200_response_relationship_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseSigningAuthority.md b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseSigningAuthority.md new file mode 100644 index 0000000000..82ed549d09 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileSigningAuthority200ResponseSigningAuthority.md @@ -0,0 +1,29 @@ +# ProfileSigningAuthority200ResponseSigningAuthority + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | | + +## Example + +```python +from openapi_client.models.profile_signing_authority200_response_signing_authority import ProfileSigningAuthority200ResponseSigningAuthority + +# TODO update the JSON string below +json = "{}" +# create an instance of ProfileSigningAuthority200ResponseSigningAuthority from a JSON string +profile_signing_authority200_response_signing_authority_instance = ProfileSigningAuthority200ResponseSigningAuthority.from_json(json) +# print the JSON string representation of the object +print(ProfileSigningAuthority200ResponseSigningAuthority.to_json()) + +# convert the object into a dict +profile_signing_authority200_response_signing_authority_dict = profile_signing_authority200_response_signing_authority_instance.to_dict() +# create an instance of ProfileSigningAuthority200ResponseSigningAuthority from a dict +profile_signing_authority200_response_signing_authority_from_dict = ProfileSigningAuthority200ResponseSigningAuthority.from_dict(profile_signing_authority200_response_signing_authority_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/ProfileUpdateProfileRequest.md b/packages/open-api-lcn-clients/python-client/docs/ProfileUpdateProfileRequest.md index 2f2b1ab0fe..1525bd1a49 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfileUpdateProfileRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfileUpdateProfileRequest.md @@ -16,9 +16,12 @@ Name | Type | Description | Notes **website_link** | **str** | Website link for the profile. | [optional] **type** | **str** | Profile type: e.g. \"person\", \"organization\", \"service\". | [optional] **notifications_webhook** | **str** | URL to send notifications to. | [optional] -**display** | [**BoostGetBoostRecipients200ResponseInnerToDisplay**](BoostGetBoostRecipients200ResponseInnerToDisplay.md) | | [optional] +**display** | [**ProfileCreateServiceProfileRequestDisplay**](ProfileCreateServiceProfileRequestDisplay.md) | | [optional] +**highlighted_credentials** | **List[str]** | Up to 5 unique boost URIs to highlight on the profile. | [optional] **role** | **str** | Role of the profile: e.g. \"teacher\", \"student\". | [optional] [default to ''] **dob** | **str** | Date of birth of the profile: e.g. \"1990-01-01\". | [optional] [default to ''] +**country** | **str** | Country for the profile. | [optional] +**approved** | **bool** | Approval status for the profile. | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/ProfilesApi.md b/packages/open-api-lcn-clients/python-client/docs/ProfilesApi.md index 06685679cc..262616b700 100644 --- a/packages/open-api-lcn-clients/python-client/docs/ProfilesApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/ProfilesApi.md @@ -4,6 +4,9 @@ All URIs are relative to *https://network.learncard.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**inbox_approve_guardian_request**](ProfilesApi.md#inbox_approve_guardian_request) | **POST** /inbox/guardian-approval/approve | Approve Guardian Request +[**inbox_approve_guardian_request_by_path**](ProfilesApi.md#inbox_approve_guardian_request_by_path) | **GET** /inbox/guardian-approval/{token} | Approve Guardian Request (GET) +[**inbox_send_guardian_approval_email**](ProfilesApi.md#inbox_send_guardian_approval_email) | **POST** /inbox/guardian-approval/send | Send Guardian Approval Email [**profile_accept_connection_request**](ProfilesApi.md#profile_accept_connection_request) | **POST** /profile/{profileId}/accept-connection | Accept Connection Request [**profile_block_profile**](ProfilesApi.md#profile_block_profile) | **POST** /profile/{profileId}/block | Block another profile [**profile_blocked**](ProfilesApi.md#profile_blocked) | **GET** /profile/blocked | View blocked profiles @@ -22,6 +25,8 @@ Method | HTTP request | Description [**profile_get_managed_service_profiles**](ProfilesApi.md#profile_get_managed_service_profiles) | **GET** /profile/managed-services | Managed Service Profiles [**profile_get_other_profile**](ProfilesApi.md#profile_get_other_profile) | **GET** /profile/{profileId} | Get profile information [**profile_get_profile**](ProfilesApi.md#profile_get_profile) | **GET** /profile | Get your profile information +[**profile_invalidate_invite**](ProfilesApi.md#profile_invalidate_invite) | **POST** /profile/invite/{challenge}/invalidate | Invalidate an invitation +[**profile_list_invites**](ProfilesApi.md#profile_list_invites) | **GET** /profile/invites | List valid connection invitations [**profile_manager_create_managed_profile**](ProfilesApi.md#profile_manager_create_managed_profile) | **POST** /profile/create-managed-profile | Create a managed profile [**profile_manager_get_managed_profiles**](ProfilesApi.md#profile_manager_get_managed_profiles) | **POST** /profile/managed-profiles | Managed Profiles [**profile_paginated_connection_requests**](ProfilesApi.md#profile_paginated_connection_requests) | **GET** /profile/connection-requests/paginated | View connection requests @@ -38,6 +43,255 @@ Method | HTTP request | Description [**profile_update_profile**](ProfilesApi.md#profile_update_profile) | **POST** /profile | Update your profile +# **inbox_approve_guardian_request** +> ContactMethodsSendChallenge200Response inbox_approve_guardian_request(inbox_approve_guardian_request_request) + +Approve Guardian Request + +Consumes a guardian approval token and marks the requesting user profile as approved. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ProfilesApi(api_client) + inbox_approve_guardian_request_request = openapi_client.InboxApproveGuardianRequestRequest() # InboxApproveGuardianRequestRequest | + + try: + # Approve Guardian Request + api_response = api_instance.inbox_approve_guardian_request(inbox_approve_guardian_request_request) + print("The response of ProfilesApi->inbox_approve_guardian_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfilesApi->inbox_approve_guardian_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inbox_approve_guardian_request_request** | [**InboxApproveGuardianRequestRequest**](InboxApproveGuardianRequestRequest.md)| | + +### Return type + +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **inbox_approve_guardian_request_by_path** +> ContactMethodsSendChallenge200Response inbox_approve_guardian_request_by_path(token) + +Approve Guardian Request (GET) + +GET endpoint to consume guardian approval token from URL path. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ProfilesApi(api_client) + token = 'token_example' # str | + + try: + # Approve Guardian Request (GET) + api_response = api_instance.inbox_approve_guardian_request_by_path(token) + print("The response of ProfilesApi->inbox_approve_guardian_request_by_path:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfilesApi->inbox_approve_guardian_request_by_path: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **inbox_send_guardian_approval_email** +> InboxSendGuardianApprovalEmail200Response inbox_send_guardian_approval_email(inbox_send_guardian_approval_email_request) + +Send Guardian Approval Email + +Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ProfilesApi(api_client) + inbox_send_guardian_approval_email_request = openapi_client.InboxSendGuardianApprovalEmailRequest() # InboxSendGuardianApprovalEmailRequest | + + try: + # Send Guardian Approval Email + api_response = api_instance.inbox_send_guardian_approval_email(inbox_send_guardian_approval_email_request) + print("The response of ProfilesApi->inbox_send_guardian_approval_email:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfilesApi->inbox_send_guardian_approval_email: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inbox_send_guardian_approval_email_request** | [**InboxSendGuardianApprovalEmailRequest**](InboxSendGuardianApprovalEmailRequest.md)| | + +### Return type + +[**InboxSendGuardianApprovalEmail200Response**](InboxSendGuardianApprovalEmail200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **profile_accept_connection_request** > bool profile_accept_connection_request(profile_id) @@ -201,7 +455,7 @@ Name | Type | Description | Notes [[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) # **profile_blocked** -> List[BoostGetBoostRecipients200ResponseInnerTo] profile_blocked() +> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] profile_blocked() View blocked profiles @@ -213,7 +467,7 @@ This route shows the current user's blocked profiles ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -255,7 +509,7 @@ This endpoint does not need any parameter. ### Return type -[**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) ### Authorization @@ -444,8 +698,6 @@ Name | Type | Description | Notes Connect using an invitation -Connects with another profile using an invitation challenge - ### Example * Bearer Authentication (Authorization): @@ -523,7 +775,7 @@ Name | Type | Description | Notes [[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) # **profile_connection_requests** -> List[BoostGetBoostRecipients200ResponseInnerTo] profile_connection_requests() +> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] profile_connection_requests() View connection requests @@ -536,7 +788,7 @@ Warning! This route is deprecated and currently has a hard limit of returning on ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -578,7 +830,7 @@ This endpoint does not need any parameter. ### Return type -[**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) ### Authorization @@ -601,7 +853,7 @@ This endpoint does not need any parameter. [[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) # **profile_connections** -> List[BoostGetBoostRecipients200ResponseInnerTo] profile_connections() +> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] profile_connections() View connections @@ -614,7 +866,7 @@ Warning! This route is deprecated and currently has a hard limit of returning on ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -656,7 +908,7 @@ This endpoint does not need any parameter. ### Return type -[**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) ### Authorization @@ -679,7 +931,7 @@ This endpoint does not need any parameter. [[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) # **profile_create_managed_service_profile** -> str profile_create_managed_service_profile(profile_create_profile_request) +> str profile_create_managed_service_profile(profile_create_service_profile_request) Create a managed service profile @@ -691,7 +943,7 @@ Creates a managed service profile ```python import openapi_client -from openapi_client.models.profile_create_profile_request import ProfileCreateProfileRequest +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest from openapi_client.rest import ApiException from pprint import pprint @@ -715,11 +967,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ProfilesApi(api_client) - profile_create_profile_request = openapi_client.ProfileCreateProfileRequest() # ProfileCreateProfileRequest | + profile_create_service_profile_request = openapi_client.ProfileCreateServiceProfileRequest() # ProfileCreateServiceProfileRequest | try: # Create a managed service profile - api_response = api_instance.profile_create_managed_service_profile(profile_create_profile_request) + api_response = api_instance.profile_create_managed_service_profile(profile_create_service_profile_request) print("The response of ProfilesApi->profile_create_managed_service_profile:\n") pprint(api_response) except Exception as e: @@ -733,7 +985,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **profile_create_profile_request** | [**ProfileCreateProfileRequest**](ProfileCreateProfileRequest.md)| | + **profile_create_service_profile_request** | [**ProfileCreateServiceProfileRequest**](ProfileCreateServiceProfileRequest.md)| | ### Return type @@ -843,7 +1095,7 @@ Name | Type | Description | Notes [[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) # **profile_create_service_profile** -> str profile_create_service_profile(profile_create_profile_request) +> str profile_create_service_profile(profile_create_service_profile_request) Create a service profile @@ -855,7 +1107,7 @@ Creates a service profile ```python import openapi_client -from openapi_client.models.profile_create_profile_request import ProfileCreateProfileRequest +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest from openapi_client.rest import ApiException from pprint import pprint @@ -879,11 +1131,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ProfilesApi(api_client) - profile_create_profile_request = openapi_client.ProfileCreateProfileRequest() # ProfileCreateProfileRequest | + profile_create_service_profile_request = openapi_client.ProfileCreateServiceProfileRequest() # ProfileCreateServiceProfileRequest | try: # Create a service profile - api_response = api_instance.profile_create_service_profile(profile_create_profile_request) + api_response = api_instance.profile_create_service_profile(profile_create_service_profile_request) print("The response of ProfilesApi->profile_create_service_profile:\n") pprint(api_response) except Exception as e: @@ -897,7 +1149,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **profile_create_profile_request** | [**ProfileCreateProfileRequest**](ProfileCreateProfileRequest.md)| | + **profile_create_service_profile_request** | [**ProfileCreateServiceProfileRequest**](ProfileCreateServiceProfileRequest.md)| | ### Return type @@ -1086,7 +1338,7 @@ Name | Type | Description | Notes Generate a connection invitation -This route creates a one-time challenge that an unknown profile can use to connect with this account +Generate a connection invitation challenge. By default, invites are single-use; set maxUses > 1 for multi-use, or maxUses = 0 for unlimited. Expiration is in seconds (default 30 days); set expiration = 0 for no expiration. ### Example @@ -1337,7 +1589,7 @@ Name | Type | Description | Notes [[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) # **profile_get_other_profile** -> BoostGetBoostRecipients200ResponseInnerTo profile_get_other_profile(profile_id) +> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo profile_get_other_profile(profile_id) Get profile information @@ -1349,7 +1601,7 @@ This route grabs the profile information of any user, using their profileId ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -1395,7 +1647,7 @@ Name | Type | Description | Notes ### Return type -[**BoostGetBoostRecipients200ResponseInnerTo**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) ### Authorization @@ -1420,7 +1672,7 @@ Name | Type | Description | Notes [[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) # **profile_get_profile** -> BoostGetBoostRecipients200ResponseInnerTo profile_get_profile() +> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo profile_get_profile() Get your profile information @@ -1432,7 +1684,7 @@ This route uses the request header to grab the profile of the current user ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -1474,7 +1726,165 @@ This endpoint does not need any parameter. ### Return type -[**BoostGetBoostRecipients200ResponseInnerTo**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **profile_invalidate_invite** +> bool profile_invalidate_invite(challenge) + +Invalidate an invitation + +Invalidate a specific connection invitation by its challenge string. Idempotent: returns true even if the invite was already invalid or missing. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ProfilesApi(api_client) + challenge = 'challenge_example' # str | + + try: + # Invalidate an invitation + api_response = api_instance.profile_invalidate_invite(challenge) + print("The response of ProfilesApi->profile_invalidate_invite:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfilesApi->profile_invalidate_invite: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **challenge** | **str**| | + +### Return type + +**bool** + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **profile_list_invites** +> List[ProfileListInvites200ResponseInner] profile_list_invites() + +List valid connection invitations + +List all valid connection invitation links you've created. Each item includes: challenge, expiresIn (seconds or null), usesRemaining (number or null), and maxUses (number or null). Exhausted invites are omitted. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.ProfilesApi(api_client) + + try: + # List valid connection invitations + api_response = api_instance.profile_list_invites() + print("The response of ProfilesApi->profile_list_invites:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProfilesApi->profile_list_invites: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[ProfileListInvites200ResponseInner]**](ProfileListInvites200ResponseInner.md) ### Authorization @@ -1579,7 +1989,7 @@ Name | Type | Description | Notes [[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) # **profile_manager_get_managed_profiles** -> BoostGetBoostAdmins200Response profile_manager_get_managed_profiles(profile_get_available_profiles_request=profile_get_available_profiles_request) +> BoostGetBoostAdmins200Response profile_manager_get_managed_profiles(profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request) Managed Profiles @@ -1592,7 +2002,7 @@ This route gets all of your managed profiles ```python import openapi_client from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response -from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest from openapi_client.rest import ApiException from pprint import pprint @@ -1616,11 +2026,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.ProfilesApi(api_client) - profile_get_available_profiles_request = openapi_client.ProfileGetAvailableProfilesRequest() # ProfileGetAvailableProfilesRequest | (optional) + profile_manager_get_managed_profiles_request = openapi_client.ProfileManagerGetManagedProfilesRequest() # ProfileManagerGetManagedProfilesRequest | (optional) try: # Managed Profiles - api_response = api_instance.profile_manager_get_managed_profiles(profile_get_available_profiles_request=profile_get_available_profiles_request) + api_response = api_instance.profile_manager_get_managed_profiles(profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request) print("The response of ProfilesApi->profile_manager_get_managed_profiles:\n") pprint(api_response) except Exception as e: @@ -1634,7 +2044,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **profile_get_available_profiles_request** | [**ProfileGetAvailableProfilesRequest**](ProfileGetAvailableProfilesRequest.md)| | [optional] + **profile_manager_get_managed_profiles_request** | [**ProfileManagerGetManagedProfilesRequest**](ProfileManagerGetManagedProfilesRequest.md)| | [optional] ### Return type @@ -1923,7 +2333,7 @@ Name | Type | Description | Notes [[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) # **profile_pending_connections** -> List[BoostGetBoostRecipients200ResponseInnerTo] profile_pending_connections() +> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] profile_pending_connections() View pending connections @@ -1936,7 +2346,7 @@ Warning! This route is deprecated and currently has a hard limit of returning on ```python import openapi_client -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.rest import ApiException from pprint import pprint @@ -1978,7 +2388,7 @@ This endpoint does not need any parameter. ### Return type -[**List[BoostGetBoostRecipients200ResponseInnerTo]**](BoostGetBoostRecipients200ResponseInnerTo.md) +[**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) ### Authorization @@ -2001,7 +2411,7 @@ This endpoint does not need any parameter. [[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) # **profile_primary_signing_authority** -> ProfileSigningAuthorities200ResponseInner profile_primary_signing_authority() +> ProfileSigningAuthority200Response profile_primary_signing_authority() Get primary Signing Authority for user @@ -2013,7 +2423,7 @@ This route is used to get the primary signing authority that can sign credential ```python import openapi_client -from openapi_client.models.profile_signing_authorities200_response_inner import ProfileSigningAuthorities200ResponseInner +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response from openapi_client.rest import ApiException from pprint import pprint @@ -2055,7 +2465,7 @@ This endpoint does not need any parameter. ### Return type -[**ProfileSigningAuthorities200ResponseInner**](ProfileSigningAuthorities200ResponseInner.md) +[**ProfileSigningAuthority200Response**](ProfileSigningAuthority200Response.md) ### Authorization @@ -2410,7 +2820,7 @@ This endpoint does not need any parameter. [[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) # **profile_signing_authority** -> ProfileSigningAuthorities200ResponseInner profile_signing_authority(endpoint, name) +> ProfileSigningAuthority200Response profile_signing_authority(endpoint, name) Get Signing Authority for user @@ -2422,7 +2832,7 @@ This route is used to get a named signing authority that can sign credentials on ```python import openapi_client -from openapi_client.models.profile_signing_authorities200_response_inner import ProfileSigningAuthorities200ResponseInner +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response from openapi_client.rest import ApiException from pprint import pprint @@ -2470,7 +2880,7 @@ Name | Type | Description | Notes ### Return type -[**ProfileSigningAuthorities200ResponseInner**](ProfileSigningAuthorities200ResponseInner.md) +[**ProfileSigningAuthority200Response**](ProfileSigningAuthority200Response.md) ### Authorization diff --git a/packages/open-api-lcn-clients/python-client/docs/Schema0.md b/packages/open-api-lcn-clients/python-client/docs/Schema0.md new file mode 100644 index 0000000000..b91904271b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/Schema0.md @@ -0,0 +1,36 @@ +# Schema0 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [optional] +**status** | **str** | | [optional] +**children** | [**List[Schema0]**](Schema0.md) | | [optional] + +## Example + +```python +from openapi_client.models.schema0 import Schema0 + +# TODO update the JSON string below +json = "{}" +# create an instance of Schema0 from a JSON string +schema0_instance = Schema0.from_json(json) +# print the JSON string representation of the object +print(Schema0.to_json()) + +# convert the object into a dict +schema0_dict = schema0_instance.to_dict() +# create an instance of Schema0 from a dict +schema0_from_dict = Schema0.from_dict(schema0_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/Schema1.md b/packages/open-api-lcn-clients/python-client/docs/Schema1.md new file mode 100644 index 0000000000..abfd97af08 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/Schema1.md @@ -0,0 +1,41 @@ +# Schema1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [default to 'skill'] +**status** | **str** | | [default to 'active'] +**framework_id** | **str** | | [optional] +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] +**children** | [**List[Schema1]**](Schema1.md) | | +**has_children** | **bool** | | +**children_cursor** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.schema1 import Schema1 + +# TODO update the JSON string below +json = "{}" +# create an instance of Schema1 from a JSON string +schema1_instance = Schema1.from_json(json) +# print the JSON string representation of the object +print(Schema1.to_json()) + +# convert the object into a dict +schema1_dict = schema1_instance.to_dict() +# create an instance of Schema1 from a dict +schema1_from_dict = Schema1.from_dict(schema1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SendApi.md b/packages/open-api-lcn-clients/python-client/docs/SendApi.md new file mode 100644 index 0000000000..5c755d0adc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SendApi.md @@ -0,0 +1,92 @@ +# openapi_client.SendApi + +All URIs are relative to *https://network.learncard.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**boost_send**](SendApi.md#boost_send) | **POST** /send | Send data to a recipient + + +# **boost_send** +> BoostSend200Response boost_send(boost_send_request) + +Send data to a recipient + +Sends data to a recipient. For boosts: creates a boost if needed, auto-issues a credential from its template, and sends it. If a contractUri is provided and the recipient has consent with write permission for the boost category, the credential is sent through the contract; otherwise it is sent normally. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_send200_response import BoostSend200Response +from openapi_client.models.boost_send_request import BoostSendRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SendApi(api_client) + boost_send_request = openapi_client.BoostSendRequest() # BoostSendRequest | + + try: + # Send data to a recipient + api_response = api_instance.boost_send(boost_send_request) + print("The response of SendApi->boost_send:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SendApi->boost_send: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boost_send_request** | [**BoostSendRequest**](BoostSendRequest.md)| | + +### Return type + +[**BoostSend200Response**](BoostSend200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdmin200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdmin200Response.md new file mode 100644 index 0000000000..5a5bcd8701 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdmin200Response.md @@ -0,0 +1,29 @@ +# SkillFrameworksAddFrameworkAdmin200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksAddFrameworkAdmin200Response from a JSON string +skill_frameworks_add_framework_admin200_response_instance = SkillFrameworksAddFrameworkAdmin200Response.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksAddFrameworkAdmin200Response.to_json()) + +# convert the object into a dict +skill_frameworks_add_framework_admin200_response_dict = skill_frameworks_add_framework_admin200_response_instance.to_dict() +# create an instance of SkillFrameworksAddFrameworkAdmin200Response from a dict +skill_frameworks_add_framework_admin200_response_from_dict = SkillFrameworksAddFrameworkAdmin200Response.from_dict(skill_frameworks_add_framework_admin200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdminRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdminRequest.md new file mode 100644 index 0000000000..7236df25b5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksAddFrameworkAdminRequest.md @@ -0,0 +1,29 @@ +# SkillFrameworksAddFrameworkAdminRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile_id** | **str** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksAddFrameworkAdminRequest from a JSON string +skill_frameworks_add_framework_admin_request_instance = SkillFrameworksAddFrameworkAdminRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksAddFrameworkAdminRequest.to_json()) + +# convert the object into a dict +skill_frameworks_add_framework_admin_request_dict = skill_frameworks_add_framework_admin_request_instance.to_dict() +# create an instance of SkillFrameworksAddFrameworkAdminRequest from a dict +skill_frameworks_add_framework_admin_request_from_dict = SkillFrameworksAddFrameworkAdminRequest.from_dict(skill_frameworks_add_framework_admin_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCountBoostsThatUseFramework200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCountBoostsThatUseFramework200Response.md new file mode 100644 index 0000000000..a9541facfe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCountBoostsThatUseFramework200Response.md @@ -0,0 +1,29 @@ +# SkillFrameworksCountBoostsThatUseFramework200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **float** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksCountBoostsThatUseFramework200Response from a JSON string +skill_frameworks_count_boosts_that_use_framework200_response_instance = SkillFrameworksCountBoostsThatUseFramework200Response.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksCountBoostsThatUseFramework200Response.to_json()) + +# convert the object into a dict +skill_frameworks_count_boosts_that_use_framework200_response_dict = skill_frameworks_count_boosts_that_use_framework200_response_instance.to_dict() +# create an instance of SkillFrameworksCountBoostsThatUseFramework200Response from a dict +skill_frameworks_count_boosts_that_use_framework200_response_from_dict = SkillFrameworksCountBoostsThatUseFramework200Response.from_dict(skill_frameworks_count_boosts_that_use_framework200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequest.md new file mode 100644 index 0000000000..cc3354bf5e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequest.md @@ -0,0 +1,29 @@ +# SkillFrameworksCreateManagedBatchRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**frameworks** | [**List[SkillFrameworksCreateManagedBatchRequestFrameworksInner]**](SkillFrameworksCreateManagedBatchRequestFrameworksInner.md) | | + +## Example + +```python +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksCreateManagedBatchRequest from a JSON string +skill_frameworks_create_managed_batch_request_instance = SkillFrameworksCreateManagedBatchRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksCreateManagedBatchRequest.to_json()) + +# convert the object into a dict +skill_frameworks_create_managed_batch_request_dict = skill_frameworks_create_managed_batch_request_instance.to_dict() +# create an instance of SkillFrameworksCreateManagedBatchRequest from a dict +skill_frameworks_create_managed_batch_request_from_dict = SkillFrameworksCreateManagedBatchRequest.from_dict(skill_frameworks_create_managed_batch_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md new file mode 100644 index 0000000000..de8e298ad4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedBatchRequestFrameworksInner.md @@ -0,0 +1,36 @@ +# SkillFrameworksCreateManagedBatchRequestFrameworksInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | +**description** | **str** | | [optional] +**image** | **str** | | [optional] +**source_uri** | **str** | | [optional] +**status** | **str** | | [optional] +**skills** | [**List[Schema0]**](Schema0.md) | | [optional] +**boost_uris** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner import SkillFrameworksCreateManagedBatchRequestFrameworksInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksCreateManagedBatchRequestFrameworksInner from a JSON string +skill_frameworks_create_managed_batch_request_frameworks_inner_instance = SkillFrameworksCreateManagedBatchRequestFrameworksInner.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksCreateManagedBatchRequestFrameworksInner.to_json()) + +# convert the object into a dict +skill_frameworks_create_managed_batch_request_frameworks_inner_dict = skill_frameworks_create_managed_batch_request_frameworks_inner_instance.to_dict() +# create an instance of SkillFrameworksCreateManagedBatchRequestFrameworksInner from a dict +skill_frameworks_create_managed_batch_request_frameworks_inner_from_dict = SkillFrameworksCreateManagedBatchRequestFrameworksInner.from_dict(skill_frameworks_create_managed_batch_request_frameworks_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedRequest.md new file mode 100644 index 0000000000..311fab3c5e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateManagedRequest.md @@ -0,0 +1,36 @@ +# SkillFrameworksCreateManagedRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | +**description** | **str** | | [optional] +**image** | **str** | | [optional] +**source_uri** | **str** | | [optional] +**status** | **str** | | [optional] +**skills** | [**List[Schema0]**](Schema0.md) | | [optional] +**boost_uris** | **List[str]** | | [optional] + +## Example + +```python +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksCreateManagedRequest from a JSON string +skill_frameworks_create_managed_request_instance = SkillFrameworksCreateManagedRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksCreateManagedRequest.to_json()) + +# convert the object into a dict +skill_frameworks_create_managed_request_dict = skill_frameworks_create_managed_request_instance.to_dict() +# create an instance of SkillFrameworksCreateManagedRequest from a dict +skill_frameworks_create_managed_request_from_dict = SkillFrameworksCreateManagedRequest.from_dict(skill_frameworks_create_managed_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateRequest.md new file mode 100644 index 0000000000..c00d28bef3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksCreateRequest.md @@ -0,0 +1,29 @@ +# SkillFrameworksCreateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksCreateRequest from a JSON string +skill_frameworks_create_request_instance = SkillFrameworksCreateRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksCreateRequest.to_json()) + +# convert the object into a dict +skill_frameworks_create_request_dict = skill_frameworks_create_request_instance.to_dict() +# create an instance of SkillFrameworksCreateRequest from a dict +skill_frameworks_create_request_from_dict = SkillFrameworksCreateRequest.from_dict(skill_frameworks_create_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md new file mode 100644 index 0000000000..4379785201 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetBoostsThatUseFrameworkRequest.md @@ -0,0 +1,31 @@ +# SkillFrameworksGetBoostsThatUseFrameworkRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **int** | | [optional] [default to 50] +**cursor** | **str** | | [optional] +**query** | [**BoostGetBoostsRequestQuery**](BoostGetBoostsRequestQuery.md) | | [optional] + +## Example + +```python +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksGetBoostsThatUseFrameworkRequest from a JSON string +skill_frameworks_get_boosts_that_use_framework_request_instance = SkillFrameworksGetBoostsThatUseFrameworkRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksGetBoostsThatUseFrameworkRequest.to_json()) + +# convert the object into a dict +skill_frameworks_get_boosts_that_use_framework_request_dict = skill_frameworks_get_boosts_that_use_framework_request_instance.to_dict() +# create an instance of SkillFrameworksGetBoostsThatUseFrameworkRequest from a dict +skill_frameworks_get_boosts_that_use_framework_request_from_dict = SkillFrameworksGetBoostsThatUseFrameworkRequest.from_dict(skill_frameworks_get_boosts_that_use_framework_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200Response.md new file mode 100644 index 0000000000..f193e130a1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200Response.md @@ -0,0 +1,30 @@ +# SkillFrameworksGetById200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework** | [**BoostGetBoostFrameworks200ResponseRecordsInner**](BoostGetBoostFrameworks200ResponseRecordsInner.md) | | +**skills** | [**SkillFrameworksGetById200ResponseSkills**](SkillFrameworksGetById200ResponseSkills.md) | | + +## Example + +```python +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksGetById200Response from a JSON string +skill_frameworks_get_by_id200_response_instance = SkillFrameworksGetById200Response.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksGetById200Response.to_json()) + +# convert the object into a dict +skill_frameworks_get_by_id200_response_dict = skill_frameworks_get_by_id200_response_instance.to_dict() +# create an instance of SkillFrameworksGetById200Response from a dict +skill_frameworks_get_by_id200_response_from_dict = SkillFrameworksGetById200Response.from_dict(skill_frameworks_get_by_id200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200ResponseSkills.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200ResponseSkills.md new file mode 100644 index 0000000000..d65d183cea --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksGetById200ResponseSkills.md @@ -0,0 +1,31 @@ +# SkillFrameworksGetById200ResponseSkills + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | +**cursor** | **str** | | +**records** | [**List[Schema1]**](Schema1.md) | | + +## Example + +```python +from openapi_client.models.skill_frameworks_get_by_id200_response_skills import SkillFrameworksGetById200ResponseSkills + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksGetById200ResponseSkills from a JSON string +skill_frameworks_get_by_id200_response_skills_instance = SkillFrameworksGetById200ResponseSkills.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksGetById200ResponseSkills.to_json()) + +# convert the object into a dict +skill_frameworks_get_by_id200_response_skills_dict = skill_frameworks_get_by_id200_response_skills_instance.to_dict() +# create an instance of SkillFrameworksGetById200ResponseSkills from a dict +skill_frameworks_get_by_id200_response_skills_from_dict = SkillFrameworksGetById200ResponseSkills.from_dict(skill_frameworks_get_by_id200_response_skills_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksRemoveFrameworkAdmin200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksRemoveFrameworkAdmin200Response.md new file mode 100644 index 0000000000..4470cdb8e3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksRemoveFrameworkAdmin200Response.md @@ -0,0 +1,29 @@ +# SkillFrameworksRemoveFrameworkAdmin200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksRemoveFrameworkAdmin200Response from a JSON string +skill_frameworks_remove_framework_admin200_response_instance = SkillFrameworksRemoveFrameworkAdmin200Response.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksRemoveFrameworkAdmin200Response.to_json()) + +# convert the object into a dict +skill_frameworks_remove_framework_admin200_response_dict = skill_frameworks_remove_framework_admin200_response_instance.to_dict() +# create an instance of SkillFrameworksRemoveFrameworkAdmin200Response from a dict +skill_frameworks_remove_framework_admin200_response_from_dict = SkillFrameworksRemoveFrameworkAdmin200Response.from_dict(skill_frameworks_remove_framework_admin200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkills200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkills200Response.md new file mode 100644 index 0000000000..ce07ed10b3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkills200Response.md @@ -0,0 +1,33 @@ +# SkillFrameworksReplaceSkills200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **int** | | +**updated** | **int** | | +**deleted** | **int** | | +**unchanged** | **int** | | +**total** | **int** | | + +## Example + +```python +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksReplaceSkills200Response from a JSON string +skill_frameworks_replace_skills200_response_instance = SkillFrameworksReplaceSkills200Response.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksReplaceSkills200Response.to_json()) + +# convert the object into a dict +skill_frameworks_replace_skills200_response_dict = skill_frameworks_replace_skills200_response_instance.to_dict() +# create an instance of SkillFrameworksReplaceSkills200Response from a dict +skill_frameworks_replace_skills200_response_from_dict = SkillFrameworksReplaceSkills200Response.from_dict(skill_frameworks_replace_skills200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkillsRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkillsRequest.md new file mode 100644 index 0000000000..3ca2d14ea6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksReplaceSkillsRequest.md @@ -0,0 +1,29 @@ +# SkillFrameworksReplaceSkillsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skills** | [**List[Schema0]**](Schema0.md) | | + +## Example + +```python +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksReplaceSkillsRequest from a JSON string +skill_frameworks_replace_skills_request_instance = SkillFrameworksReplaceSkillsRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksReplaceSkillsRequest.to_json()) + +# convert the object into a dict +skill_frameworks_replace_skills_request_dict = skill_frameworks_replace_skills_request_instance.to_dict() +# create an instance of SkillFrameworksReplaceSkillsRequest from a dict +skill_frameworks_replace_skills_request_from_dict = SkillFrameworksReplaceSkillsRequest.from_dict(skill_frameworks_replace_skills_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksUpdateRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksUpdateRequest.md new file mode 100644 index 0000000000..c6e4830f7e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillFrameworksUpdateRequest.md @@ -0,0 +1,33 @@ +# SkillFrameworksUpdateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**image** | **str** | | [optional] +**source_uri** | **str** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillFrameworksUpdateRequest from a JSON string +skill_frameworks_update_request_instance = SkillFrameworksUpdateRequest.from_json(json) +# print the JSON string representation of the object +print(SkillFrameworksUpdateRequest.to_json()) + +# convert the object into a dict +skill_frameworks_update_request_dict = skill_frameworks_update_request_instance.to_dict() +# create an instance of SkillFrameworksUpdateRequest from a dict +skill_frameworks_update_request_from_dict = SkillFrameworksUpdateRequest.from_dict(skill_frameworks_update_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTag200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTag200ResponseInner.md new file mode 100644 index 0000000000..1d148dfb4a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTag200ResponseInner.md @@ -0,0 +1,33 @@ +# SkillsAddSkillTag200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**slug** | **str** | | +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsAddSkillTag200ResponseInner from a JSON string +skills_add_skill_tag200_response_inner_instance = SkillsAddSkillTag200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(SkillsAddSkillTag200ResponseInner.to_json()) + +# convert the object into a dict +skills_add_skill_tag200_response_inner_dict = skills_add_skill_tag200_response_inner_instance.to_dict() +# create an instance of SkillsAddSkillTag200ResponseInner from a dict +skills_add_skill_tag200_response_inner_from_dict = SkillsAddSkillTag200ResponseInner.from_dict(skills_add_skill_tag200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequest.md new file mode 100644 index 0000000000..6b0778bed1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequest.md @@ -0,0 +1,30 @@ +# SkillsAddSkillTagRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**tag** | [**SkillsAddSkillTagRequestTag**](SkillsAddSkillTagRequestTag.md) | | + +## Example + +```python +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsAddSkillTagRequest from a JSON string +skills_add_skill_tag_request_instance = SkillsAddSkillTagRequest.from_json(json) +# print the JSON string representation of the object +print(SkillsAddSkillTagRequest.to_json()) + +# convert the object into a dict +skills_add_skill_tag_request_dict = skills_add_skill_tag_request_instance.to_dict() +# create an instance of SkillsAddSkillTagRequest from a dict +skills_add_skill_tag_request_from_dict = SkillsAddSkillTagRequest.from_dict(skills_add_skill_tag_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequestTag.md b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequestTag.md new file mode 100644 index 0000000000..c383b00788 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsAddSkillTagRequestTag.md @@ -0,0 +1,30 @@ +# SkillsAddSkillTagRequestTag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**slug** | **str** | | +**name** | **str** | | + +## Example + +```python +from openapi_client.models.skills_add_skill_tag_request_tag import SkillsAddSkillTagRequestTag + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsAddSkillTagRequestTag from a JSON string +skills_add_skill_tag_request_tag_instance = SkillsAddSkillTagRequestTag.from_json(json) +# print the JSON string representation of the object +print(SkillsAddSkillTagRequestTag.to_json()) + +# convert the object into a dict +skills_add_skill_tag_request_tag_dict = skills_add_skill_tag_request_tag_instance.to_dict() +# create an instance of SkillsAddSkillTagRequestTag from a dict +skills_add_skill_tag_request_tag_from_dict = SkillsAddSkillTagRequestTag.from_dict(skills_add_skill_tag_request_tag_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsApi.md b/packages/open-api-lcn-clients/python-client/docs/SkillsApi.md new file mode 100644 index 0000000000..0590bc7d56 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsApi.md @@ -0,0 +1,2409 @@ +# openapi_client.SkillsApi + +All URIs are relative to *https://network.learncard.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**skill_frameworks_add_framework_admin**](SkillsApi.md#skill_frameworks_add_framework_admin) | **POST** /skills/frameworks/{frameworkId}/admins | Add framework admin +[**skill_frameworks_count_boosts_that_use_framework**](SkillsApi.md#skill_frameworks_count_boosts_that_use_framework) | **POST** /skills/frameworks/{id}/boosts/count | Count boosts that use a framework +[**skill_frameworks_create**](SkillsApi.md#skill_frameworks_create) | **POST** /skills/frameworks | Link Skill Framework +[**skill_frameworks_create_managed**](SkillsApi.md#skill_frameworks_create_managed) | **POST** /skills/frameworks/custom | Create and manage a custom skill framework +[**skill_frameworks_create_managed_batch**](SkillsApi.md#skill_frameworks_create_managed_batch) | **POST** /skills/frameworks/custom/batch | Create multiple custom skill frameworks +[**skill_frameworks_delete**](SkillsApi.md#skill_frameworks_delete) | **DELETE** /skills/frameworks/{id} | Delete a managed skill framework +[**skill_frameworks_get_boosts_that_use_framework**](SkillsApi.md#skill_frameworks_get_boosts_that_use_framework) | **POST** /skills/frameworks/{id}/boosts | Get boosts that use a framework +[**skill_frameworks_get_by_id**](SkillsApi.md#skill_frameworks_get_by_id) | **GET** /skills/frameworks/{id} | Get Skill Framework with skills +[**skill_frameworks_list_framework_admins**](SkillsApi.md#skill_frameworks_list_framework_admins) | **GET** /skills/frameworks/{frameworkId}/admins | List framework admins +[**skill_frameworks_list_mine**](SkillsApi.md#skill_frameworks_list_mine) | **GET** /skills/frameworks | List Skill Frameworks I manage +[**skill_frameworks_remove_framework_admin**](SkillsApi.md#skill_frameworks_remove_framework_admin) | **DELETE** /skills/frameworks/{frameworkId}/admins/{profileId} | Remove framework admin +[**skill_frameworks_replace_skills**](SkillsApi.md#skill_frameworks_replace_skills) | **POST** /skills/frameworks/{frameworkId}/replace | Replace all skills in a framework +[**skill_frameworks_update**](SkillsApi.md#skill_frameworks_update) | **PATCH** /skills/frameworks/{id} | Update a managed skill framework +[**skills_add_skill_tag**](SkillsApi.md#skills_add_skill_tag) | **POST** /skills/{id}/tags | Add a tag to a skill +[**skills_count_skills**](SkillsApi.md#skills_count_skills) | **GET** /skills/frameworks/{frameworkId}/count | Count skills in a framework +[**skills_create**](SkillsApi.md#skills_create) | **POST** /skills | Create a skill +[**skills_create_many**](SkillsApi.md#skills_create_many) | **POST** /skills/batch | Create many skills +[**skills_delete**](SkillsApi.md#skills_delete) | **DELETE** /skills/{id} | Delete a skill +[**skills_get_framework_skill_tree**](SkillsApi.md#skills_get_framework_skill_tree) | **GET** /skills/frameworks/{id}/tree | Get framework skill tree (roots + first children) +[**skills_get_full_skill_tree**](SkillsApi.md#skills_get_full_skill_tree) | **GET** /skills/frameworks/{frameworkId}/tree/full | Get complete skill tree for a framework +[**skills_get_skill**](SkillsApi.md#skills_get_skill) | **GET** /skills/{id} | Get a skill by ID +[**skills_get_skill_children_tree**](SkillsApi.md#skills_get_skill_children_tree) | **GET** /skills/{id}/children | Get children for a skill (framework-scoped, paginated) +[**skills_get_skill_path**](SkillsApi.md#skills_get_skill_path) | **GET** /skills/{skillId}/path | Get breadcrumb path for a skill +[**skills_list_skill_tags**](SkillsApi.md#skills_list_skill_tags) | **GET** /skills/{id}/tags | List tags for a skill +[**skills_remove_skill_tag**](SkillsApi.md#skills_remove_skill_tag) | **DELETE** /skills/{id}/tags/{slug} | Remove a tag from a skill +[**skills_search_framework_skills**](SkillsApi.md#skills_search_framework_skills) | **POST** /skills/framework/search | Search skills in a framework +[**skills_sync_framework_skills**](SkillsApi.md#skills_sync_framework_skills) | **POST** /skills/frameworks/{id}/sync | Sync Framework Skills +[**skills_update**](SkillsApi.md#skills_update) | **PATCH** /skills/{id} | Update a skill + + +# **skill_frameworks_add_framework_admin** +> SkillFrameworksAddFrameworkAdmin200Response skill_frameworks_add_framework_admin(framework_id, skill_frameworks_add_framework_admin_request) + +Add framework admin + +Adds another profile as a manager of the framework. Requires existing manager access. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + skill_frameworks_add_framework_admin_request = openapi_client.SkillFrameworksAddFrameworkAdminRequest() # SkillFrameworksAddFrameworkAdminRequest | + + try: + # Add framework admin + api_response = api_instance.skill_frameworks_add_framework_admin(framework_id, skill_frameworks_add_framework_admin_request) + print("The response of SkillsApi->skill_frameworks_add_framework_admin:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_add_framework_admin: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + **skill_frameworks_add_framework_admin_request** | [**SkillFrameworksAddFrameworkAdminRequest**](SkillFrameworksAddFrameworkAdminRequest.md)| | + +### Return type + +[**SkillFrameworksAddFrameworkAdmin200Response**](SkillFrameworksAddFrameworkAdmin200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_count_boosts_that_use_framework** +> SkillFrameworksCountBoostsThatUseFramework200Response skill_frameworks_count_boosts_that_use_framework(id, boost_get_boosts_request) + +Count boosts that use a framework + +Returns the total count of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boosts_request import BoostGetBoostsRequest +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + boost_get_boosts_request = openapi_client.BoostGetBoostsRequest() # BoostGetBoostsRequest | + + try: + # Count boosts that use a framework + api_response = api_instance.skill_frameworks_count_boosts_that_use_framework(id, boost_get_boosts_request) + print("The response of SkillsApi->skill_frameworks_count_boosts_that_use_framework:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_count_boosts_that_use_framework: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **boost_get_boosts_request** | [**BoostGetBoostsRequest**](BoostGetBoostsRequest.md)| | + +### Return type + +[**SkillFrameworksCountBoostsThatUseFramework200Response**](SkillFrameworksCountBoostsThatUseFramework200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_create** +> BoostGetBoostFrameworks200ResponseRecordsInner skill_frameworks_create(skill_frameworks_create_request) + +Link Skill Framework + +Links an existing provider framework to the caller and mirrors minimal metadata locally + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skill_frameworks_create_request = openapi_client.SkillFrameworksCreateRequest() # SkillFrameworksCreateRequest | + + try: + # Link Skill Framework + api_response = api_instance.skill_frameworks_create(skill_frameworks_create_request) + print("The response of SkillsApi->skill_frameworks_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skill_frameworks_create_request** | [**SkillFrameworksCreateRequest**](SkillFrameworksCreateRequest.md)| | + +### Return type + +[**BoostGetBoostFrameworks200ResponseRecordsInner**](BoostGetBoostFrameworks200ResponseRecordsInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_create_managed** +> BoostGetBoostFrameworks200ResponseRecordsInner skill_frameworks_create_managed(skill_frameworks_create_managed_request) + +Create and manage a custom skill framework + +Creates a new skill framework directly in the LearnCard Network and assigns the caller as a manager. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skill_frameworks_create_managed_request = openapi_client.SkillFrameworksCreateManagedRequest() # SkillFrameworksCreateManagedRequest | + + try: + # Create and manage a custom skill framework + api_response = api_instance.skill_frameworks_create_managed(skill_frameworks_create_managed_request) + print("The response of SkillsApi->skill_frameworks_create_managed:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_create_managed: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skill_frameworks_create_managed_request** | [**SkillFrameworksCreateManagedRequest**](SkillFrameworksCreateManagedRequest.md)| | + +### Return type + +[**BoostGetBoostFrameworks200ResponseRecordsInner**](BoostGetBoostFrameworks200ResponseRecordsInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_create_managed_batch** +> List[BoostGetBoostFrameworks200ResponseRecordsInner] skill_frameworks_create_managed_batch(skill_frameworks_create_managed_batch_request) + +Create multiple custom skill frameworks + +Creates multiple custom frameworks (optionally with initial skills) and assigns the caller as their manager. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skill_frameworks_create_managed_batch_request = openapi_client.SkillFrameworksCreateManagedBatchRequest() # SkillFrameworksCreateManagedBatchRequest | + + try: + # Create multiple custom skill frameworks + api_response = api_instance.skill_frameworks_create_managed_batch(skill_frameworks_create_managed_batch_request) + print("The response of SkillsApi->skill_frameworks_create_managed_batch:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_create_managed_batch: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skill_frameworks_create_managed_batch_request** | [**SkillFrameworksCreateManagedBatchRequest**](SkillFrameworksCreateManagedBatchRequest.md)| | + +### Return type + +[**List[BoostGetBoostFrameworks200ResponseRecordsInner]**](BoostGetBoostFrameworks200ResponseRecordsInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_delete** +> SkillFrameworksRemoveFrameworkAdmin200Response skill_frameworks_delete(id) + +Delete a managed skill framework + +Deletes a framework and its associated skills. Only available to managers of the framework. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + + try: + # Delete a managed skill framework + api_response = api_instance.skill_frameworks_delete(id) + print("The response of SkillsApi->skill_frameworks_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SkillFrameworksRemoveFrameworkAdmin200Response**](SkillFrameworksRemoveFrameworkAdmin200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_get_boosts_that_use_framework** +> BoostGetPaginatedBoosts200Response skill_frameworks_get_boosts_that_use_framework(id, skill_frameworks_get_boosts_that_use_framework_request) + +Get boosts that use a framework + +Returns paginated list of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + skill_frameworks_get_boosts_that_use_framework_request = openapi_client.SkillFrameworksGetBoostsThatUseFrameworkRequest() # SkillFrameworksGetBoostsThatUseFrameworkRequest | + + try: + # Get boosts that use a framework + api_response = api_instance.skill_frameworks_get_boosts_that_use_framework(id, skill_frameworks_get_boosts_that_use_framework_request) + print("The response of SkillsApi->skill_frameworks_get_boosts_that_use_framework:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_get_boosts_that_use_framework: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **skill_frameworks_get_boosts_that_use_framework_request** | [**SkillFrameworksGetBoostsThatUseFrameworkRequest**](SkillFrameworksGetBoostsThatUseFrameworkRequest.md)| | + +### Return type + +[**BoostGetPaginatedBoosts200Response**](BoostGetPaginatedBoosts200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_get_by_id** +> SkillFrameworksGetById200Response skill_frameworks_get_by_id(id, limit=limit, children_limit=children_limit, cursor=cursor) + +Get Skill Framework with skills + +Returns a framework and its skills from the configured provider (hierarchical tree) + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + limit = 50 # int | (optional) (default to 50) + children_limit = 25 # int | (optional) (default to 25) + cursor = 'cursor_example' # str | (optional) + + try: + # Get Skill Framework with skills + api_response = api_instance.skill_frameworks_get_by_id(id, limit=limit, children_limit=children_limit, cursor=cursor) + print("The response of SkillsApi->skill_frameworks_get_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_get_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] [default to 50] + **children_limit** | **int**| | [optional] [default to 25] + **cursor** | **str**| | [optional] + +### Return type + +[**SkillFrameworksGetById200Response**](SkillFrameworksGetById200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_list_framework_admins** +> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] skill_frameworks_list_framework_admins(framework_id) + +List framework admins + +Returns the profiles that manage the given framework. Requires manager access. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + + try: + # List framework admins + api_response = api_instance.skill_frameworks_list_framework_admins(framework_id) + print("The response of SkillsApi->skill_frameworks_list_framework_admins:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_list_framework_admins: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + +### Return type + +[**List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]**](BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_list_mine** +> List[BoostGetBoostFrameworks200ResponseRecordsInner] skill_frameworks_list_mine() + +List Skill Frameworks I manage + +Lists frameworks directly managed by the caller + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + + try: + # List Skill Frameworks I manage + api_response = api_instance.skill_frameworks_list_mine() + print("The response of SkillsApi->skill_frameworks_list_mine:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_list_mine: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[BoostGetBoostFrameworks200ResponseRecordsInner]**](BoostGetBoostFrameworks200ResponseRecordsInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_remove_framework_admin** +> SkillFrameworksRemoveFrameworkAdmin200Response skill_frameworks_remove_framework_admin(framework_id, profile_id) + +Remove framework admin + +Removes a manager from the framework. Requires manager access and at least one manager must remain. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + profile_id = 'profile_id_example' # str | + + try: + # Remove framework admin + api_response = api_instance.skill_frameworks_remove_framework_admin(framework_id, profile_id) + print("The response of SkillsApi->skill_frameworks_remove_framework_admin:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_remove_framework_admin: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + **profile_id** | **str**| | + +### Return type + +[**SkillFrameworksRemoveFrameworkAdmin200Response**](SkillFrameworksRemoveFrameworkAdmin200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_replace_skills** +> SkillFrameworksReplaceSkills200Response skill_frameworks_replace_skills(framework_id, skill_frameworks_replace_skills_request) + +Replace all skills in a framework + +Replaces the entire skill tree of a framework. Skills with matching IDs are updated if changed, skills not in the input are deleted, and new skills are created. Returns statistics about changes made. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + skill_frameworks_replace_skills_request = openapi_client.SkillFrameworksReplaceSkillsRequest() # SkillFrameworksReplaceSkillsRequest | + + try: + # Replace all skills in a framework + api_response = api_instance.skill_frameworks_replace_skills(framework_id, skill_frameworks_replace_skills_request) + print("The response of SkillsApi->skill_frameworks_replace_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_replace_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + **skill_frameworks_replace_skills_request** | [**SkillFrameworksReplaceSkillsRequest**](SkillFrameworksReplaceSkillsRequest.md)| | + +### Return type + +[**SkillFrameworksReplaceSkills200Response**](SkillFrameworksReplaceSkills200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skill_frameworks_update** +> BoostGetBoostFrameworks200ResponseRecordsInner skill_frameworks_update(id, skill_frameworks_update_request) + +Update a managed skill framework + +Updates metadata for a framework managed by the caller. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + skill_frameworks_update_request = openapi_client.SkillFrameworksUpdateRequest() # SkillFrameworksUpdateRequest | + + try: + # Update a managed skill framework + api_response = api_instance.skill_frameworks_update(id, skill_frameworks_update_request) + print("The response of SkillsApi->skill_frameworks_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skill_frameworks_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **skill_frameworks_update_request** | [**SkillFrameworksUpdateRequest**](SkillFrameworksUpdateRequest.md)| | + +### Return type + +[**BoostGetBoostFrameworks200ResponseRecordsInner**](BoostGetBoostFrameworks200ResponseRecordsInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_add_skill_tag** +> List[SkillsAddSkillTag200ResponseInner] skills_add_skill_tag(id, skills_add_skill_tag_request) + +Add a tag to a skill + +Creates the tag by slug if missing and attaches it to the skill. Requires managing a framework containing the skill. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + skills_add_skill_tag_request = openapi_client.SkillsAddSkillTagRequest() # SkillsAddSkillTagRequest | + + try: + # Add a tag to a skill + api_response = api_instance.skills_add_skill_tag(id, skills_add_skill_tag_request) + print("The response of SkillsApi->skills_add_skill_tag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_add_skill_tag: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **skills_add_skill_tag_request** | [**SkillsAddSkillTagRequest**](SkillsAddSkillTagRequest.md)| | + +### Return type + +[**List[SkillsAddSkillTag200ResponseInner]**](SkillsAddSkillTag200ResponseInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skills_count_skills** +> SkillsCountSkills200Response skills_count_skills(framework_id, skill_id=skill_id, recursive=recursive, only_count_competencies=only_count_competencies) + +Count skills in a framework + +Counts skills in a framework. If skillId is provided, counts children of that skill. If recursive is true, counts all descendants. Requires managing the framework. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + skill_id = 'skill_id_example' # str | (optional) + recursive = False # bool | (optional) (default to False) + only_count_competencies = False # bool | (optional) (default to False) + + try: + # Count skills in a framework + api_response = api_instance.skills_count_skills(framework_id, skill_id=skill_id, recursive=recursive, only_count_competencies=only_count_competencies) + print("The response of SkillsApi->skills_count_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_count_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + **skill_id** | **str**| | [optional] + **recursive** | **bool**| | [optional] [default to False] + **only_count_competencies** | **bool**| | [optional] [default to False] + +### Return type + +[**SkillsCountSkills200Response**](SkillsCountSkills200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_create** +> SkillsCreate200Response skills_create(skills_create_request) + +Create a skill + +Creates a new skill within a framework managed by the caller. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_create200_response import SkillsCreate200Response +from openapi_client.models.skills_create_request import SkillsCreateRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skills_create_request = openapi_client.SkillsCreateRequest() # SkillsCreateRequest | + + try: + # Create a skill + api_response = api_instance.skills_create(skills_create_request) + print("The response of SkillsApi->skills_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skills_create_request** | [**SkillsCreateRequest**](SkillsCreateRequest.md)| | + +### Return type + +[**SkillsCreate200Response**](SkillsCreate200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skills_create_many** +> List[SkillsCreate200Response] skills_create_many(skills_create_many_request) + +Create many skills + +Creates multiple skills within a framework managed by the caller in a single request. Optionally specify parentId to add all root-level skills as children of an existing skill. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_create200_response import SkillsCreate200Response +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skills_create_many_request = openapi_client.SkillsCreateManyRequest() # SkillsCreateManyRequest | + + try: + # Create many skills + api_response = api_instance.skills_create_many(skills_create_many_request) + print("The response of SkillsApi->skills_create_many:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_create_many: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skills_create_many_request** | [**SkillsCreateManyRequest**](SkillsCreateManyRequest.md)| | + +### Return type + +[**List[SkillsCreate200Response]**](SkillsCreate200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skills_delete** +> SkillsDelete200Response skills_delete(id, framework_id, strategy=strategy) + +Delete a skill + +Deletes a skill from a framework managed by the caller. Strategy options: "reparent" (default) moves children to the deleted skill's parent (or makes them root nodes if no parent), "recursive" deletes the skill and all its descendants. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_delete200_response import SkillsDelete200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + framework_id = 'framework_id_example' # str | + strategy = reparent # str | (optional) (default to reparent) + + try: + # Delete a skill + api_response = api_instance.skills_delete(id, framework_id, strategy=strategy) + print("The response of SkillsApi->skills_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **framework_id** | **str**| | + **strategy** | **str**| | [optional] [default to reparent] + +### Return type + +[**SkillsDelete200Response**](SkillsDelete200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_get_framework_skill_tree** +> SkillsGetFrameworkSkillTree200Response skills_get_framework_skill_tree(id, roots_limit=roots_limit, children_limit=children_limit, cursor=cursor) + +Get framework skill tree (roots + first children) + +Returns a paginated list of root skills for a framework and, for each root, the first page of its children. Use the per-node children endpoint to load more. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + roots_limit = 50 # int | (optional) (default to 50) + children_limit = 25 # int | (optional) (default to 25) + cursor = 'cursor_example' # str | (optional) + + try: + # Get framework skill tree (roots + first children) + api_response = api_instance.skills_get_framework_skill_tree(id, roots_limit=roots_limit, children_limit=children_limit, cursor=cursor) + print("The response of SkillsApi->skills_get_framework_skill_tree:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_get_framework_skill_tree: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **roots_limit** | **int**| | [optional] [default to 50] + **children_limit** | **int**| | [optional] [default to 25] + **cursor** | **str**| | [optional] + +### Return type + +[**SkillsGetFrameworkSkillTree200Response**](SkillsGetFrameworkSkillTree200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_get_full_skill_tree** +> SkillsGetFullSkillTree200Response skills_get_full_skill_tree(framework_id) + +Get complete skill tree for a framework + +Returns all skills in the framework as a fully nested recursive tree structure. Warning: This can be a heavy query for large frameworks. Requires managing the framework. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + framework_id = 'framework_id_example' # str | + + try: + # Get complete skill tree for a framework + api_response = api_instance.skills_get_full_skill_tree(framework_id) + print("The response of SkillsApi->skills_get_full_skill_tree:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_get_full_skill_tree: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **framework_id** | **str**| | + +### Return type + +[**SkillsGetFullSkillTree200Response**](SkillsGetFullSkillTree200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_get_skill** +> SkillsGetSkill200Response skills_get_skill(id, framework_id) + +Get a skill by ID + +Retrieves a skill by its ID within a specific framework. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + framework_id = 'framework_id_example' # str | + + try: + # Get a skill by ID + api_response = api_instance.skills_get_skill(id, framework_id) + print("The response of SkillsApi->skills_get_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_get_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **framework_id** | **str**| | + +### Return type + +[**SkillsGetSkill200Response**](SkillsGetSkill200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_get_skill_children_tree** +> SkillsGetFrameworkSkillTree200Response skills_get_skill_children_tree(id, framework_id, limit=limit, cursor=cursor) + +Get children for a skill (framework-scoped, paginated) + +Returns the first page (or subsequent pages) of children for a given skill within a framework. Each child includes hasChildren and an empty children array. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + framework_id = 'framework_id_example' # str | + limit = 25 # int | (optional) (default to 25) + cursor = 'cursor_example' # str | (optional) + + try: + # Get children for a skill (framework-scoped, paginated) + api_response = api_instance.skills_get_skill_children_tree(id, framework_id, limit=limit, cursor=cursor) + print("The response of SkillsApi->skills_get_skill_children_tree:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_get_skill_children_tree: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **framework_id** | **str**| | + **limit** | **int**| | [optional] [default to 25] + **cursor** | **str**| | [optional] + +### Return type + +[**SkillsGetFrameworkSkillTree200Response**](SkillsGetFrameworkSkillTree200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_get_skill_path** +> SkillsGetSkillPath200Response skills_get_skill_path(skill_id, framework_id) + +Get breadcrumb path for a skill + +Returns the skill and all its ancestors up to the root skill in the framework. Useful for rendering breadcrumbs. Results are ordered from the skill itself up to the root (reverse hierarchical order). + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skill_id = 'skill_id_example' # str | + framework_id = 'framework_id_example' # str | + + try: + # Get breadcrumb path for a skill + api_response = api_instance.skills_get_skill_path(skill_id, framework_id) + print("The response of SkillsApi->skills_get_skill_path:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_get_skill_path: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skill_id** | **str**| | + **framework_id** | **str**| | + +### Return type + +[**SkillsGetSkillPath200Response**](SkillsGetSkillPath200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_list_skill_tags** +> List[SkillsListSkillTags200ResponseInner] skills_list_skill_tags(id, framework_id) + +List tags for a skill + +Lists all tags attached to a skill. Requires managing a framework containing the skill. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + framework_id = 'framework_id_example' # str | + + try: + # List tags for a skill + api_response = api_instance.skills_list_skill_tags(id, framework_id) + print("The response of SkillsApi->skills_list_skill_tags:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_list_skill_tags: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **framework_id** | **str**| | + +### Return type + +[**List[SkillsListSkillTags200ResponseInner]**](SkillsListSkillTags200ResponseInner.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_remove_skill_tag** +> SkillFrameworksRemoveFrameworkAdmin200Response skills_remove_skill_tag(id, slug, framework_id) + +Remove a tag from a skill + +Removes the HAS_TAG relationship from the skill to the tag. Requires managing a framework containing the skill. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + slug = 'slug_example' # str | + framework_id = 'framework_id_example' # str | + + try: + # Remove a tag from a skill + api_response = api_instance.skills_remove_skill_tag(id, slug, framework_id) + print("The response of SkillsApi->skills_remove_skill_tag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_remove_skill_tag: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **slug** | **str**| | + **framework_id** | **str**| | + +### Return type + +[**SkillFrameworksRemoveFrameworkAdmin200Response**](SkillFrameworksRemoveFrameworkAdmin200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **skills_search_framework_skills** +> BoostSearchSkillsAvailableForBoost200Response skills_search_framework_skills(skills_search_framework_skills_request) + +Search skills in a framework + +Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Requires framework management. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + skills_search_framework_skills_request = openapi_client.SkillsSearchFrameworkSkillsRequest() # SkillsSearchFrameworkSkillsRequest | + + try: + # Search skills in a framework + api_response = api_instance.skills_search_framework_skills(skills_search_framework_skills_request) + print("The response of SkillsApi->skills_search_framework_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_search_framework_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skills_search_framework_skills_request** | [**SkillsSearchFrameworkSkillsRequest**](SkillsSearchFrameworkSkillsRequest.md)| | + +### Return type + +[**BoostSearchSkillsAvailableForBoost200Response**](BoostSearchSkillsAvailableForBoost200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skills_sync_framework_skills** +> SkillsSyncFrameworkSkills200Response skills_sync_framework_skills(id) + +Sync Framework Skills + +Fetch skills from the configured provider and upsert them locally, linking to the framework and creating parent relationships + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + + try: + # Sync Framework Skills + api_response = api_instance.skills_sync_framework_skills(id) + print("The response of SkillsApi->skills_sync_framework_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_sync_framework_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SkillsSyncFrameworkSkills200Response**](SkillsSyncFrameworkSkills200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **skills_update** +> SkillsGetSkill200Response skills_update(id, skills_update_request) + +Update a skill + +Updates a skill within a framework managed by the caller. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response +from openapi_client.models.skills_update_request import SkillsUpdateRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SkillsApi(api_client) + id = 'id_example' # str | + skills_update_request = openapi_client.SkillsUpdateRequest() # SkillsUpdateRequest | + + try: + # Update a skill + api_response = api_instance.skills_update(id, skills_update_request) + print("The response of SkillsApi->skills_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SkillsApi->skills_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **skills_update_request** | [**SkillsUpdateRequest**](SkillsUpdateRequest.md)| | + +### Return type + +[**SkillsGetSkill200Response**](SkillsGetSkill200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsCountSkills200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsCountSkills200Response.md new file mode 100644 index 0000000000..1250c2bceb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsCountSkills200Response.md @@ -0,0 +1,29 @@ +# SkillsCountSkills200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | + +## Example + +```python +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsCountSkills200Response from a JSON string +skills_count_skills200_response_instance = SkillsCountSkills200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsCountSkills200Response.to_json()) + +# convert the object into a dict +skills_count_skills200_response_dict = skills_count_skills200_response_instance.to_dict() +# create an instance of SkillsCountSkills200Response from a dict +skills_count_skills200_response_from_dict = SkillsCountSkills200Response.from_dict(skills_count_skills200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsCreate200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsCreate200Response.md new file mode 100644 index 0000000000..1fa7c24813 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsCreate200Response.md @@ -0,0 +1,38 @@ +# SkillsCreate200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [default to 'skill'] +**status** | **str** | | [default to 'active'] +**framework_id** | **str** | | [optional] +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_create200_response import SkillsCreate200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsCreate200Response from a JSON string +skills_create200_response_instance = SkillsCreate200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsCreate200Response.to_json()) + +# convert the object into a dict +skills_create200_response_dict = skills_create200_response_instance.to_dict() +# create an instance of SkillsCreate200Response from a dict +skills_create200_response_from_dict = SkillsCreate200Response.from_dict(skills_create200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsCreateManyRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillsCreateManyRequest.md new file mode 100644 index 0000000000..231535cc9f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsCreateManyRequest.md @@ -0,0 +1,31 @@ +# SkillsCreateManyRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**skills** | [**List[Schema0]**](Schema0.md) | | +**parent_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsCreateManyRequest from a JSON string +skills_create_many_request_instance = SkillsCreateManyRequest.from_json(json) +# print the JSON string representation of the object +print(SkillsCreateManyRequest.to_json()) + +# convert the object into a dict +skills_create_many_request_dict = skills_create_many_request_instance.to_dict() +# create an instance of SkillsCreateManyRequest from a dict +skills_create_many_request_from_dict = SkillsCreateManyRequest.from_dict(skills_create_many_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsCreateRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillsCreateRequest.md new file mode 100644 index 0000000000..4358dfbc46 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsCreateRequest.md @@ -0,0 +1,31 @@ +# SkillsCreateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**skill** | [**Schema0**](Schema0.md) | | +**parent_id** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_create_request import SkillsCreateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsCreateRequest from a JSON string +skills_create_request_instance = SkillsCreateRequest.from_json(json) +# print the JSON string representation of the object +print(SkillsCreateRequest.to_json()) + +# convert the object into a dict +skills_create_request_dict = skills_create_request_instance.to_dict() +# create an instance of SkillsCreateRequest from a dict +skills_create_request_from_dict = SkillsCreateRequest.from_dict(skills_create_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsDelete200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsDelete200Response.md new file mode 100644 index 0000000000..d184ec5a9a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsDelete200Response.md @@ -0,0 +1,30 @@ +# SkillsDelete200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | +**deleted_count** | **float** | | + +## Example + +```python +from openapi_client.models.skills_delete200_response import SkillsDelete200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsDelete200Response from a JSON string +skills_delete200_response_instance = SkillsDelete200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsDelete200Response.to_json()) + +# convert the object into a dict +skills_delete200_response_dict = skills_delete200_response_instance.to_dict() +# create an instance of SkillsDelete200Response from a dict +skills_delete200_response_from_dict = SkillsDelete200Response.from_dict(skills_delete200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsGetFrameworkSkillTree200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsGetFrameworkSkillTree200Response.md new file mode 100644 index 0000000000..e2bad5eb45 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsGetFrameworkSkillTree200Response.md @@ -0,0 +1,31 @@ +# SkillsGetFrameworkSkillTree200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | +**cursor** | **str** | | +**records** | [**List[Schema1]**](Schema1.md) | | + +## Example + +```python +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsGetFrameworkSkillTree200Response from a JSON string +skills_get_framework_skill_tree200_response_instance = SkillsGetFrameworkSkillTree200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsGetFrameworkSkillTree200Response.to_json()) + +# convert the object into a dict +skills_get_framework_skill_tree200_response_dict = skills_get_framework_skill_tree200_response_instance.to_dict() +# create an instance of SkillsGetFrameworkSkillTree200Response from a dict +skills_get_framework_skill_tree200_response_from_dict = SkillsGetFrameworkSkillTree200Response.from_dict(skills_get_framework_skill_tree200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsGetFullSkillTree200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsGetFullSkillTree200Response.md new file mode 100644 index 0000000000..8e26d8519e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsGetFullSkillTree200Response.md @@ -0,0 +1,29 @@ +# SkillsGetFullSkillTree200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skills** | [**List[Schema1]**](Schema1.md) | | + +## Example + +```python +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsGetFullSkillTree200Response from a JSON string +skills_get_full_skill_tree200_response_instance = SkillsGetFullSkillTree200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsGetFullSkillTree200Response.to_json()) + +# convert the object into a dict +skills_get_full_skill_tree200_response_dict = skills_get_full_skill_tree200_response_instance.to_dict() +# create an instance of SkillsGetFullSkillTree200Response from a dict +skills_get_full_skill_tree200_response_from_dict = SkillsGetFullSkillTree200Response.from_dict(skills_get_full_skill_tree200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkill200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkill200Response.md new file mode 100644 index 0000000000..f51ba88694 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkill200Response.md @@ -0,0 +1,38 @@ +# SkillsGetSkill200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**statement** | **str** | | +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [default to 'skill'] +**status** | **str** | | [default to 'active'] +**framework_id** | **str** | | [optional] +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsGetSkill200Response from a JSON string +skills_get_skill200_response_instance = SkillsGetSkill200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsGetSkill200Response.to_json()) + +# convert the object into a dict +skills_get_skill200_response_dict = skills_get_skill200_response_instance.to_dict() +# create an instance of SkillsGetSkill200Response from a dict +skills_get_skill200_response_from_dict = SkillsGetSkill200Response.from_dict(skills_get_skill200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkillPath200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkillPath200Response.md new file mode 100644 index 0000000000..6128579b4c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsGetSkillPath200Response.md @@ -0,0 +1,29 @@ +# SkillsGetSkillPath200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | [**List[SkillsCreate200Response]**](SkillsCreate200Response.md) | | + +## Example + +```python +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsGetSkillPath200Response from a JSON string +skills_get_skill_path200_response_instance = SkillsGetSkillPath200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsGetSkillPath200Response.to_json()) + +# convert the object into a dict +skills_get_skill_path200_response_dict = skills_get_skill_path200_response_instance.to_dict() +# create an instance of SkillsGetSkillPath200Response from a dict +skills_get_skill_path200_response_from_dict = SkillsGetSkillPath200Response.from_dict(skills_get_skill_path200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsListSkillTags200ResponseInner.md b/packages/open-api-lcn-clients/python-client/docs/SkillsListSkillTags200ResponseInner.md new file mode 100644 index 0000000000..e67496f392 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsListSkillTags200ResponseInner.md @@ -0,0 +1,33 @@ +# SkillsListSkillTags200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**slug** | **str** | | +**created_at** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsListSkillTags200ResponseInner from a JSON string +skills_list_skill_tags200_response_inner_instance = SkillsListSkillTags200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(SkillsListSkillTags200ResponseInner.to_json()) + +# convert the object into a dict +skills_list_skill_tags200_response_inner_dict = skills_list_skill_tags200_response_inner_instance.to_dict() +# create an instance of SkillsListSkillTags200ResponseInner from a dict +skills_list_skill_tags200_response_inner_from_dict = SkillsListSkillTags200ResponseInner.from_dict(skills_list_skill_tags200_response_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequest.md new file mode 100644 index 0000000000..f609ef2e74 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequest.md @@ -0,0 +1,32 @@ +# SkillsSearchFrameworkSkillsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**query** | [**SkillsSearchFrameworkSkillsRequestQuery**](SkillsSearchFrameworkSkillsRequestQuery.md) | | +**limit** | **int** | | [optional] [default to 50] +**cursor** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsSearchFrameworkSkillsRequest from a JSON string +skills_search_framework_skills_request_instance = SkillsSearchFrameworkSkillsRequest.from_json(json) +# print the JSON string representation of the object +print(SkillsSearchFrameworkSkillsRequest.to_json()) + +# convert the object into a dict +skills_search_framework_skills_request_dict = skills_search_framework_skills_request_instance.to_dict() +# create an instance of SkillsSearchFrameworkSkillsRequest from a dict +skills_search_framework_skills_request_from_dict = SkillsSearchFrameworkSkillsRequest.from_dict(skills_search_framework_skills_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQuery.md b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQuery.md new file mode 100644 index 0000000000..11251b6c19 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQuery.md @@ -0,0 +1,35 @@ +# SkillsSearchFrameworkSkillsRequestQuery + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md) | | +**id** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**statement** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**description** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**code** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**type** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.md) | | [optional] +**status** | [**BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.md) | | [optional] + +## Example + +```python +from openapi_client.models.skills_search_framework_skills_request_query import SkillsSearchFrameworkSkillsRequestQuery + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsSearchFrameworkSkillsRequestQuery from a JSON string +skills_search_framework_skills_request_query_instance = SkillsSearchFrameworkSkillsRequestQuery.from_json(json) +# print the JSON string representation of the object +print(SkillsSearchFrameworkSkillsRequestQuery.to_json()) + +# convert the object into a dict +skills_search_framework_skills_request_query_dict = skills_search_framework_skills_request_query_instance.to_dict() +# create an instance of SkillsSearchFrameworkSkillsRequestQuery from a dict +skills_search_framework_skills_request_query_from_dict = SkillsSearchFrameworkSkillsRequestQuery.from_dict(skills_search_framework_skills_request_query_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md new file mode 100644 index 0000000000..b103f4d37f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsSearchFrameworkSkillsRequestQueryAnyOf.md @@ -0,0 +1,29 @@ +# SkillsSearchFrameworkSkillsRequestQueryAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_or** | [**List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1]**](BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.md) | | + +## Example + +```python +from openapi_client.models.skills_search_framework_skills_request_query_any_of import SkillsSearchFrameworkSkillsRequestQueryAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsSearchFrameworkSkillsRequestQueryAnyOf from a JSON string +skills_search_framework_skills_request_query_any_of_instance = SkillsSearchFrameworkSkillsRequestQueryAnyOf.from_json(json) +# print the JSON string representation of the object +print(SkillsSearchFrameworkSkillsRequestQueryAnyOf.to_json()) + +# convert the object into a dict +skills_search_framework_skills_request_query_any_of_dict = skills_search_framework_skills_request_query_any_of_instance.to_dict() +# create an instance of SkillsSearchFrameworkSkillsRequestQueryAnyOf from a dict +skills_search_framework_skills_request_query_any_of_from_dict = SkillsSearchFrameworkSkillsRequestQueryAnyOf.from_dict(skills_search_framework_skills_request_query_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsSyncFrameworkSkills200Response.md b/packages/open-api-lcn-clients/python-client/docs/SkillsSyncFrameworkSkills200Response.md new file mode 100644 index 0000000000..2081df7b35 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsSyncFrameworkSkills200Response.md @@ -0,0 +1,30 @@ +# SkillsSyncFrameworkSkills200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework** | [**BoostGetBoostFrameworks200ResponseRecordsInner**](BoostGetBoostFrameworks200ResponseRecordsInner.md) | | +**skills** | [**SkillsGetFrameworkSkillTree200Response**](SkillsGetFrameworkSkillTree200Response.md) | | + +## Example + +```python +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsSyncFrameworkSkills200Response from a JSON string +skills_sync_framework_skills200_response_instance = SkillsSyncFrameworkSkills200Response.from_json(json) +# print the JSON string representation of the object +print(SkillsSyncFrameworkSkills200Response.to_json()) + +# convert the object into a dict +skills_sync_framework_skills200_response_dict = skills_sync_framework_skills200_response_instance.to_dict() +# create an instance of SkillsSyncFrameworkSkills200Response from a dict +skills_sync_framework_skills200_response_from_dict = SkillsSyncFrameworkSkills200Response.from_dict(skills_sync_framework_skills200_response_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/SkillsUpdateRequest.md b/packages/open-api-lcn-clients/python-client/docs/SkillsUpdateRequest.md new file mode 100644 index 0000000000..38476a5d33 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/SkillsUpdateRequest.md @@ -0,0 +1,35 @@ +# SkillsUpdateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**framework_id** | **str** | | +**statement** | **str** | | [optional] +**description** | **str** | | [optional] +**code** | **str** | | [optional] +**icon** | **str** | | [optional] +**type** | **str** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.skills_update_request import SkillsUpdateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SkillsUpdateRequest from a JSON string +skills_update_request_instance = SkillsUpdateRequest.from_json(json) +# print the JSON string representation of the object +print(SkillsUpdateRequest.to_json()) + +# convert the object into a dict +skills_update_request_dict = skills_update_request_instance.to_dict() +# create an instance of SkillsUpdateRequest from a dict +skills_update_request_from_dict = SkillsUpdateRequest.from_dict(skills_update_request_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200Response.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200Response.md index 9290920568..eef825eb8c 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200Response.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,16 +21,16 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | -**verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**verifiable_credential** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] **protected** | **str** | | **iv** | **str** | | **ciphertext** | **str** | | **tag** | **str** | | **aad** | **str** | | [optional] -**recipients** | [**List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]**](BoostSendBoostRequestCredentialAnyOf1RecipientsInner.md) | | [optional] +**recipients** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md) | | [optional] **read** | [**StorageResolve200ResponseAnyOf1Read**](StorageResolve200ResponseAnyOf1Read.md) | | **write** | [**StorageResolve200ResponseAnyOf1Write**](StorageResolve200ResponseAnyOf1Write.md) | | **denied_writers** | **List[str]** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf.md index 1aaee95a4c..2c59247464 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,18 +21,18 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | -**verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**verifiable_credential** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] **protected** | **str** | | **iv** | **str** | | **ciphertext** | **str** | | **tag** | **str** | | **aad** | **str** | | [optional] -**recipients** | [**List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]**](BoostSendBoostRequestCredentialAnyOf1RecipientsInner.md) | | [optional] -**read** | [**StorageResolve200ResponseAnyOfAnyOfRead**](StorageResolve200ResponseAnyOfAnyOfRead.md) | | -**write** | [**StorageResolve200ResponseAnyOfAnyOfWrite**](StorageResolve200ResponseAnyOfAnyOfWrite.md) | | +**recipients** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md) | | [optional] +**read** | [**StorageResolve200ResponseAnyOfAnyOf1Read**](StorageResolve200ResponseAnyOfAnyOf1Read.md) | | +**write** | [**StorageResolve200ResponseAnyOfAnyOf1Write**](StorageResolve200ResponseAnyOfAnyOf1Write.md) | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf1Read.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf1Read.md index af85ebe671..5ec77fe292 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf1Read.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOf1Read.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **anonymize** | **bool** | | [optional] **credentials** | [**StorageResolve200ResponseAnyOf1ReadCredentials**](StorageResolve200ResponseAnyOf1ReadCredentials.md) | | -**personal** | **Dict[str, str]** | | +**personal** | **Dict[str, Optional[str]]** | | ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf.md index 3bf6a8242f..3ff4595429 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf.md @@ -5,8 +5,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**read** | [**StorageResolve200ResponseAnyOfAnyOfRead**](StorageResolve200ResponseAnyOfAnyOfRead.md) | | -**write** | [**StorageResolve200ResponseAnyOfAnyOfWrite**](StorageResolve200ResponseAnyOfAnyOfWrite.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**verifiable_credential** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) | | [optional] +**holder** | **str** | | [optional] +**protected** | **str** | | +**iv** | **str** | | +**ciphertext** | **str** | | +**tag** | **str** | | +**aad** | **str** | | [optional] +**recipients** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1.md new file mode 100644 index 0000000000..35c7bac430 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1.md @@ -0,0 +1,30 @@ +# StorageResolve200ResponseAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**StorageResolve200ResponseAnyOfAnyOf1Read**](StorageResolve200ResponseAnyOfAnyOf1Read.md) | | +**write** | [**StorageResolve200ResponseAnyOfAnyOf1Write**](StorageResolve200ResponseAnyOfAnyOf1Write.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1 from a JSON string +storage_resolve200_response_any_of_any_of1_instance = StorageResolve200ResponseAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_dict = storage_resolve200_response_any_of_any_of1_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1 from a dict +storage_resolve200_response_any_of_any_of1_from_dict = StorageResolve200ResponseAnyOfAnyOf1.from_dict(storage_resolve200_response_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Read.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Read.md new file mode 100644 index 0000000000..25b31f051f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Read.md @@ -0,0 +1,31 @@ +# StorageResolve200ResponseAnyOfAnyOf1Read + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**anonymize** | **bool** | | [optional] +**credentials** | [**StorageResolve200ResponseAnyOfAnyOf1ReadCredentials**](StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md) | | +**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue]**](StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read import StorageResolve200ResponseAnyOfAnyOf1Read + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1Read from a JSON string +storage_resolve200_response_any_of_any_of1_read_instance = StorageResolve200ResponseAnyOfAnyOf1Read.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1Read.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_read_dict = storage_resolve200_response_any_of_any_of1_read_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1Read from a dict +storage_resolve200_response_any_of_any_of1_read_from_dict = StorageResolve200ResponseAnyOfAnyOf1Read.from_dict(storage_resolve200_response_any_of_any_of1_read_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md new file mode 100644 index 0000000000..3aa5474f03 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.md @@ -0,0 +1,29 @@ +# StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials import StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentials from a JSON string +storage_resolve200_response_any_of_any_of1_read_credentials_instance = StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_read_credentials_dict = storage_resolve200_response_any_of_any_of1_read_credentials_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentials from a dict +storage_resolve200_response_any_of_any_of1_read_credentials_from_dict = StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.from_dict(storage_resolve200_response_any_of_any_of1_read_credentials_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md new file mode 100644 index 0000000000..3c3a537d91 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.md @@ -0,0 +1,30 @@ +# StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**required** | **bool** | | +**default_enabled** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue from a JSON string +storage_resolve200_response_any_of_any_of1_read_credentials_categories_value_instance = StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_read_credentials_categories_value_dict = storage_resolve200_response_any_of_any_of1_read_credentials_categories_value_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue from a dict +storage_resolve200_response_any_of_any_of1_read_credentials_categories_value_from_dict = StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.from_dict(storage_resolve200_response_any_of_any_of1_read_credentials_categories_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md new file mode 100644 index 0000000000..15f9bf2165 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md @@ -0,0 +1,30 @@ +# StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**required** | **bool** | | +**default_enabled** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from a JSON string +storage_resolve200_response_any_of_any_of1_read_personal_value_instance = StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_read_personal_value_dict = storage_resolve200_response_any_of_any_of1_read_personal_value_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from a dict +storage_resolve200_response_any_of_any_of1_read_personal_value_from_dict = StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_dict(storage_resolve200_response_any_of_any_of1_read_personal_value_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Write.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Write.md new file mode 100644 index 0000000000..72b3078113 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1Write.md @@ -0,0 +1,30 @@ +# StorageResolve200ResponseAnyOfAnyOf1Write + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | [**StorageResolve200ResponseAnyOfAnyOf1WriteCredentials**](StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md) | | +**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue]**](StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1Write from a JSON string +storage_resolve200_response_any_of_any_of1_write_instance = StorageResolve200ResponseAnyOfAnyOf1Write.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1Write.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_write_dict = storage_resolve200_response_any_of_any_of1_write_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1Write from a dict +storage_resolve200_response_any_of_any_of1_write_from_dict = StorageResolve200ResponseAnyOfAnyOf1Write.from_dict(storage_resolve200_response_any_of_any_of1_write_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md new file mode 100644 index 0000000000..40eb9beecd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.md @@ -0,0 +1,29 @@ +# StorageResolve200ResponseAnyOfAnyOf1WriteCredentials + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue]**](StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOf1WriteCredentials from a JSON string +storage_resolve200_response_any_of_any_of1_write_credentials_instance = StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of1_write_credentials_dict = storage_resolve200_response_any_of_any_of1_write_credentials_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOf1WriteCredentials from a dict +storage_resolve200_response_any_of_any_of1_write_credentials_from_dict = StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.from_dict(storage_resolve200_response_any_of_any_of1_write_credentials_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md new file mode 100644 index 0000000000..5ed46c807a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf.md @@ -0,0 +1,48 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | +**verifiable_credential** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) | | [optional] +**holder** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf from a JSON string +storage_resolve200_response_any_of_any_of_any_of_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOf.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_dict = storage_resolve200_response_any_of_any_of_any_of_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf from a dict +storage_resolve200_response_any_of_any_of_any_of_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOf.from_dict(storage_resolve200_response_any_of_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md new file mode 100644 index 0000000000..dcdb75064c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1.md @@ -0,0 +1,34 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**protected** | **str** | | +**iv** | **str** | | +**ciphertext** | **str** | | +**tag** | **str** | | +**aad** | **str** | | [optional] +**recipients** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md) | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1 from a JSON string +storage_resolve200_response_any_of_any_of_any_of1_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOf1.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of1_dict = storage_resolve200_response_any_of_any_of_any_of1_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1 from a dict +storage_resolve200_response_any_of_any_of_any_of1_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOf1.from_dict(storage_resolve200_response_any_of_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md new file mode 100644 index 0000000000..6dfb70caa2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.md @@ -0,0 +1,30 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md) | | +**encrypted_key** | **str** | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner from a JSON string +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_dict = storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner from a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.from_dict(storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md new file mode 100644 index 0000000000..52e6a27a1f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.md @@ -0,0 +1,35 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alg** | **str** | | +**iv** | **str** | | +**tag** | **str** | | +**epk** | [**StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk**](StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md) | | [optional] +**kid** | **str** | | [optional] +**apv** | **str** | | [optional] +**apu** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader from a JSON string +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_dict = storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader from a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.from_dict(storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md new file mode 100644 index 0000000000..c4c0a170d5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.md @@ -0,0 +1,34 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | | [optional] +**crv** | **str** | | [optional] +**x** | **str** | | [optional] +**y** | **str** | | [optional] +**n** | **str** | | [optional] +**d** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk from a JSON string +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk_dict = storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk from a dict +storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.from_dict(storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md new file mode 100644 index 0000000000..5ac6f84df4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.md @@ -0,0 +1,46 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md new file mode 100644 index 0000000000..c9cbbbf765 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md @@ -0,0 +1,34 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**verifiable_credential** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md) | | [optional] +**holder** | **str** | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of1_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of1_dict = storage_resolve200_response_any_of_any_of_any_of_any_of1_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of1_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md new file mode 100644 index 0000000000..f11aaf9d01 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.md @@ -0,0 +1,46 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential_dict = storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md new file mode 100644 index 0000000000..4300ce83b1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.md @@ -0,0 +1,45 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md new file mode 100644 index 0000000000..a5929cb6d6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.md @@ -0,0 +1,46 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | **List[str]** | | +**issuer** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**issuance_date** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**valid_from** | **str** | | [optional] +**valid_until** | **str** | | [optional] +**status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] +**terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md new file mode 100644 index 0000000000..2ca0d4e931 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.md @@ -0,0 +1,49 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md new file mode 100644 index 0000000000..e6be15cde1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.md @@ -0,0 +1,49 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] +**phone** | **str** | | [optional] +**description** | **str** | | [optional] +**endorsement** | **List[object]** | | [optional] +**image** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md) | | [optional] +**email** | **str** | | [optional] +**address** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md) | | [optional] +**other_identifier** | [**List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner]**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md) | | [optional] +**official** | **str** | | [optional] +**parent_org** | **object** | | [optional] +**family_name** | **str** | | [optional] +**given_name** | **str** | | [optional] +**additional_name** | **str** | | [optional] +**patronymic_name** | **str** | | [optional] +**honorific_prefix** | **str** | | [optional] +**honorific_suffix** | **str** | | [optional] +**family_name_prefix** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md new file mode 100644 index 0000000000..8cf2a1b93b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.md @@ -0,0 +1,37 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**address_country** | **str** | | [optional] +**address_country_code** | **str** | | [optional] +**address_region** | **str** | | [optional] +**address_locality** | **str** | | [optional] +**street_address** | **str** | | [optional] +**post_office_box_number** | **str** | | [optional] +**postal_code** | **str** | | [optional] +**geo** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md) | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md new file mode 100644 index 0000000000..fd014b42d9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.md @@ -0,0 +1,31 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**latitude** | **float** | | +**longitude** | **float** | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md new file mode 100644 index 0000000000..06e16dc8cc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.md @@ -0,0 +1,31 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md new file mode 100644 index 0000000000..35cf1e0155 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.md @@ -0,0 +1,31 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**caption** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md new file mode 100644 index 0000000000..73f51701a7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.md @@ -0,0 +1,31 @@ +# StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.md) | | +**identifier** | **str** | | +**identifier_type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.md) | | + +## Example + +```python +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from a JSON string +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.from_json(json) +# print the JSON string representation of the object +print(StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.to_json()) + +# convert the object into a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner_dict = storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner_instance.to_dict() +# create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from a dict +storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner_from_dict = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.from_dict(storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfRead.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfRead.md deleted file mode 100644 index e9c200db86..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfRead.md +++ /dev/null @@ -1,31 +0,0 @@ -# StorageResolve200ResponseAnyOfAnyOfRead - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**anonymize** | **bool** | | [optional] -**credentials** | [**StorageResolve200ResponseAnyOfAnyOfReadCredentials**](StorageResolve200ResponseAnyOfAnyOfReadCredentials.md) | | -**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | - -## Example - -```python -from openapi_client.models.storage_resolve200_response_any_of_any_of_read import StorageResolve200ResponseAnyOfAnyOfRead - -# TODO update the JSON string below -json = "{}" -# create an instance of StorageResolve200ResponseAnyOfAnyOfRead from a JSON string -storage_resolve200_response_any_of_any_of_read_instance = StorageResolve200ResponseAnyOfAnyOfRead.from_json(json) -# print the JSON string representation of the object -print(StorageResolve200ResponseAnyOfAnyOfRead.to_json()) - -# convert the object into a dict -storage_resolve200_response_any_of_any_of_read_dict = storage_resolve200_response_any_of_any_of_read_instance.to_dict() -# create an instance of StorageResolve200ResponseAnyOfAnyOfRead from a dict -storage_resolve200_response_any_of_any_of_read_from_dict = StorageResolve200ResponseAnyOfAnyOfRead.from_dict(storage_resolve200_response_any_of_any_of_read_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md deleted file mode 100644 index 94fd47a745..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentials.md +++ /dev/null @@ -1,29 +0,0 @@ -# StorageResolve200ResponseAnyOfAnyOfReadCredentials - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**categories** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | - -## Example - -```python -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials - -# TODO update the JSON string below -json = "{}" -# create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentials from a JSON string -storage_resolve200_response_any_of_any_of_read_credentials_instance = StorageResolve200ResponseAnyOfAnyOfReadCredentials.from_json(json) -# print the JSON string representation of the object -print(StorageResolve200ResponseAnyOfAnyOfReadCredentials.to_json()) - -# convert the object into a dict -storage_resolve200_response_any_of_any_of_read_credentials_dict = storage_resolve200_response_any_of_any_of_read_credentials_instance.to_dict() -# create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentials from a dict -storage_resolve200_response_any_of_any_of_read_credentials_from_dict = StorageResolve200ResponseAnyOfAnyOfReadCredentials.from_dict(storage_resolve200_response_any_of_any_of_read_credentials_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md deleted file mode 100644 index 31652eafe7..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md +++ /dev/null @@ -1,29 +0,0 @@ -# StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**required** | **bool** | | - -## Example - -```python -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue - -# TODO update the JSON string below -json = "{}" -# create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue from a JSON string -storage_resolve200_response_any_of_any_of_read_credentials_categories_value_instance = StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_json(json) -# print the JSON string representation of the object -print(StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.to_json()) - -# convert the object into a dict -storage_resolve200_response_any_of_any_of_read_credentials_categories_value_dict = storage_resolve200_response_any_of_any_of_read_credentials_categories_value_instance.to_dict() -# create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue from a dict -storage_resolve200_response_any_of_any_of_read_credentials_categories_value_from_dict = StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(storage_resolve200_response_any_of_any_of_read_credentials_categories_value_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfWrite.md b/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfWrite.md deleted file mode 100644 index 6efb8d7c8a..0000000000 --- a/packages/open-api-lcn-clients/python-client/docs/StorageResolve200ResponseAnyOfAnyOfWrite.md +++ /dev/null @@ -1,30 +0,0 @@ -# StorageResolve200ResponseAnyOfAnyOfWrite - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**credentials** | [**StorageResolve200ResponseAnyOfAnyOfReadCredentials**](StorageResolve200ResponseAnyOfAnyOfReadCredentials.md) | | -**personal** | [**Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]**](StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.md) | | - -## Example - -```python -from openapi_client.models.storage_resolve200_response_any_of_any_of_write import StorageResolve200ResponseAnyOfAnyOfWrite - -# TODO update the JSON string below -json = "{}" -# create an instance of StorageResolve200ResponseAnyOfAnyOfWrite from a JSON string -storage_resolve200_response_any_of_any_of_write_instance = StorageResolve200ResponseAnyOfAnyOfWrite.from_json(json) -# print the JSON string representation of the object -print(StorageResolve200ResponseAnyOfAnyOfWrite.to_json()) - -# convert the object into a dict -storage_resolve200_response_any_of_any_of_write_dict = storage_resolve200_response_any_of_any_of_write_instance.to_dict() -# create an instance of StorageResolve200ResponseAnyOfAnyOfWrite from a dict -storage_resolve200_response_any_of_any_of_write_from_dict = StorageResolve200ResponseAnyOfAnyOfWrite.from_dict(storage_resolve200_response_any_of_any_of_write_dict) -``` -[[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/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItem.md b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItem.md index 102fabf52d..2950079c39 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItem.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItem.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] **protected** | **str** | | @@ -30,7 +30,7 @@ Name | Type | Description | Notes **ciphertext** | **str** | | **tag** | **str** | | **aad** | **str** | | [optional] -**recipients** | [**List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]**](BoostSendBoostRequestCredentialAnyOf1RecipientsInner.md) | | [optional] +**recipients** | [**List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]**](CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOf.md index 2e6ee26142..c4f8ca36ed 100644 --- a/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOf.md +++ b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOf.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**List[BoostSendBoostRequestCredentialAnyOfContextInner]**](BoostSendBoostRequestCredentialAnyOfContextInner.md) | | +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | **id** | **str** | | [optional] -**type** | [**BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType**](BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.md) | | -**issuer** | [**BoostSendBoostRequestCredentialAnyOfIssuer**](BoostSendBoostRequestCredentialAnyOfIssuer.md) | | -**credential_subject** | [**BoostSendBoostRequestCredentialAnyOfCredentialSubject**](BoostSendBoostRequestCredentialAnyOfCredentialSubject.md) | | -**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfRefreshService**](BoostSendBoostRequestCredentialAnyOfRefreshService.md) | | [optional] -**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialSchema**](BoostSendBoostRequestCredentialAnyOfCredentialSchema.md) | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**issuer** | [**BoostSendRequestTemplateCredentialAnyOfIssuer**](BoostSendRequestTemplateCredentialAnyOfIssuer.md) | | +**credential_subject** | [**BoostSendRequestTemplateCredentialAnyOfCredentialSubject**](BoostSendRequestTemplateCredentialAnyOfCredentialSubject.md) | | +**refresh_service** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] +**credential_schema** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **issuance_date** | **str** | | [optional] **expiration_date** | **str** | | [optional] **credential_status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] @@ -21,8 +21,8 @@ Name | Type | Description | Notes **valid_until** | **str** | | [optional] **status** | [**BoostSendBoostRequestCredentialAnyOfCredentialStatus**](BoostSendBoostRequestCredentialAnyOfCredentialStatus.md) | | [optional] **terms_of_use** | [**BoostSendBoostRequestCredentialAnyOfTermsOfUse**](BoostSendBoostRequestCredentialAnyOfTermsOfUse.md) | | [optional] -**evidence** | [**BoostSendBoostRequestCredentialAnyOfEvidence**](BoostSendBoostRequestCredentialAnyOfEvidence.md) | | [optional] -**proof** | [**BoostSendBoostRequestCredentialAnyOfProof**](BoostSendBoostRequestCredentialAnyOfProof.md) | | +**evidence** | [**BoostSendRequestTemplateCredentialAnyOfEvidence**](BoostSendRequestTemplateCredentialAnyOfEvidence.md) | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | **verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] **holder** | **str** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOfAnyOf.md b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOfAnyOf.md new file mode 100644 index 0000000000..16ded322b2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/docs/StorageStoreRequestItemAnyOfAnyOf.md @@ -0,0 +1,34 @@ +# StorageStoreRequestItemAnyOfAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**List[BoostSendRequestTemplateCredentialAnyOfContextInner]**](BoostSendRequestTemplateCredentialAnyOfContextInner.md) | | +**id** | **str** | | [optional] +**type** | [**BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType**](BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.md) | | +**verifiable_credential** | [**PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential**](PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.md) | | [optional] +**holder** | **str** | | [optional] +**proof** | [**BoostSendRequestTemplateCredentialAnyOfProof**](BoostSendRequestTemplateCredentialAnyOfProof.md) | | + +## Example + +```python +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of StorageStoreRequestItemAnyOfAnyOf from a JSON string +storage_store_request_item_any_of_any_of_instance = StorageStoreRequestItemAnyOfAnyOf.from_json(json) +# print the JSON string representation of the object +print(StorageStoreRequestItemAnyOfAnyOf.to_json()) + +# convert the object into a dict +storage_store_request_item_any_of_any_of_dict = storage_store_request_item_any_of_any_of_instance.to_dict() +# create an instance of StorageStoreRequestItemAnyOfAnyOf from a dict +storage_store_request_item_any_of_any_of_from_dict = StorageStoreRequestItemAnyOfAnyOf.from_dict(storage_store_request_item_any_of_any_of_dict) +``` +[[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/packages/open-api-lcn-clients/python-client/docs/UniversalInboxApi.md b/packages/open-api-lcn-clients/python-client/docs/UniversalInboxApi.md index add9374bcd..b37e5513eb 100644 --- a/packages/open-api-lcn-clients/python-client/docs/UniversalInboxApi.md +++ b/packages/open-api-lcn-clients/python-client/docs/UniversalInboxApi.md @@ -4,11 +4,347 @@ All URIs are relative to *https://network.learncard.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**inbox_approve_guardian_request**](UniversalInboxApi.md#inbox_approve_guardian_request) | **POST** /inbox/guardian-approval/approve | Approve Guardian Request +[**inbox_approve_guardian_request_by_path**](UniversalInboxApi.md#inbox_approve_guardian_request_by_path) | **GET** /inbox/guardian-approval/{token} | Approve Guardian Request (GET) +[**inbox_claim**](UniversalInboxApi.md#inbox_claim) | **POST** /inbox/claim | Claim Universal Inbox Credential +[**inbox_finalize**](UniversalInboxApi.md#inbox_finalize) | **POST** /inbox/finalize | Finalize Universal Inbox Credentials [**inbox_get_inbox_credential**](UniversalInboxApi.md#inbox_get_inbox_credential) | **GET** /inbox/credentials/{credentialId} | Get Universal Inbox Credential Details [**inbox_get_my_issued_credentials**](UniversalInboxApi.md#inbox_get_my_issued_credentials) | **POST** /inbox/issued | Get My Issued Universal Inbox Credentials [**inbox_issue**](UniversalInboxApi.md#inbox_issue) | **POST** /inbox/issue | Issue Credential to Universal Inbox +[**inbox_send_guardian_approval_email**](UniversalInboxApi.md#inbox_send_guardian_approval_email) | **POST** /inbox/guardian-approval/send | Send Guardian Approval Email +# **inbox_approve_guardian_request** +> ContactMethodsSendChallenge200Response inbox_approve_guardian_request(inbox_approve_guardian_request_request) + +Approve Guardian Request + +Consumes a guardian approval token and marks the requesting user profile as approved. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.UniversalInboxApi(api_client) + inbox_approve_guardian_request_request = openapi_client.InboxApproveGuardianRequestRequest() # InboxApproveGuardianRequestRequest | + + try: + # Approve Guardian Request + api_response = api_instance.inbox_approve_guardian_request(inbox_approve_guardian_request_request) + print("The response of UniversalInboxApi->inbox_approve_guardian_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UniversalInboxApi->inbox_approve_guardian_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inbox_approve_guardian_request_request** | [**InboxApproveGuardianRequestRequest**](InboxApproveGuardianRequestRequest.md)| | + +### Return type + +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **inbox_approve_guardian_request_by_path** +> ContactMethodsSendChallenge200Response inbox_approve_guardian_request_by_path(token) + +Approve Guardian Request (GET) + +GET endpoint to consume guardian approval token from URL path. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.UniversalInboxApi(api_client) + token = 'token_example' # str | + + try: + # Approve Guardian Request (GET) + api_response = api_instance.inbox_approve_guardian_request_by_path(token) + print("The response of UniversalInboxApi->inbox_approve_guardian_request_by_path:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UniversalInboxApi->inbox_approve_guardian_request_by_path: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**ContactMethodsSendChallenge200Response**](ContactMethodsSendChallenge200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[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) + +# **inbox_claim** +> InboxClaim200Response inbox_claim(inbox_claim_request) + +Claim Universal Inbox Credential + +Claim a credential from the inbox + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.inbox_claim200_response import InboxClaim200Response +from openapi_client.models.inbox_claim_request import InboxClaimRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.UniversalInboxApi(api_client) + inbox_claim_request = openapi_client.InboxClaimRequest() # InboxClaimRequest | + + try: + # Claim Universal Inbox Credential + api_response = api_instance.inbox_claim(inbox_claim_request) + print("The response of UniversalInboxApi->inbox_claim:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UniversalInboxApi->inbox_claim: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inbox_claim_request** | [**InboxClaimRequest**](InboxClaimRequest.md)| | + +### Return type + +[**InboxClaim200Response**](InboxClaim200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + +# **inbox_finalize** +> InboxFinalize200Response inbox_finalize(body=body) + +Finalize Universal Inbox Credentials + +Sign and issue all pending inbox credentials for verified contact methods of the authenticated profile + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.UniversalInboxApi(api_client) + body = None # object | (optional) + + try: + # Finalize Universal Inbox Credentials + api_response = api_instance.inbox_finalize(body=body) + print("The response of UniversalInboxApi->inbox_finalize:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UniversalInboxApi->inbox_finalize: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **object**| | [optional] + +### Return type + +[**InboxFinalize200Response**](InboxFinalize200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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) + # **inbox_get_inbox_credential** > InboxGetMyIssuedCredentials200ResponseRecordsInner inbox_get_inbox_credential(credential_id) @@ -258,3 +594,86 @@ Name | Type | Description | Notes [[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) +# **inbox_send_guardian_approval_email** +> InboxSendGuardianApprovalEmail200Response inbox_send_guardian_approval_email(inbox_send_guardian_approval_email_request) + +Send Guardian Approval Email + +Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + +### Example + +* Bearer Authentication (Authorization): + +```python +import openapi_client +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://network.learncard.com/api +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://network.learncard.com/api" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: Authorization +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.UniversalInboxApi(api_client) + inbox_send_guardian_approval_email_request = openapi_client.InboxSendGuardianApprovalEmailRequest() # InboxSendGuardianApprovalEmailRequest | + + try: + # Send Guardian Approval Email + api_response = api_instance.inbox_send_guardian_approval_email(inbox_send_guardian_approval_email_request) + print("The response of UniversalInboxApi->inbox_send_guardian_approval_email:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UniversalInboxApi->inbox_send_guardian_approval_email: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inbox_send_guardian_approval_email_request** | [**InboxSendGuardianApprovalEmailRequest**](InboxSendGuardianApprovalEmailRequest.md)| | + +### Return type + +[**InboxSendGuardianApprovalEmail200Response**](InboxSendGuardianApprovalEmail200Response.md) + +### Authorization + +[Authorization](../README.md#Authorization) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful response | - | +**400** | Invalid input data | - | +**401** | Authorization not provided | - | +**403** | Insufficient access | - | +**500** | Internal server error | - | + +[[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/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchange200Response.md b/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchange200Response.md index 93e53c8ff4..3c407a5604 100644 --- a/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchange200Response.md +++ b/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchange200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**verifiable_presentation** | [**PresentationSendPresentationRequestPresentationAnyOf**](PresentationSendPresentationRequestPresentationAnyOf.md) | | [optional] +**verifiable_presentation** | [**StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1**](StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.md) | | [optional] **verifiable_presentation_request** | [**WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest**](WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest.md) | | [optional] **redirect_url** | **str** | | [optional] diff --git a/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchangeRequest.md b/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchangeRequest.md index fcbbdf9b4b..d740948aae 100644 --- a/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchangeRequest.md +++ b/packages/open-api-lcn-clients/python-client/docs/WorkflowsParticipateInExchangeRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**verifiable_presentation** | [**PresentationSendPresentationRequestPresentationAnyOf**](PresentationSendPresentationRequestPresentationAnyOf.md) | | [optional] +**verifiable_presentation** | [**StorageStoreRequestItemAnyOfAnyOf**](StorageStoreRequestItemAnyOfAnyOf.md) | | [optional] ## Example diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/__init__.py b/packages/open-api-lcn-clients/python-client/openapi_client/__init__.py index 6b424b0724..2220188a22 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/__init__.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/__init__.py @@ -18,6 +18,8 @@ # Define package exports __all__ = [ + "AppStoreApi", + "AppStoreAdminApi", "AuthGrantsApi", "BoostsApi", "ClaimHooksApi", @@ -25,9 +27,12 @@ "ContractsApi", "CredentialsApi", "DIDMetadataApi", + "IntegrationsApi", "PresentationsApi", "ProfileManagersApi", "ProfilesApi", + "SendApi", + "SkillsApi", "StorageApi", "UniversalInboxApi", "UtilitiesApi", @@ -42,6 +47,20 @@ "ApiKeyError", "ApiAttributeError", "ApiException", + "AppStoreAdminGetAllListingsRequest", + "AppStoreAdminUpdateListingStatusRequest", + "AppStoreAdminUpdatePromotionLevelRequest", + "AppStoreBrowseListedAppsRequest", + "AppStoreCreateListingRequest", + "AppStoreCreateListingRequestListing", + "AppStoreGetInstalledApps200Response", + "AppStoreGetInstalledApps200ResponseRecordsInner", + "AppStoreGetListing200Response", + "AppStoreGetListingsForIntegration200Response", + "AppStoreGetListingsForIntegration200ResponseRecordsInner", + "AppStoreGetListingsForIntegrationRequest", + "AppStoreUpdateListingRequest", + "AppStoreUpdateListingRequestUpdates", "AuthGrantsAddAuthGrantRequest", "AuthGrantsGetAuthGrant200Response", "AuthGrantsGetAuthGrants200ResponseInner", @@ -50,7 +69,12 @@ "AuthGrantsUpdateAuthGrantRequest", "AuthGrantsUpdateAuthGrantRequestUpdates", "BoostAddBoostAdminRequest", + "BoostAlignBoostSkillsRequest", + "BoostAlignBoostSkillsRequestSkillsInner", + "BoostAttachFrameworkToBoostRequest", + "BoostClaimBoostWithLinkRequest", "BoostCountBoostChildrenRequest", + "BoostCountBoostParentsRequest", "BoostCountBoostSiblingsRequest", "BoostCountFamilialBoostsRequest", "BoostCreateBoostRequest", @@ -58,28 +82,47 @@ "BoostCreateBoostRequestCredential", "BoostCreateBoostRequestCredentialAnyOf", "BoostCreateChildBoostRequest", + "BoostCreateChildBoostRequestBoost", + "BoostDetachFrameworkFromBoostRequest", "BoostGenerateClaimLink200Response", "BoostGenerateClaimLinkRequest", "BoostGenerateClaimLinkRequestClaimLinkSA", "BoostGenerateClaimLinkRequestOptions", "BoostGetBoost200Response", + "BoostGetBoost200ResponseBoost", + "BoostGetBoost200ResponseBoostIssuer", + "BoostGetBoost200ResponseBoostIssuerAnyOf", + "BoostGetBoost200ResponseBoostIssuerAnyOfAddress", + "BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo", + "BoostGetBoost200ResponseBoostIssuerAnyOfImage", + "BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf", + "BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner", "BoostGetBoost200ResponseClaimPermissions", + "BoostGetBoost200ResponseDefaultPermissions", "BoostGetBoostAdmins200Response", "BoostGetBoostAdminsRequest", + "BoostGetBoostAlignments200ResponseInner", "BoostGetBoostChildrenRequest", + "BoostGetBoostFrameworks200Response", + "BoostGetBoostFrameworks200ResponseRecordsInner", + "BoostGetBoostFrameworksRequest", + "BoostGetBoostFrameworksRequestQuery", + "BoostGetBoostFrameworksRequestQueryAnyOf", + "BoostGetBoostFrameworksRequestQueryAnyOfOrInner", + "BoostGetBoostParentsRequest", "BoostGetBoostRecipients200ResponseInner", "BoostGetBoostRecipients200ResponseInnerTo", "BoostGetBoostRecipients200ResponseInnerToDisplay", + "BoostGetBoostRecipientsWithChildrenCountRequest", + "BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations", "BoostGetBoostSiblingsRequest", "BoostGetBoosts200ResponseInner", "BoostGetBoostsRequest", "BoostGetBoostsRequestQuery", - "BoostGetBoostsRequestQueryStatus", - "BoostGetBoostsRequestQueryStatusAnyOf", - "BoostGetBoostsRequestQueryUri", - "BoostGetBoostsRequestQueryUriAnyOf", - "BoostGetBoostsRequestQueryUriAnyOf1", - "BoostGetBoostsRequestQueryUriAnyOfAnyOf", + "BoostGetBoostsRequestQueryAnyOf", + "BoostGetBoostsRequestQueryAnyOfOrInner", + "BoostGetBoostsRequestQueryAnyOfOrInnerStatus", + "BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf", "BoostGetChildrenProfileManagers200Response", "BoostGetChildrenProfileManagers200ResponseRecordsInner", "BoostGetChildrenProfileManagersRequest", @@ -87,12 +130,47 @@ "BoostGetConnectedBoostRecipientsRequest", "BoostGetFamilialBoostsRequest", "BoostGetPaginatedBoostRecipients200Response", + "BoostGetPaginatedBoostRecipients200ResponseRecordsInner", + "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", + "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay", "BoostGetPaginatedBoostRecipientsRequest", "BoostGetPaginatedBoostRecipientsRequestQuery", + "BoostGetPaginatedBoostRecipientsWithChildren200Response", + "BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner", + "BoostGetPaginatedBoostRecipientsWithChildrenRequest", + "BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations", "BoostGetPaginatedBoosts200Response", "BoostGetPaginatedBoosts200ResponseRecordsInner", "BoostGetPaginatedBoostsRequest", + "BoostGetSkillsAvailableForBoost200ResponseInner", + "BoostGetSkillsAvailableForBoost200ResponseInnerFramework", + "BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner", "BoostMakeBoostParentRequest", + "BoostRemoveBoostAdminRequest", + "BoostRemoveBoostParentRequest", + "BoostSearchSkillsAvailableForBoost200Response", + "BoostSearchSkillsAvailableForBoost200ResponseRecordsInner", + "BoostSearchSkillsAvailableForBoostRequest", + "BoostSearchSkillsAvailableForBoostRequestQuery", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus", + "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf", + "BoostSend200Response", "BoostSendBoostRequest", "BoostSendBoostRequestCredential", "BoostSendBoostRequestCredentialAnyOf", @@ -103,12 +181,14 @@ "BoostSendBoostRequestCredentialAnyOfContextInner", "BoostSendBoostRequestCredentialAnyOfCredentialSchema", "BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf", + "BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner", "BoostSendBoostRequestCredentialAnyOfCredentialStatus", - "BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf", "BoostSendBoostRequestCredentialAnyOfCredentialSubject", "BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf", + "BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner", "BoostSendBoostRequestCredentialAnyOfEvidence", "BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf", + "BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner", "BoostSendBoostRequestCredentialAnyOfIssuer", "BoostSendBoostRequestCredentialAnyOfIssuerAnyOf", "BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress", @@ -121,44 +201,91 @@ "BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType", "BoostSendBoostRequestCredentialAnyOfProof", "BoostSendBoostRequestCredentialAnyOfProofAnyOf", + "BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner", "BoostSendBoostRequestCredentialAnyOfRefreshService", "BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf", + "BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner", "BoostSendBoostRequestCredentialAnyOfTermsOfUse", - "BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf", "BoostSendBoostRequestOptions", "BoostSendBoostViaSigningAuthorityRequest", "BoostSendBoostViaSigningAuthorityRequestSigningAuthority", + "BoostSendRequest", + "BoostSendRequestTemplate", + "BoostSendRequestTemplateClaimPermissions", + "BoostSendRequestTemplateCredential", + "BoostSendRequestTemplateCredentialAnyOf", + "BoostSendRequestTemplateCredentialAnyOf1", + "BoostSendRequestTemplateCredentialAnyOfContextInner", + "BoostSendRequestTemplateCredentialAnyOfCredentialSubject", + "BoostSendRequestTemplateCredentialAnyOfEvidence", + "BoostSendRequestTemplateCredentialAnyOfIssuer", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType", + "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType", + "BoostSendRequestTemplateCredentialAnyOfProof", + "BoostSendRequestTemplateDefaultPermissions", + "BoostSendRequestTemplateSkillsInner", "BoostUpdateBoostPermissionsRequest", "BoostUpdateBoostPermissionsRequestUpdates", "BoostUpdateBoostRequest", "BoostUpdateBoostRequestUpdates", + "BoostUpdateOtherBoostPermissionsRequest", + "BoostUpdateOtherBoostPermissionsRequestUpdates", "ClaimHookCreateClaimHookRequest", "ClaimHookCreateClaimHookRequestHook", "ClaimHookCreateClaimHookRequestHookOneOf", "ClaimHookCreateClaimHookRequestHookOneOf1", "ClaimHookCreateClaimHookRequestHookOneOf1Data", + "ClaimHookCreateClaimHookRequestHookOneOf2", + "ClaimHookCreateClaimHookRequestHookOneOf2Data", "ClaimHookCreateClaimHookRequestHookOneOfData", "ClaimHookDeleteClaimHookRequest", "ClaimHookGetClaimHooksForBoost200Response", "ClaimHookGetClaimHooksForBoost200ResponseRecordsInner", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData", + "ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions", "ClaimHookGetClaimHooksForBoostRequest", "ClaimHookGetClaimHooksForBoostRequestQuery", "ClaimHookGetClaimHooksForBoostRequestQueryData", "ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions", "ContactMethodsAddContactMethod200Response", "ContactMethodsAddContactMethodRequest", + "ContactMethodsCreateContactMethodSession200Response", + "ContactMethodsCreateContactMethodSessionRequest", + "ContactMethodsCreateContactMethodSessionRequestContactMethod", "ContactMethodsGetMyContactMethods200ResponseInner", "ContactMethodsGetMyContactMethods200ResponseInnerOneOf", "ContactMethodsGetMyContactMethods200ResponseInnerOneOf1", - "ContactMethodsSetPrimaryContactMethod200Response", + "ContactMethodsRemoveContactMethodRequest", + "ContactMethodsSendChallenge200Response", + "ContactMethodsSendChallengeRequest", + "ContactMethodsSendChallengeRequestConfiguration", "ContactMethodsSetPrimaryContactMethodRequest", - "ContactMethodsVerifyContactMethod200Response", "ContactMethodsVerifyContactMethodRequest", + "ContactMethodsVerifyWithCredential200Response", + "ContactMethodsVerifyWithCredential200ResponseContactMethod", + "ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf", + "ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1", + "ContactMethodsVerifyWithCredentialRequest", "ContractsAddAutoBoostsToContractRequest", + "ContractsAddAutoBoostsToContractRequestAutoboostsInner", + "ContractsCancelContractRequestRequest", + "ContractsConsentToContract200Response", "ContractsConsentToContractRequest", "ContractsConsentToContractRequestTerms", "ContractsConsentToContractRequestTermsRead", "ContractsConsentToContractRequestTermsReadCredentials", + "ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue", "ContractsConsentToContractRequestTermsWrite", "ContractsConsentToContractRequestTermsWriteCredentials", "ContractsCreateConsentFlowContractRequest", @@ -167,9 +294,15 @@ "ContractsCreateConsentFlowContractRequestContract", "ContractsCreateConsentFlowContractRequestContractRead", "ContractsCreateConsentFlowContractRequestContractReadCredentials", + "ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue", "ContractsCreateConsentFlowContractRequestContractWrite", + "ContractsForwardContractRequestToProfileRequest", + "ContractsGetAllContractRequestsForProfile200ResponseInner", + "ContractsGetAllContractRequestsForProfile200ResponseInnerContract", "ContractsGetAllCredentialsForTermsRequest", "ContractsGetConsentFlowContract200Response", + "ContractsGetConsentFlowContract200ResponseContract", + "ContractsGetConsentFlowContract200ResponseContractRead", "ContractsGetConsentFlowContracts200Response", "ContractsGetConsentFlowContracts200ResponseRecordsInner", "ContractsGetConsentFlowContractsRequest", @@ -180,11 +313,18 @@ "ContractsGetConsentFlowContractsRequestQueryWrite", "ContractsGetConsentedContracts200Response", "ContractsGetConsentedContracts200ResponseRecordsInner", + "ContractsGetConsentedContracts200ResponseRecordsInnerTerms", + "ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead", + "ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials", + "ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue", "ContractsGetConsentedContractsRequest", "ContractsGetConsentedContractsRequestQuery", "ContractsGetConsentedContractsRequestQueryRead", "ContractsGetConsentedContractsRequestQueryReadCredentials", + "ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue", "ContractsGetConsentedContractsRequestQueryWrite", + "ContractsGetConsentedData200Response", + "ContractsGetConsentedData200ResponseRecordsInner", "ContractsGetConsentedDataForContract200Response", "ContractsGetConsentedDataForContract200ResponseRecordsInner", "ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials", @@ -197,11 +337,16 @@ "ContractsGetConsentedDataForDidRequest", "ContractsGetConsentedDataForDidRequestQuery", "ContractsGetConsentedDataRequest", + "ContractsGetContractSentRequests200ResponseInner", "ContractsGetCredentialsForContract200Response", "ContractsGetCredentialsForContract200ResponseRecordsInner", "ContractsGetCredentialsForContractRequest", + "ContractsGetRequestStatusForProfile200Response", "ContractsGetTermsTransactionHistory200Response", "ContractsGetTermsTransactionHistory200ResponseRecordsInner", + "ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms", + "ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite", + "ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials", "ContractsGetTermsTransactionHistoryRequest", "ContractsGetTermsTransactionHistoryRequestQuery", "ContractsGetTermsTransactionHistoryRequestQueryAction", @@ -210,36 +355,79 @@ "ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1", "ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf", "ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1", + "ContractsGetTermsTransactionHistoryRequestQueryExpiresAt", + "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf", + "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1", + "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf", + "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1", "ContractsGetTermsTransactionHistoryRequestQueryTerms", + "ContractsGetTermsTransactionHistoryRequestQueryTermsRead", + "ContractsMarkContractRequestAsSeenRequest", "ContractsRemoveAutoBoostsFromContractRequest", + "ContractsSendAiInsightShareRequestRequest", + "ContractsSendAiInsightsContractRequestRequest", "ContractsSyncCredentialsToContractRequest", "ContractsUpdateConsentedContractTermsRequest", + "ContractsUpdateConsentedContractTermsRequestTerms", + "ContractsUpdateConsentedContractTermsRequestTermsRead", + "ContractsUpdateConsentedContractTermsRequestTermsReadCredentials", "ContractsWriteCredentialToContractRequest", + "ContractsWriteCredentialToContractRequestCredential", "ContractsWriteCredentialToContractViaSigningAuthorityRequest", "CredentialAcceptCredentialRequest", + "CredentialAcceptCredentialRequestOptions", "CredentialReceivedCredentials200ResponseInner", "CredentialSendCredentialRequest", "CredentialSendCredentialRequestCredential", "CredentialSendCredentialRequestCredentialAnyOf", + "CredentialSendCredentialRequestCredentialAnyOf1", + "CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner", + "CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader", + "CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk", "DidMetadataAddDidMetadataRequest", + "DidMetadataAddDidMetadataRequestAuthenticationInner", + "DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf", + "DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk", "DidMetadataAddDidMetadataRequestServiceInner", - "DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint", "DidMetadataAddDidMetadataRequestVerificationMethodInner", "DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf", "DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk", + "DidMetadataGetDidMetadata200Response", + "DidMetadataGetDidMetadata200ResponseAuthenticationInner", + "DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf", + "DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk", + "DidMetadataGetDidMetadata200ResponseServiceInner", + "DidMetadataGetDidMetadata200ResponseVerificationMethodInner", + "DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf", + "DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk", "DidMetadataGetMyDidMetadata200ResponseInner", "DidMetadataUpdateDidMetadataRequest", + "DidMetadataUpdateDidMetadataRequestUpdates", "ErrorBADREQUEST", + "ErrorBADREQUESTIssuesInner", "ErrorFORBIDDEN", "ErrorINTERNALSERVERERROR", "ErrorNOTFOUND", "ErrorUNAUTHORIZED", + "InboxApproveGuardianRequestRequest", + "InboxClaim200Response", + "InboxClaim200ResponseInboxCredential", + "InboxClaim200ResponseInboxCredentialSigningAuthority", + "InboxClaimRequest", + "InboxClaimRequestConfiguration", + "InboxClaimRequestCredential", + "InboxFinalize200Response", "InboxGetMyIssuedCredentials200Response", "InboxGetMyIssuedCredentials200ResponseRecordsInner", + "InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority", "InboxGetMyIssuedCredentialsRequest", "InboxGetMyIssuedCredentialsRequestQuery", + "InboxGetMyIssuedCredentialsRequestRecipient", + "InboxGetMyIssuedCredentialsRequestRecipientOneOf", "InboxIssue200Response", "InboxIssue200ResponseRecipient", + "InboxIssue200ResponseRecipientOneOf", + "InboxIssue200ResponseRecipientOneOf1", "InboxIssueRequest", "InboxIssueRequestConfiguration", "InboxIssueRequestConfigurationDelivery", @@ -254,27 +442,85 @@ "InboxIssueRequestRecipient", "InboxIssueRequestRecipientOneOf", "InboxIssueRequestRecipientOneOf1", + "InboxSendGuardianApprovalEmail200Response", + "InboxSendGuardianApprovalEmailRequest", + "InboxSendGuardianApprovalEmailRequestTemplate", + "IntegrationsAddIntegrationRequest", + "IntegrationsAddIntegrationRequestWhitelistedDomainsInner", + "IntegrationsAssociateIntegrationWithSigningAuthorityRequest", + "IntegrationsCountIntegrationsRequest", + "IntegrationsGetIntegration200Response", + "IntegrationsGetIntegrations200Response", + "IntegrationsGetIntegrations200ResponseRecordsInner", + "IntegrationsGetIntegrationsRequest", + "IntegrationsGetIntegrationsRequestQuery", + "IntegrationsUpdateIntegrationRequest", + "IntegrationsUpdateIntegrationRequestUpdates", "PresentationAcceptPresentationRequest", "PresentationSendPresentationRequest", "PresentationSendPresentationRequestPresentation", "PresentationSendPresentationRequestPresentationAnyOf", "PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential", "ProfileCreateProfileRequest", + "ProfileCreateProfileRequestDisplay", + "ProfileCreateServiceProfileRequest", + "ProfileCreateServiceProfileRequestDisplay", "ProfileGenerateInvite200Response", "ProfileGenerateInviteRequest", "ProfileGetAvailableProfiles200Response", "ProfileGetAvailableProfiles200ResponseRecordsInner", + "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", "ProfileGetAvailableProfilesRequest", + "ProfileListInvites200ResponseInner", "ProfileManagerCreateChildProfileManagerRequest", + "ProfileManagerCreateChildProfileManagerRequestProfile", "ProfileManagerCreateManagedProfileRequest", "ProfileManagerCreateProfileManagerRequest", + "ProfileManagerGetManagedProfilesRequest", "ProfileRegisterSigningAuthorityRequest", "ProfileSearchProfiles200ResponseInner", "ProfileSetPrimarySigningAuthorityRequest", "ProfileSigningAuthorities200ResponseInner", "ProfileSigningAuthorities200ResponseInnerRelationship", "ProfileSigningAuthorities200ResponseInnerSigningAuthority", + "ProfileSigningAuthority200Response", + "ProfileSigningAuthority200ResponseRelationship", + "ProfileSigningAuthority200ResponseSigningAuthority", "ProfileUpdateProfileRequest", + "Schema0", + "Schema1", + "SkillFrameworksAddFrameworkAdmin200Response", + "SkillFrameworksAddFrameworkAdminRequest", + "SkillFrameworksCountBoostsThatUseFramework200Response", + "SkillFrameworksCreateManagedBatchRequest", + "SkillFrameworksCreateManagedBatchRequestFrameworksInner", + "SkillFrameworksCreateManagedRequest", + "SkillFrameworksCreateRequest", + "SkillFrameworksGetBoostsThatUseFrameworkRequest", + "SkillFrameworksGetById200Response", + "SkillFrameworksGetById200ResponseSkills", + "SkillFrameworksRemoveFrameworkAdmin200Response", + "SkillFrameworksReplaceSkills200Response", + "SkillFrameworksReplaceSkillsRequest", + "SkillFrameworksUpdateRequest", + "SkillsAddSkillTag200ResponseInner", + "SkillsAddSkillTagRequest", + "SkillsAddSkillTagRequestTag", + "SkillsCountSkills200Response", + "SkillsCreate200Response", + "SkillsCreateManyRequest", + "SkillsCreateRequest", + "SkillsDelete200Response", + "SkillsGetFrameworkSkillTree200Response", + "SkillsGetFullSkillTree200Response", + "SkillsGetSkill200Response", + "SkillsGetSkillPath200Response", + "SkillsListSkillTags200ResponseInner", + "SkillsSearchFrameworkSkillsRequest", + "SkillsSearchFrameworkSkillsRequestQuery", + "SkillsSearchFrameworkSkillsRequestQueryAnyOf", + "SkillsSyncFrameworkSkills200Response", + "SkillsUpdateRequest", "StorageResolve200Response", "StorageResolve200ResponseAnyOf", "StorageResolve200ResponseAnyOf1", @@ -284,13 +530,34 @@ "StorageResolve200ResponseAnyOf1Write", "StorageResolve200ResponseAnyOf1WriteCredentials", "StorageResolve200ResponseAnyOfAnyOf", - "StorageResolve200ResponseAnyOfAnyOfRead", - "StorageResolve200ResponseAnyOfAnyOfReadCredentials", - "StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue", - "StorageResolve200ResponseAnyOfAnyOfWrite", + "StorageResolve200ResponseAnyOfAnyOf1", + "StorageResolve200ResponseAnyOfAnyOf1Read", + "StorageResolve200ResponseAnyOfAnyOf1ReadCredentials", + "StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue", + "StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue", + "StorageResolve200ResponseAnyOfAnyOf1Write", + "StorageResolve200ResponseAnyOfAnyOf1WriteCredentials", + "StorageResolve200ResponseAnyOfAnyOfAnyOf", + "StorageResolve200ResponseAnyOfAnyOfAnyOf1", + "StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner", + "StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader", + "StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf", + "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner", "StorageStoreRequest", "StorageStoreRequestItem", "StorageStoreRequestItemAnyOf", + "StorageStoreRequestItemAnyOfAnyOf", "WorkflowsParticipateInExchange200Response", "WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest", "WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner", @@ -299,6 +566,8 @@ ] # import apis into sdk package +from openapi_client.api.app_store_api import AppStoreApi as AppStoreApi +from openapi_client.api.app_store_admin_api import AppStoreAdminApi as AppStoreAdminApi from openapi_client.api.auth_grants_api import AuthGrantsApi as AuthGrantsApi from openapi_client.api.boosts_api import BoostsApi as BoostsApi from openapi_client.api.claim_hooks_api import ClaimHooksApi as ClaimHooksApi @@ -306,9 +575,12 @@ from openapi_client.api.contracts_api import ContractsApi as ContractsApi from openapi_client.api.credentials_api import CredentialsApi as CredentialsApi from openapi_client.api.did_metadata_api import DIDMetadataApi as DIDMetadataApi +from openapi_client.api.integrations_api import IntegrationsApi as IntegrationsApi from openapi_client.api.presentations_api import PresentationsApi as PresentationsApi from openapi_client.api.profile_managers_api import ProfileManagersApi as ProfileManagersApi from openapi_client.api.profiles_api import ProfilesApi as ProfilesApi +from openapi_client.api.send_api import SendApi as SendApi +from openapi_client.api.skills_api import SkillsApi as SkillsApi from openapi_client.api.storage_api import StorageApi as StorageApi from openapi_client.api.universal_inbox_api import UniversalInboxApi as UniversalInboxApi from openapi_client.api.utilities_api import UtilitiesApi as UtilitiesApi @@ -327,6 +599,20 @@ from openapi_client.exceptions import ApiException as ApiException # import models into sdk package +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest as AppStoreAdminGetAllListingsRequest +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest as AppStoreAdminUpdateListingStatusRequest +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest as AppStoreAdminUpdatePromotionLevelRequest +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest as AppStoreBrowseListedAppsRequest +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest as AppStoreCreateListingRequest +from openapi_client.models.app_store_create_listing_request_listing import AppStoreCreateListingRequestListing as AppStoreCreateListingRequestListing +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response as AppStoreGetInstalledApps200Response +from openapi_client.models.app_store_get_installed_apps200_response_records_inner import AppStoreGetInstalledApps200ResponseRecordsInner as AppStoreGetInstalledApps200ResponseRecordsInner +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response as AppStoreGetListing200Response +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response as AppStoreGetListingsForIntegration200Response +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner as AppStoreGetListingsForIntegration200ResponseRecordsInner +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest as AppStoreGetListingsForIntegrationRequest +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest as AppStoreUpdateListingRequest +from openapi_client.models.app_store_update_listing_request_updates import AppStoreUpdateListingRequestUpdates as AppStoreUpdateListingRequestUpdates from openapi_client.models.auth_grants_add_auth_grant_request import AuthGrantsAddAuthGrantRequest as AuthGrantsAddAuthGrantRequest from openapi_client.models.auth_grants_get_auth_grant200_response import AuthGrantsGetAuthGrant200Response as AuthGrantsGetAuthGrant200Response from openapi_client.models.auth_grants_get_auth_grants200_response_inner import AuthGrantsGetAuthGrants200ResponseInner as AuthGrantsGetAuthGrants200ResponseInner @@ -335,7 +621,12 @@ from openapi_client.models.auth_grants_update_auth_grant_request import AuthGrantsUpdateAuthGrantRequest as AuthGrantsUpdateAuthGrantRequest from openapi_client.models.auth_grants_update_auth_grant_request_updates import AuthGrantsUpdateAuthGrantRequestUpdates as AuthGrantsUpdateAuthGrantRequestUpdates from openapi_client.models.boost_add_boost_admin_request import BoostAddBoostAdminRequest as BoostAddBoostAdminRequest +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest as BoostAlignBoostSkillsRequest +from openapi_client.models.boost_align_boost_skills_request_skills_inner import BoostAlignBoostSkillsRequestSkillsInner as BoostAlignBoostSkillsRequestSkillsInner +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest as BoostAttachFrameworkToBoostRequest +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest as BoostClaimBoostWithLinkRequest from openapi_client.models.boost_count_boost_children_request import BoostCountBoostChildrenRequest as BoostCountBoostChildrenRequest +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest as BoostCountBoostParentsRequest from openapi_client.models.boost_count_boost_siblings_request import BoostCountBoostSiblingsRequest as BoostCountBoostSiblingsRequest from openapi_client.models.boost_count_familial_boosts_request import BoostCountFamilialBoostsRequest as BoostCountFamilialBoostsRequest from openapi_client.models.boost_create_boost_request import BoostCreateBoostRequest as BoostCreateBoostRequest @@ -343,28 +634,47 @@ from openapi_client.models.boost_create_boost_request_credential import BoostCreateBoostRequestCredential as BoostCreateBoostRequestCredential from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf as BoostCreateBoostRequestCredentialAnyOf from openapi_client.models.boost_create_child_boost_request import BoostCreateChildBoostRequest as BoostCreateChildBoostRequest +from openapi_client.models.boost_create_child_boost_request_boost import BoostCreateChildBoostRequestBoost as BoostCreateChildBoostRequestBoost +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest as BoostDetachFrameworkFromBoostRequest from openapi_client.models.boost_generate_claim_link200_response import BoostGenerateClaimLink200Response as BoostGenerateClaimLink200Response from openapi_client.models.boost_generate_claim_link_request import BoostGenerateClaimLinkRequest as BoostGenerateClaimLinkRequest from openapi_client.models.boost_generate_claim_link_request_claim_link_sa import BoostGenerateClaimLinkRequestClaimLinkSA as BoostGenerateClaimLinkRequestClaimLinkSA from openapi_client.models.boost_generate_claim_link_request_options import BoostGenerateClaimLinkRequestOptions as BoostGenerateClaimLinkRequestOptions from openapi_client.models.boost_get_boost200_response import BoostGetBoost200Response as BoostGetBoost200Response +from openapi_client.models.boost_get_boost200_response_boost import BoostGetBoost200ResponseBoost as BoostGetBoost200ResponseBoost +from openapi_client.models.boost_get_boost200_response_boost_issuer import BoostGetBoost200ResponseBoostIssuer as BoostGetBoost200ResponseBoostIssuer +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of import BoostGetBoost200ResponseBoostIssuerAnyOf as BoostGetBoost200ResponseBoostIssuerAnyOf +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address import BoostGetBoost200ResponseBoostIssuerAnyOfAddress as BoostGetBoost200ResponseBoostIssuerAnyOfAddress +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address_geo import BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo as BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image import BoostGetBoost200ResponseBoostIssuerAnyOfImage as BoostGetBoost200ResponseBoostIssuerAnyOfImage +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image_any_of import BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf as BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner import BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner as BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from openapi_client.models.boost_get_boost200_response_claim_permissions import BoostGetBoost200ResponseClaimPermissions as BoostGetBoost200ResponseClaimPermissions +from openapi_client.models.boost_get_boost200_response_default_permissions import BoostGetBoost200ResponseDefaultPermissions as BoostGetBoost200ResponseDefaultPermissions from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response as BoostGetBoostAdmins200Response from openapi_client.models.boost_get_boost_admins_request import BoostGetBoostAdminsRequest as BoostGetBoostAdminsRequest +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner as BoostGetBoostAlignments200ResponseInner from openapi_client.models.boost_get_boost_children_request import BoostGetBoostChildrenRequest as BoostGetBoostChildrenRequest +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response as BoostGetBoostFrameworks200Response +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner as BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest as BoostGetBoostFrameworksRequest +from openapi_client.models.boost_get_boost_frameworks_request_query import BoostGetBoostFrameworksRequestQuery as BoostGetBoostFrameworksRequestQuery +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of import BoostGetBoostFrameworksRequestQueryAnyOf as BoostGetBoostFrameworksRequestQueryAnyOf +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner as BoostGetBoostFrameworksRequestQueryAnyOfOrInner +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest as BoostGetBoostParentsRequest from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner as BoostGetBoostRecipients200ResponseInner from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo as BoostGetBoostRecipients200ResponseInnerTo from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay as BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest as BoostGetBoostRecipientsWithChildrenCountRequest +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations as BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from openapi_client.models.boost_get_boost_siblings_request import BoostGetBoostSiblingsRequest as BoostGetBoostSiblingsRequest from openapi_client.models.boost_get_boosts200_response_inner import BoostGetBoosts200ResponseInner as BoostGetBoosts200ResponseInner from openapi_client.models.boost_get_boosts_request import BoostGetBoostsRequest as BoostGetBoostsRequest from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery as BoostGetBoostsRequestQuery -from openapi_client.models.boost_get_boosts_request_query_status import BoostGetBoostsRequestQueryStatus as BoostGetBoostsRequestQueryStatus -from openapi_client.models.boost_get_boosts_request_query_status_any_of import BoostGetBoostsRequestQueryStatusAnyOf as BoostGetBoostsRequestQueryStatusAnyOf -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri as BoostGetBoostsRequestQueryUri -from openapi_client.models.boost_get_boosts_request_query_uri_any_of import BoostGetBoostsRequestQueryUriAnyOf as BoostGetBoostsRequestQueryUriAnyOf -from openapi_client.models.boost_get_boosts_request_query_uri_any_of1 import BoostGetBoostsRequestQueryUriAnyOf1 as BoostGetBoostsRequestQueryUriAnyOf1 -from openapi_client.models.boost_get_boosts_request_query_uri_any_of_any_of import BoostGetBoostsRequestQueryUriAnyOfAnyOf as BoostGetBoostsRequestQueryUriAnyOfAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of import BoostGetBoostsRequestQueryAnyOf as BoostGetBoostsRequestQueryAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner as BoostGetBoostsRequestQueryAnyOfOrInner +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status import BoostGetBoostsRequestQueryAnyOfOrInnerStatus as BoostGetBoostsRequestQueryAnyOfOrInnerStatus +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status_any_of import BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf as BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from openapi_client.models.boost_get_children_profile_managers200_response import BoostGetChildrenProfileManagers200Response as BoostGetChildrenProfileManagers200Response from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner as BoostGetChildrenProfileManagers200ResponseRecordsInner from openapi_client.models.boost_get_children_profile_managers_request import BoostGetChildrenProfileManagersRequest as BoostGetChildrenProfileManagersRequest @@ -372,12 +682,47 @@ from openapi_client.models.boost_get_connected_boost_recipients_request import BoostGetConnectedBoostRecipientsRequest as BoostGetConnectedBoostRecipientsRequest from openapi_client.models.boost_get_familial_boosts_request import BoostGetFamilialBoostsRequest as BoostGetFamilialBoostsRequest from openapi_client.models.boost_get_paginated_boost_recipients200_response import BoostGetPaginatedBoostRecipients200Response as BoostGetPaginatedBoostRecipients200Response +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner import BoostGetPaginatedBoostRecipients200ResponseRecordsInner as BoostGetPaginatedBoostRecipients200ResponseRecordsInner +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo as BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay as BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from openapi_client.models.boost_get_paginated_boost_recipients_request import BoostGetPaginatedBoostRecipientsRequest as BoostGetPaginatedBoostRecipientsRequest from openapi_client.models.boost_get_paginated_boost_recipients_request_query import BoostGetPaginatedBoostRecipientsRequestQuery as BoostGetPaginatedBoostRecipientsRequestQuery +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response as BoostGetPaginatedBoostRecipientsWithChildren200Response +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response_records_inner import BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner as BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest as BoostGetPaginatedBoostRecipientsWithChildrenRequest +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request_number_of_generations import BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations as BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response as BoostGetPaginatedBoosts200Response from openapi_client.models.boost_get_paginated_boosts200_response_records_inner import BoostGetPaginatedBoosts200ResponseRecordsInner as BoostGetPaginatedBoosts200ResponseRecordsInner from openapi_client.models.boost_get_paginated_boosts_request import BoostGetPaginatedBoostsRequest as BoostGetPaginatedBoostsRequest +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner as BoostGetSkillsAvailableForBoost200ResponseInner +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_framework import BoostGetSkillsAvailableForBoost200ResponseInnerFramework as BoostGetSkillsAvailableForBoost200ResponseInnerFramework +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_skills_inner import BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner as BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from openapi_client.models.boost_make_boost_parent_request import BoostMakeBoostParentRequest as BoostMakeBoostParentRequest +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest as BoostRemoveBoostAdminRequest +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest as BoostRemoveBoostParentRequest +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response as BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.boost_search_skills_available_for_boost200_response_records_inner import BoostSearchSkillsAvailableForBoost200ResponseRecordsInner as BoostSearchSkillsAvailableForBoost200ResponseRecordsInner +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest as BoostSearchSkillsAvailableForBoostRequest +from openapi_client.models.boost_search_skills_available_for_boost_request_query import BoostSearchSkillsAvailableForBoostRequestQuery as BoostSearchSkillsAvailableForBoostRequestQuery +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 as BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf as BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf +from openapi_client.models.boost_send200_response import BoostSend200Response as BoostSend200Response from openapi_client.models.boost_send_boost_request import BoostSendBoostRequest as BoostSendBoostRequest from openapi_client.models.boost_send_boost_request_credential import BoostSendBoostRequestCredential as BoostSendBoostRequestCredential from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf as BoostSendBoostRequestCredentialAnyOf @@ -388,12 +733,14 @@ from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner as BoostSendBoostRequestCredentialAnyOfContextInner from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema import BoostSendBoostRequestCredentialAnyOfCredentialSchema as BoostSendBoostRequestCredentialAnyOfCredentialSchema from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf as BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner as BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus as BoostSendBoostRequestCredentialAnyOfCredentialStatus -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status_any_of import BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf as BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject import BoostSendBoostRequestCredentialAnyOfCredentialSubject as BoostSendBoostRequestCredentialAnyOfCredentialSubject from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf as BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner as BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_evidence import BoostSendBoostRequestCredentialAnyOfEvidence as BoostSendBoostRequestCredentialAnyOfEvidence from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf as BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner as BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_issuer import BoostSendBoostRequestCredentialAnyOfIssuer as BoostSendBoostRequestCredentialAnyOfIssuer from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of import BoostSendBoostRequestCredentialAnyOfIssuerAnyOf as BoostSendBoostRequestCredentialAnyOfIssuerAnyOf from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress as BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress @@ -406,44 +753,91 @@ from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType as BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType from openapi_client.models.boost_send_boost_request_credential_any_of_proof import BoostSendBoostRequestCredentialAnyOfProof as BoostSendBoostRequestCredentialAnyOfProof from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of import BoostSendBoostRequestCredentialAnyOfProofAnyOf as BoostSendBoostRequestCredentialAnyOfProofAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner as BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service import BoostSendBoostRequestCredentialAnyOfRefreshService as BoostSendBoostRequestCredentialAnyOfRefreshService from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf as BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner as BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse as BoostSendBoostRequestCredentialAnyOfTermsOfUse -from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use_any_of import BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf as BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from openapi_client.models.boost_send_boost_request_options import BoostSendBoostRequestOptions as BoostSendBoostRequestOptions from openapi_client.models.boost_send_boost_via_signing_authority_request import BoostSendBoostViaSigningAuthorityRequest as BoostSendBoostViaSigningAuthorityRequest from openapi_client.models.boost_send_boost_via_signing_authority_request_signing_authority import BoostSendBoostViaSigningAuthorityRequestSigningAuthority as BoostSendBoostViaSigningAuthorityRequestSigningAuthority +from openapi_client.models.boost_send_request import BoostSendRequest as BoostSendRequest +from openapi_client.models.boost_send_request_template import BoostSendRequestTemplate as BoostSendRequestTemplate +from openapi_client.models.boost_send_request_template_claim_permissions import BoostSendRequestTemplateClaimPermissions as BoostSendRequestTemplateClaimPermissions +from openapi_client.models.boost_send_request_template_credential import BoostSendRequestTemplateCredential as BoostSendRequestTemplateCredential +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf as BoostSendRequestTemplateCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of1 import BoostSendRequestTemplateCredentialAnyOf1 as BoostSendRequestTemplateCredentialAnyOf1 +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner as BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject as BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence as BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer as BoostSendRequestTemplateCredentialAnyOfIssuer +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType as BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof as BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.boost_send_request_template_default_permissions import BoostSendRequestTemplateDefaultPermissions as BoostSendRequestTemplateDefaultPermissions +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner as BoostSendRequestTemplateSkillsInner from openapi_client.models.boost_update_boost_permissions_request import BoostUpdateBoostPermissionsRequest as BoostUpdateBoostPermissionsRequest from openapi_client.models.boost_update_boost_permissions_request_updates import BoostUpdateBoostPermissionsRequestUpdates as BoostUpdateBoostPermissionsRequestUpdates from openapi_client.models.boost_update_boost_request import BoostUpdateBoostRequest as BoostUpdateBoostRequest from openapi_client.models.boost_update_boost_request_updates import BoostUpdateBoostRequestUpdates as BoostUpdateBoostRequestUpdates +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest as BoostUpdateOtherBoostPermissionsRequest +from openapi_client.models.boost_update_other_boost_permissions_request_updates import BoostUpdateOtherBoostPermissionsRequestUpdates as BoostUpdateOtherBoostPermissionsRequestUpdates from openapi_client.models.claim_hook_create_claim_hook_request import ClaimHookCreateClaimHookRequest as ClaimHookCreateClaimHookRequest from openapi_client.models.claim_hook_create_claim_hook_request_hook import ClaimHookCreateClaimHookRequestHook as ClaimHookCreateClaimHookRequestHook from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of import ClaimHookCreateClaimHookRequestHookOneOf as ClaimHookCreateClaimHookRequestHookOneOf from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1 import ClaimHookCreateClaimHookRequestHookOneOf1 as ClaimHookCreateClaimHookRequestHookOneOf1 from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1_data import ClaimHookCreateClaimHookRequestHookOneOf1Data as ClaimHookCreateClaimHookRequestHookOneOf1Data +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2 import ClaimHookCreateClaimHookRequestHookOneOf2 as ClaimHookCreateClaimHookRequestHookOneOf2 +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2_data import ClaimHookCreateClaimHookRequestHookOneOf2Data as ClaimHookCreateClaimHookRequestHookOneOf2Data from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_data import ClaimHookCreateClaimHookRequestHookOneOfData as ClaimHookCreateClaimHookRequestHookOneOfData from openapi_client.models.claim_hook_delete_claim_hook_request import ClaimHookDeleteClaimHookRequest as ClaimHookDeleteClaimHookRequest from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response import ClaimHookGetClaimHooksForBoost200Response as ClaimHookGetClaimHooksForBoost200Response from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner import ClaimHookGetClaimHooksForBoost200ResponseRecordsInner as ClaimHookGetClaimHooksForBoost200ResponseRecordsInner +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions as ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request import ClaimHookGetClaimHooksForBoostRequest as ClaimHookGetClaimHooksForBoostRequest from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query import ClaimHookGetClaimHooksForBoostRequestQuery as ClaimHookGetClaimHooksForBoostRequestQuery from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data import ClaimHookGetClaimHooksForBoostRequestQueryData as ClaimHookGetClaimHooksForBoostRequestQueryData from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data_permissions import ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions as ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions from openapi_client.models.contact_methods_add_contact_method200_response import ContactMethodsAddContactMethod200Response as ContactMethodsAddContactMethod200Response from openapi_client.models.contact_methods_add_contact_method_request import ContactMethodsAddContactMethodRequest as ContactMethodsAddContactMethodRequest +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response as ContactMethodsCreateContactMethodSession200Response +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest as ContactMethodsCreateContactMethodSessionRequest +from openapi_client.models.contact_methods_create_contact_method_session_request_contact_method import ContactMethodsCreateContactMethodSessionRequestContactMethod as ContactMethodsCreateContactMethodSessionRequestContactMethod from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner import ContactMethodsGetMyContactMethods200ResponseInner as ContactMethodsGetMyContactMethods200ResponseInner from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner_one_of import ContactMethodsGetMyContactMethods200ResponseInnerOneOf as ContactMethodsGetMyContactMethods200ResponseInnerOneOf from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner_one_of1 import ContactMethodsGetMyContactMethods200ResponseInnerOneOf1 as ContactMethodsGetMyContactMethods200ResponseInnerOneOf1 -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response as ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest as ContactMethodsRemoveContactMethodRequest +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response as ContactMethodsSendChallenge200Response +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest as ContactMethodsSendChallengeRequest +from openapi_client.models.contact_methods_send_challenge_request_configuration import ContactMethodsSendChallengeRequestConfiguration as ContactMethodsSendChallengeRequestConfiguration from openapi_client.models.contact_methods_set_primary_contact_method_request import ContactMethodsSetPrimaryContactMethodRequest as ContactMethodsSetPrimaryContactMethodRequest -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response as ContactMethodsVerifyContactMethod200Response from openapi_client.models.contact_methods_verify_contact_method_request import ContactMethodsVerifyContactMethodRequest as ContactMethodsVerifyContactMethodRequest +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response as ContactMethodsVerifyWithCredential200Response +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method import ContactMethodsVerifyWithCredential200ResponseContactMethod as ContactMethodsVerifyWithCredential200ResponseContactMethod +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf as ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of1 import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 as ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest as ContactMethodsVerifyWithCredentialRequest from openapi_client.models.contracts_add_auto_boosts_to_contract_request import ContractsAddAutoBoostsToContractRequest as ContractsAddAutoBoostsToContractRequest +from openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner import ContractsAddAutoBoostsToContractRequestAutoboostsInner as ContractsAddAutoBoostsToContractRequestAutoboostsInner +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest as ContractsCancelContractRequestRequest +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response as ContractsConsentToContract200Response from openapi_client.models.contracts_consent_to_contract_request import ContractsConsentToContractRequest as ContractsConsentToContractRequest from openapi_client.models.contracts_consent_to_contract_request_terms import ContractsConsentToContractRequestTerms as ContractsConsentToContractRequestTerms from openapi_client.models.contracts_consent_to_contract_request_terms_read import ContractsConsentToContractRequestTermsRead as ContractsConsentToContractRequestTermsRead from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials import ContractsConsentToContractRequestTermsReadCredentials as ContractsConsentToContractRequestTermsReadCredentials +from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value import ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue as ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from openapi_client.models.contracts_consent_to_contract_request_terms_write import ContractsConsentToContractRequestTermsWrite as ContractsConsentToContractRequestTermsWrite from openapi_client.models.contracts_consent_to_contract_request_terms_write_credentials import ContractsConsentToContractRequestTermsWriteCredentials as ContractsConsentToContractRequestTermsWriteCredentials from openapi_client.models.contracts_create_consent_flow_contract_request import ContractsCreateConsentFlowContractRequest as ContractsCreateConsentFlowContractRequest @@ -452,9 +846,15 @@ from openapi_client.models.contracts_create_consent_flow_contract_request_contract import ContractsCreateConsentFlowContractRequestContract as ContractsCreateConsentFlowContractRequestContract from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read import ContractsCreateConsentFlowContractRequestContractRead as ContractsCreateConsentFlowContractRequestContractRead from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials import ContractsCreateConsentFlowContractRequestContractReadCredentials as ContractsCreateConsentFlowContractRequestContractReadCredentials +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue as ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from openapi_client.models.contracts_create_consent_flow_contract_request_contract_write import ContractsCreateConsentFlowContractRequestContractWrite as ContractsCreateConsentFlowContractRequestContractWrite +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest as ContractsForwardContractRequestToProfileRequest +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner as ContractsGetAllContractRequestsForProfile200ResponseInner +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner_contract import ContractsGetAllContractRequestsForProfile200ResponseInnerContract as ContractsGetAllContractRequestsForProfile200ResponseInnerContract from openapi_client.models.contracts_get_all_credentials_for_terms_request import ContractsGetAllCredentialsForTermsRequest as ContractsGetAllCredentialsForTermsRequest from openapi_client.models.contracts_get_consent_flow_contract200_response import ContractsGetConsentFlowContract200Response as ContractsGetConsentFlowContract200Response +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract as ContractsGetConsentFlowContract200ResponseContract +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead as ContractsGetConsentFlowContract200ResponseContractRead from openapi_client.models.contracts_get_consent_flow_contracts200_response import ContractsGetConsentFlowContracts200Response as ContractsGetConsentFlowContracts200Response from openapi_client.models.contracts_get_consent_flow_contracts200_response_records_inner import ContractsGetConsentFlowContracts200ResponseRecordsInner as ContractsGetConsentFlowContracts200ResponseRecordsInner from openapi_client.models.contracts_get_consent_flow_contracts_request import ContractsGetConsentFlowContractsRequest as ContractsGetConsentFlowContractsRequest @@ -465,11 +865,18 @@ from openapi_client.models.contracts_get_consent_flow_contracts_request_query_write import ContractsGetConsentFlowContractsRequestQueryWrite as ContractsGetConsentFlowContractsRequestQueryWrite from openapi_client.models.contracts_get_consented_contracts200_response import ContractsGetConsentedContracts200Response as ContractsGetConsentedContracts200Response from openapi_client.models.contracts_get_consented_contracts200_response_records_inner import ContractsGetConsentedContracts200ResponseRecordsInner as ContractsGetConsentedContracts200ResponseRecordsInner +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms import ContractsGetConsentedContracts200ResponseRecordsInnerTerms as ContractsGetConsentedContracts200ResponseRecordsInnerTerms +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead as ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials as ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue as ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from openapi_client.models.contracts_get_consented_contracts_request import ContractsGetConsentedContractsRequest as ContractsGetConsentedContractsRequest from openapi_client.models.contracts_get_consented_contracts_request_query import ContractsGetConsentedContractsRequestQuery as ContractsGetConsentedContractsRequestQuery from openapi_client.models.contracts_get_consented_contracts_request_query_read import ContractsGetConsentedContractsRequestQueryRead as ContractsGetConsentedContractsRequestQueryRead from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials import ContractsGetConsentedContractsRequestQueryReadCredentials as ContractsGetConsentedContractsRequestQueryReadCredentials +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue as ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from openapi_client.models.contracts_get_consented_contracts_request_query_write import ContractsGetConsentedContractsRequestQueryWrite as ContractsGetConsentedContractsRequestQueryWrite +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response as ContractsGetConsentedData200Response +from openapi_client.models.contracts_get_consented_data200_response_records_inner import ContractsGetConsentedData200ResponseRecordsInner as ContractsGetConsentedData200ResponseRecordsInner from openapi_client.models.contracts_get_consented_data_for_contract200_response import ContractsGetConsentedDataForContract200Response as ContractsGetConsentedDataForContract200Response from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner import ContractsGetConsentedDataForContract200ResponseRecordsInner as ContractsGetConsentedDataForContract200ResponseRecordsInner from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner_credentials import ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials as ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials @@ -482,11 +889,16 @@ from openapi_client.models.contracts_get_consented_data_for_did_request import ContractsGetConsentedDataForDidRequest as ContractsGetConsentedDataForDidRequest from openapi_client.models.contracts_get_consented_data_for_did_request_query import ContractsGetConsentedDataForDidRequestQuery as ContractsGetConsentedDataForDidRequestQuery from openapi_client.models.contracts_get_consented_data_request import ContractsGetConsentedDataRequest as ContractsGetConsentedDataRequest +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner as ContractsGetContractSentRequests200ResponseInner from openapi_client.models.contracts_get_credentials_for_contract200_response import ContractsGetCredentialsForContract200Response as ContractsGetCredentialsForContract200Response from openapi_client.models.contracts_get_credentials_for_contract200_response_records_inner import ContractsGetCredentialsForContract200ResponseRecordsInner as ContractsGetCredentialsForContract200ResponseRecordsInner from openapi_client.models.contracts_get_credentials_for_contract_request import ContractsGetCredentialsForContractRequest as ContractsGetCredentialsForContractRequest +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response as ContractsGetRequestStatusForProfile200Response from openapi_client.models.contracts_get_terms_transaction_history200_response import ContractsGetTermsTransactionHistory200Response as ContractsGetTermsTransactionHistory200Response from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner import ContractsGetTermsTransactionHistory200ResponseRecordsInner as ContractsGetTermsTransactionHistory200ResponseRecordsInner +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms as ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite as ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials as ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from openapi_client.models.contracts_get_terms_transaction_history_request import ContractsGetTermsTransactionHistoryRequest as ContractsGetTermsTransactionHistoryRequest from openapi_client.models.contracts_get_terms_transaction_history_request_query import ContractsGetTermsTransactionHistoryRequestQuery as ContractsGetTermsTransactionHistoryRequestQuery from openapi_client.models.contracts_get_terms_transaction_history_request_query_action import ContractsGetTermsTransactionHistoryRequestQueryAction as ContractsGetTermsTransactionHistoryRequestQueryAction @@ -495,36 +907,79 @@ from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1 as ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1 from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf as ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1 as ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1 +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at import ContractsGetTermsTransactionHistoryRequestQueryExpiresAt as ContractsGetTermsTransactionHistoryRequestQueryExpiresAt +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf as ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 as ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf as ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 as ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms import ContractsGetTermsTransactionHistoryRequestQueryTerms as ContractsGetTermsTransactionHistoryRequestQueryTerms +from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read import ContractsGetTermsTransactionHistoryRequestQueryTermsRead as ContractsGetTermsTransactionHistoryRequestQueryTermsRead +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest as ContractsMarkContractRequestAsSeenRequest from openapi_client.models.contracts_remove_auto_boosts_from_contract_request import ContractsRemoveAutoBoostsFromContractRequest as ContractsRemoveAutoBoostsFromContractRequest +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest as ContractsSendAiInsightShareRequestRequest +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest as ContractsSendAiInsightsContractRequestRequest from openapi_client.models.contracts_sync_credentials_to_contract_request import ContractsSyncCredentialsToContractRequest as ContractsSyncCredentialsToContractRequest from openapi_client.models.contracts_update_consented_contract_terms_request import ContractsUpdateConsentedContractTermsRequest as ContractsUpdateConsentedContractTermsRequest +from openapi_client.models.contracts_update_consented_contract_terms_request_terms import ContractsUpdateConsentedContractTermsRequestTerms as ContractsUpdateConsentedContractTermsRequestTerms +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read import ContractsUpdateConsentedContractTermsRequestTermsRead as ContractsUpdateConsentedContractTermsRequestTermsRead +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials import ContractsUpdateConsentedContractTermsRequestTermsReadCredentials as ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from openapi_client.models.contracts_write_credential_to_contract_request import ContractsWriteCredentialToContractRequest as ContractsWriteCredentialToContractRequest +from openapi_client.models.contracts_write_credential_to_contract_request_credential import ContractsWriteCredentialToContractRequestCredential as ContractsWriteCredentialToContractRequestCredential from openapi_client.models.contracts_write_credential_to_contract_via_signing_authority_request import ContractsWriteCredentialToContractViaSigningAuthorityRequest as ContractsWriteCredentialToContractViaSigningAuthorityRequest from openapi_client.models.credential_accept_credential_request import CredentialAcceptCredentialRequest as CredentialAcceptCredentialRequest +from openapi_client.models.credential_accept_credential_request_options import CredentialAcceptCredentialRequestOptions as CredentialAcceptCredentialRequestOptions from openapi_client.models.credential_received_credentials200_response_inner import CredentialReceivedCredentials200ResponseInner as CredentialReceivedCredentials200ResponseInner from openapi_client.models.credential_send_credential_request import CredentialSendCredentialRequest as CredentialSendCredentialRequest from openapi_client.models.credential_send_credential_request_credential import CredentialSendCredentialRequestCredential as CredentialSendCredentialRequestCredential from openapi_client.models.credential_send_credential_request_credential_any_of import CredentialSendCredentialRequestCredentialAnyOf as CredentialSendCredentialRequestCredentialAnyOf +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 as CredentialSendCredentialRequestCredentialAnyOf1 +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner as CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader as CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header_epk import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk as CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from openapi_client.models.did_metadata_add_did_metadata_request import DidMetadataAddDidMetadataRequest as DidMetadataAddDidMetadataRequest +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner as DidMetadataAddDidMetadataRequestAuthenticationInner +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf as DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk as DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from openapi_client.models.did_metadata_add_did_metadata_request_service_inner import DidMetadataAddDidMetadataRequestServiceInner as DidMetadataAddDidMetadataRequestServiceInner -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner_service_endpoint import DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint as DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner import DidMetadataAddDidMetadataRequestVerificationMethodInner as DidMetadataAddDidMetadataRequestVerificationMethodInner from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner_any_of import DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf as DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk as DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response as DidMetadataGetDidMetadata200Response +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner as DidMetadataGetDidMetadata200ResponseAuthenticationInner +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf as DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk as DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner as DidMetadataGetDidMetadata200ResponseServiceInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner import DidMetadataGetDidMetadata200ResponseVerificationMethodInner as DidMetadataGetDidMetadata200ResponseVerificationMethodInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf as DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk as DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from openapi_client.models.did_metadata_get_my_did_metadata200_response_inner import DidMetadataGetMyDidMetadata200ResponseInner as DidMetadataGetMyDidMetadata200ResponseInner from openapi_client.models.did_metadata_update_did_metadata_request import DidMetadataUpdateDidMetadataRequest as DidMetadataUpdateDidMetadataRequest +from openapi_client.models.did_metadata_update_did_metadata_request_updates import DidMetadataUpdateDidMetadataRequestUpdates as DidMetadataUpdateDidMetadataRequestUpdates from openapi_client.models.error_badrequest import ErrorBADREQUEST as ErrorBADREQUEST +from openapi_client.models.error_badrequest_issues_inner import ErrorBADREQUESTIssuesInner as ErrorBADREQUESTIssuesInner from openapi_client.models.error_forbidden import ErrorFORBIDDEN as ErrorFORBIDDEN from openapi_client.models.error_internalservererror import ErrorINTERNALSERVERERROR as ErrorINTERNALSERVERERROR from openapi_client.models.error_notfound import ErrorNOTFOUND as ErrorNOTFOUND from openapi_client.models.error_unauthorized import ErrorUNAUTHORIZED as ErrorUNAUTHORIZED +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest as InboxApproveGuardianRequestRequest +from openapi_client.models.inbox_claim200_response import InboxClaim200Response as InboxClaim200Response +from openapi_client.models.inbox_claim200_response_inbox_credential import InboxClaim200ResponseInboxCredential as InboxClaim200ResponseInboxCredential +from openapi_client.models.inbox_claim200_response_inbox_credential_signing_authority import InboxClaim200ResponseInboxCredentialSigningAuthority as InboxClaim200ResponseInboxCredentialSigningAuthority +from openapi_client.models.inbox_claim_request import InboxClaimRequest as InboxClaimRequest +from openapi_client.models.inbox_claim_request_configuration import InboxClaimRequestConfiguration as InboxClaimRequestConfiguration +from openapi_client.models.inbox_claim_request_credential import InboxClaimRequestCredential as InboxClaimRequestCredential +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response as InboxFinalize200Response from openapi_client.models.inbox_get_my_issued_credentials200_response import InboxGetMyIssuedCredentials200Response as InboxGetMyIssuedCredentials200Response from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner import InboxGetMyIssuedCredentials200ResponseRecordsInner as InboxGetMyIssuedCredentials200ResponseRecordsInner +from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner_signing_authority import InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority as InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from openapi_client.models.inbox_get_my_issued_credentials_request import InboxGetMyIssuedCredentialsRequest as InboxGetMyIssuedCredentialsRequest from openapi_client.models.inbox_get_my_issued_credentials_request_query import InboxGetMyIssuedCredentialsRequestQuery as InboxGetMyIssuedCredentialsRequestQuery +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient import InboxGetMyIssuedCredentialsRequestRecipient as InboxGetMyIssuedCredentialsRequestRecipient +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient_one_of import InboxGetMyIssuedCredentialsRequestRecipientOneOf as InboxGetMyIssuedCredentialsRequestRecipientOneOf from openapi_client.models.inbox_issue200_response import InboxIssue200Response as InboxIssue200Response from openapi_client.models.inbox_issue200_response_recipient import InboxIssue200ResponseRecipient as InboxIssue200ResponseRecipient +from openapi_client.models.inbox_issue200_response_recipient_one_of import InboxIssue200ResponseRecipientOneOf as InboxIssue200ResponseRecipientOneOf +from openapi_client.models.inbox_issue200_response_recipient_one_of1 import InboxIssue200ResponseRecipientOneOf1 as InboxIssue200ResponseRecipientOneOf1 from openapi_client.models.inbox_issue_request import InboxIssueRequest as InboxIssueRequest from openapi_client.models.inbox_issue_request_configuration import InboxIssueRequestConfiguration as InboxIssueRequestConfiguration from openapi_client.models.inbox_issue_request_configuration_delivery import InboxIssueRequestConfigurationDelivery as InboxIssueRequestConfigurationDelivery @@ -539,27 +994,85 @@ from openapi_client.models.inbox_issue_request_recipient import InboxIssueRequestRecipient as InboxIssueRequestRecipient from openapi_client.models.inbox_issue_request_recipient_one_of import InboxIssueRequestRecipientOneOf as InboxIssueRequestRecipientOneOf from openapi_client.models.inbox_issue_request_recipient_one_of1 import InboxIssueRequestRecipientOneOf1 as InboxIssueRequestRecipientOneOf1 +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response as InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest as InboxSendGuardianApprovalEmailRequest +from openapi_client.models.inbox_send_guardian_approval_email_request_template import InboxSendGuardianApprovalEmailRequestTemplate as InboxSendGuardianApprovalEmailRequestTemplate +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest as IntegrationsAddIntegrationRequest +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner as IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest as IntegrationsAssociateIntegrationWithSigningAuthorityRequest +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest as IntegrationsCountIntegrationsRequest +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response as IntegrationsGetIntegration200Response +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response as IntegrationsGetIntegrations200Response +from openapi_client.models.integrations_get_integrations200_response_records_inner import IntegrationsGetIntegrations200ResponseRecordsInner as IntegrationsGetIntegrations200ResponseRecordsInner +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest as IntegrationsGetIntegrationsRequest +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery as IntegrationsGetIntegrationsRequestQuery +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest as IntegrationsUpdateIntegrationRequest +from openapi_client.models.integrations_update_integration_request_updates import IntegrationsUpdateIntegrationRequestUpdates as IntegrationsUpdateIntegrationRequestUpdates from openapi_client.models.presentation_accept_presentation_request import PresentationAcceptPresentationRequest as PresentationAcceptPresentationRequest from openapi_client.models.presentation_send_presentation_request import PresentationSendPresentationRequest as PresentationSendPresentationRequest from openapi_client.models.presentation_send_presentation_request_presentation import PresentationSendPresentationRequestPresentation as PresentationSendPresentationRequestPresentation from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf as PresentationSendPresentationRequestPresentationAnyOf from openapi_client.models.presentation_send_presentation_request_presentation_any_of_verifiable_credential import PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential as PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential from openapi_client.models.profile_create_profile_request import ProfileCreateProfileRequest as ProfileCreateProfileRequest +from openapi_client.models.profile_create_profile_request_display import ProfileCreateProfileRequestDisplay as ProfileCreateProfileRequestDisplay +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest as ProfileCreateServiceProfileRequest +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay as ProfileCreateServiceProfileRequestDisplay from openapi_client.models.profile_generate_invite200_response import ProfileGenerateInvite200Response as ProfileGenerateInvite200Response from openapi_client.models.profile_generate_invite_request import ProfileGenerateInviteRequest as ProfileGenerateInviteRequest from openapi_client.models.profile_get_available_profiles200_response import ProfileGetAvailableProfiles200Response as ProfileGetAvailableProfiles200Response from openapi_client.models.profile_get_available_profiles200_response_records_inner import ProfileGetAvailableProfiles200ResponseRecordsInner as ProfileGetAvailableProfiles200ResponseRecordsInner +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager as ProfileGetAvailableProfiles200ResponseRecordsInnerManager from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest as ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner as ProfileListInvites200ResponseInner from openapi_client.models.profile_manager_create_child_profile_manager_request import ProfileManagerCreateChildProfileManagerRequest as ProfileManagerCreateChildProfileManagerRequest +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile as ProfileManagerCreateChildProfileManagerRequestProfile from openapi_client.models.profile_manager_create_managed_profile_request import ProfileManagerCreateManagedProfileRequest as ProfileManagerCreateManagedProfileRequest from openapi_client.models.profile_manager_create_profile_manager_request import ProfileManagerCreateProfileManagerRequest as ProfileManagerCreateProfileManagerRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest as ProfileManagerGetManagedProfilesRequest from openapi_client.models.profile_register_signing_authority_request import ProfileRegisterSigningAuthorityRequest as ProfileRegisterSigningAuthorityRequest from openapi_client.models.profile_search_profiles200_response_inner import ProfileSearchProfiles200ResponseInner as ProfileSearchProfiles200ResponseInner from openapi_client.models.profile_set_primary_signing_authority_request import ProfileSetPrimarySigningAuthorityRequest as ProfileSetPrimarySigningAuthorityRequest from openapi_client.models.profile_signing_authorities200_response_inner import ProfileSigningAuthorities200ResponseInner as ProfileSigningAuthorities200ResponseInner from openapi_client.models.profile_signing_authorities200_response_inner_relationship import ProfileSigningAuthorities200ResponseInnerRelationship as ProfileSigningAuthorities200ResponseInnerRelationship from openapi_client.models.profile_signing_authorities200_response_inner_signing_authority import ProfileSigningAuthorities200ResponseInnerSigningAuthority as ProfileSigningAuthorities200ResponseInnerSigningAuthority +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response as ProfileSigningAuthority200Response +from openapi_client.models.profile_signing_authority200_response_relationship import ProfileSigningAuthority200ResponseRelationship as ProfileSigningAuthority200ResponseRelationship +from openapi_client.models.profile_signing_authority200_response_signing_authority import ProfileSigningAuthority200ResponseSigningAuthority as ProfileSigningAuthority200ResponseSigningAuthority from openapi_client.models.profile_update_profile_request import ProfileUpdateProfileRequest as ProfileUpdateProfileRequest +from openapi_client.models.schema0 import Schema0 as Schema0 +from openapi_client.models.schema1 import Schema1 as Schema1 +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response as SkillFrameworksAddFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest as SkillFrameworksAddFrameworkAdminRequest +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response as SkillFrameworksCountBoostsThatUseFramework200Response +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest as SkillFrameworksCreateManagedBatchRequest +from openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner import SkillFrameworksCreateManagedBatchRequestFrameworksInner as SkillFrameworksCreateManagedBatchRequestFrameworksInner +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest as SkillFrameworksCreateManagedRequest +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest as SkillFrameworksCreateRequest +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest as SkillFrameworksGetBoostsThatUseFrameworkRequest +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response as SkillFrameworksGetById200Response +from openapi_client.models.skill_frameworks_get_by_id200_response_skills import SkillFrameworksGetById200ResponseSkills as SkillFrameworksGetById200ResponseSkills +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response as SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response as SkillFrameworksReplaceSkills200Response +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest as SkillFrameworksReplaceSkillsRequest +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest as SkillFrameworksUpdateRequest +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner as SkillsAddSkillTag200ResponseInner +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest as SkillsAddSkillTagRequest +from openapi_client.models.skills_add_skill_tag_request_tag import SkillsAddSkillTagRequestTag as SkillsAddSkillTagRequestTag +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response as SkillsCountSkills200Response +from openapi_client.models.skills_create200_response import SkillsCreate200Response as SkillsCreate200Response +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest as SkillsCreateManyRequest +from openapi_client.models.skills_create_request import SkillsCreateRequest as SkillsCreateRequest +from openapi_client.models.skills_delete200_response import SkillsDelete200Response as SkillsDelete200Response +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response as SkillsGetFrameworkSkillTree200Response +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response as SkillsGetFullSkillTree200Response +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response as SkillsGetSkill200Response +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response as SkillsGetSkillPath200Response +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner as SkillsListSkillTags200ResponseInner +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest as SkillsSearchFrameworkSkillsRequest +from openapi_client.models.skills_search_framework_skills_request_query import SkillsSearchFrameworkSkillsRequestQuery as SkillsSearchFrameworkSkillsRequestQuery +from openapi_client.models.skills_search_framework_skills_request_query_any_of import SkillsSearchFrameworkSkillsRequestQueryAnyOf as SkillsSearchFrameworkSkillsRequestQueryAnyOf +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response as SkillsSyncFrameworkSkills200Response +from openapi_client.models.skills_update_request import SkillsUpdateRequest as SkillsUpdateRequest from openapi_client.models.storage_resolve200_response import StorageResolve200Response as StorageResolve200Response from openapi_client.models.storage_resolve200_response_any_of import StorageResolve200ResponseAnyOf as StorageResolve200ResponseAnyOf from openapi_client.models.storage_resolve200_response_any_of1 import StorageResolve200ResponseAnyOf1 as StorageResolve200ResponseAnyOf1 @@ -569,15 +1082,37 @@ from openapi_client.models.storage_resolve200_response_any_of1_write import StorageResolve200ResponseAnyOf1Write as StorageResolve200ResponseAnyOf1Write from openapi_client.models.storage_resolve200_response_any_of1_write_credentials import StorageResolve200ResponseAnyOf1WriteCredentials as StorageResolve200ResponseAnyOf1WriteCredentials from openapi_client.models.storage_resolve200_response_any_of_any_of import StorageResolve200ResponseAnyOfAnyOf as StorageResolve200ResponseAnyOfAnyOf -from openapi_client.models.storage_resolve200_response_any_of_any_of_read import StorageResolve200ResponseAnyOfAnyOfRead as StorageResolve200ResponseAnyOfAnyOfRead -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials as StorageResolve200ResponseAnyOfAnyOfReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue as StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue -from openapi_client.models.storage_resolve200_response_any_of_any_of_write import StorageResolve200ResponseAnyOfAnyOfWrite as StorageResolve200ResponseAnyOfAnyOfWrite +from openapi_client.models.storage_resolve200_response_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOf1 as StorageResolve200ResponseAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read import StorageResolve200ResponseAnyOfAnyOf1Read as StorageResolve200ResponseAnyOfAnyOf1Read +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials import StorageResolve200ResponseAnyOfAnyOf1ReadCredentials as StorageResolve200ResponseAnyOfAnyOf1ReadCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue as StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue as StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write as StorageResolve200ResponseAnyOfAnyOf1Write +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials as StorageResolve200ResponseAnyOfAnyOf1WriteCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOf as StorageResolve200ResponseAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOf1 as StorageResolve200ResponseAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner as StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader as StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk as StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner as StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from openapi_client.models.storage_store_request import StorageStoreRequest as StorageStoreRequest from openapi_client.models.storage_store_request_item import StorageStoreRequestItem as StorageStoreRequestItem from openapi_client.models.storage_store_request_item_any_of import StorageStoreRequestItemAnyOf as StorageStoreRequestItemAnyOf +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf as StorageStoreRequestItemAnyOfAnyOf from openapi_client.models.workflows_participate_in_exchange200_response import WorkflowsParticipateInExchange200Response as WorkflowsParticipateInExchange200Response from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest as WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner as WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInnerCredentialQueryInner as WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInnerCredentialQueryInner from openapi_client.models.workflows_participate_in_exchange_request import WorkflowsParticipateInExchangeRequest as WorkflowsParticipateInExchangeRequest + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/__init__.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/__init__.py index b07dbff028..1f1a227097 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/__init__.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/__init__.py @@ -1,6 +1,8 @@ # flake8: noqa # import apis into api package +from openapi_client.api.app_store_api import AppStoreApi +from openapi_client.api.app_store_admin_api import AppStoreAdminApi from openapi_client.api.auth_grants_api import AuthGrantsApi from openapi_client.api.boosts_api import BoostsApi from openapi_client.api.claim_hooks_api import ClaimHooksApi @@ -8,9 +10,12 @@ from openapi_client.api.contracts_api import ContractsApi from openapi_client.api.credentials_api import CredentialsApi from openapi_client.api.did_metadata_api import DIDMetadataApi +from openapi_client.api.integrations_api import IntegrationsApi from openapi_client.api.presentations_api import PresentationsApi from openapi_client.api.profile_managers_api import ProfileManagersApi from openapi_client.api.profiles_api import ProfilesApi +from openapi_client.api.send_api import SendApi +from openapi_client.api.skills_api import SkillsApi from openapi_client.api.storage_api import StorageApi from openapi_client.api.universal_inbox_api import UniversalInboxApi from openapi_client.api.utilities_api import UtilitiesApi diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_admin_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_admin_api.py new file mode 100644 index 0000000000..3c9fb62154 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_admin_api.py @@ -0,0 +1,1184 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictBool, StrictStr +from typing import Optional +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class AppStoreAdminApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def app_store_admin_get_all_listings( + self, + app_store_admin_get_all_listings_request: Optional[AppStoreAdminGetAllListingsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetListingsForIntegration200Response: + """Get All Listings (Admin) + + Get all App Store Listings regardless of status (admin only) + + :param app_store_admin_get_all_listings_request: + :type app_store_admin_get_all_listings_request: AppStoreAdminGetAllListingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_get_all_listings_serialize( + app_store_admin_get_all_listings_request=app_store_admin_get_all_listings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_admin_get_all_listings_with_http_info( + self, + app_store_admin_get_all_listings_request: Optional[AppStoreAdminGetAllListingsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetListingsForIntegration200Response]: + """Get All Listings (Admin) + + Get all App Store Listings regardless of status (admin only) + + :param app_store_admin_get_all_listings_request: + :type app_store_admin_get_all_listings_request: AppStoreAdminGetAllListingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_get_all_listings_serialize( + app_store_admin_get_all_listings_request=app_store_admin_get_all_listings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_admin_get_all_listings_without_preload_content( + self, + app_store_admin_get_all_listings_request: Optional[AppStoreAdminGetAllListingsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get All Listings (Admin) + + Get all App Store Listings regardless of status (admin only) + + :param app_store_admin_get_all_listings_request: + :type app_store_admin_get_all_listings_request: AppStoreAdminGetAllListingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_get_all_listings_serialize( + app_store_admin_get_all_listings_request=app_store_admin_get_all_listings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_admin_get_all_listings_serialize( + self, + app_store_admin_get_all_listings_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_admin_get_all_listings_request is not None: + _body_params = app_store_admin_get_all_listings_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/admin/listings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_admin_update_listing_status( + self, + listing_id: StrictStr, + app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Update Listing Status (Admin) + + Update the status of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_listing_status_request: (required) + :type app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_listing_status_serialize( + listing_id=listing_id, + app_store_admin_update_listing_status_request=app_store_admin_update_listing_status_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_admin_update_listing_status_with_http_info( + self, + listing_id: StrictStr, + app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Update Listing Status (Admin) + + Update the status of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_listing_status_request: (required) + :type app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_listing_status_serialize( + listing_id=listing_id, + app_store_admin_update_listing_status_request=app_store_admin_update_listing_status_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_admin_update_listing_status_without_preload_content( + self, + listing_id: StrictStr, + app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Listing Status (Admin) + + Update the status of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_listing_status_request: (required) + :type app_store_admin_update_listing_status_request: AppStoreAdminUpdateListingStatusRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_listing_status_serialize( + listing_id=listing_id, + app_store_admin_update_listing_status_request=app_store_admin_update_listing_status_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_admin_update_listing_status_serialize( + self, + listing_id, + app_store_admin_update_listing_status_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_admin_update_listing_status_request is not None: + _body_params = app_store_admin_update_listing_status_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/admin/listing/{listingId}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_admin_update_promotion_level( + self, + listing_id: StrictStr, + app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Update Promotion Level (Admin) + + Update the promotion level of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_promotion_level_request: (required) + :type app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_promotion_level_serialize( + listing_id=listing_id, + app_store_admin_update_promotion_level_request=app_store_admin_update_promotion_level_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_admin_update_promotion_level_with_http_info( + self, + listing_id: StrictStr, + app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Update Promotion Level (Admin) + + Update the promotion level of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_promotion_level_request: (required) + :type app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_promotion_level_serialize( + listing_id=listing_id, + app_store_admin_update_promotion_level_request=app_store_admin_update_promotion_level_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_admin_update_promotion_level_without_preload_content( + self, + listing_id: StrictStr, + app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Promotion Level (Admin) + + Update the promotion level of an App Store Listing (admin only) + + :param listing_id: (required) + :type listing_id: str + :param app_store_admin_update_promotion_level_request: (required) + :type app_store_admin_update_promotion_level_request: AppStoreAdminUpdatePromotionLevelRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_admin_update_promotion_level_serialize( + listing_id=listing_id, + app_store_admin_update_promotion_level_request=app_store_admin_update_promotion_level_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_admin_update_promotion_level_serialize( + self, + listing_id, + app_store_admin_update_promotion_level_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_admin_update_promotion_level_request is not None: + _body_params = app_store_admin_update_promotion_level_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/admin/listing/{listingId}/promotion', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_is_admin( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Check Admin Status + + Check if the current user is an App Store administrator + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_admin_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_is_admin_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Check Admin Status + + Check if the current user is an App Store administrator + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_admin_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_is_admin_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check Admin Status + + Check if the current user is an App Store administrator + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_admin_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_is_admin_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/admin/check', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_api.py new file mode 100644 index 0000000000..cf01eb5f37 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/app_store_api.py @@ -0,0 +1,4214 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Optional, Union +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class AppStoreApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def app_store_browse_listed_apps( + self, + app_store_browse_listed_apps_request: Optional[AppStoreBrowseListedAppsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetListingsForIntegration200Response: + """Browse App Store + + Browse all publicly listed apps in the App Store + + :param app_store_browse_listed_apps_request: + :type app_store_browse_listed_apps_request: AppStoreBrowseListedAppsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_browse_listed_apps_serialize( + app_store_browse_listed_apps_request=app_store_browse_listed_apps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_browse_listed_apps_with_http_info( + self, + app_store_browse_listed_apps_request: Optional[AppStoreBrowseListedAppsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetListingsForIntegration200Response]: + """Browse App Store + + Browse all publicly listed apps in the App Store + + :param app_store_browse_listed_apps_request: + :type app_store_browse_listed_apps_request: AppStoreBrowseListedAppsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_browse_listed_apps_serialize( + app_store_browse_listed_apps_request=app_store_browse_listed_apps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_browse_listed_apps_without_preload_content( + self, + app_store_browse_listed_apps_request: Optional[AppStoreBrowseListedAppsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Browse App Store + + Browse all publicly listed apps in the App Store + + :param app_store_browse_listed_apps_request: + :type app_store_browse_listed_apps_request: AppStoreBrowseListedAppsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_browse_listed_apps_serialize( + app_store_browse_listed_apps_request=app_store_browse_listed_apps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_browse_listed_apps_serialize( + self, + app_store_browse_listed_apps_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_browse_listed_apps_request is not None: + _body_params = app_store_browse_listed_apps_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/browse', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_count_installed_apps( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Count Installed Apps + + Count all apps you have installed + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_installed_apps_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_count_installed_apps_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Count Installed Apps + + Count all apps you have installed + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_installed_apps_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_count_installed_apps_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count Installed Apps + + Count all apps you have installed + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_installed_apps_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_count_installed_apps_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/installed/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_count_listings_for_integration( + self, + integration_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Count Listings for Integration + + Count App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_listings_for_integration_serialize( + integration_id=integration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_count_listings_for_integration_with_http_info( + self, + integration_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Count Listings for Integration + + Count App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_listings_for_integration_serialize( + integration_id=integration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_count_listings_for_integration_without_preload_content( + self, + integration_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count Listings for Integration + + Count App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_count_listings_for_integration_serialize( + integration_id=integration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_count_listings_for_integration_serialize( + self, + integration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if integration_id is not None: + _path_params['integrationId'] = integration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/integration/{integrationId}/listings/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_create_listing( + self, + app_store_create_listing_request: AppStoreCreateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> str: + """Create App Store Listing + + Create a new App Store Listing for your Integration + + :param app_store_create_listing_request: (required) + :type app_store_create_listing_request: AppStoreCreateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_create_listing_serialize( + app_store_create_listing_request=app_store_create_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_create_listing_with_http_info( + self, + app_store_create_listing_request: AppStoreCreateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[str]: + """Create App Store Listing + + Create a new App Store Listing for your Integration + + :param app_store_create_listing_request: (required) + :type app_store_create_listing_request: AppStoreCreateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_create_listing_serialize( + app_store_create_listing_request=app_store_create_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_create_listing_without_preload_content( + self, + app_store_create_listing_request: AppStoreCreateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create App Store Listing + + Create a new App Store Listing for your Integration + + :param app_store_create_listing_request: (required) + :type app_store_create_listing_request: AppStoreCreateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_create_listing_serialize( + app_store_create_listing_request=app_store_create_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_create_listing_serialize( + self, + app_store_create_listing_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_create_listing_request is not None: + _body_params = app_store_create_listing_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/listing/create', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_delete_listing( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Delete App Store Listing + + Delete an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_delete_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_delete_listing_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Delete App Store Listing + + Delete an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_delete_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_delete_listing_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete App Store Listing + + Delete an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_delete_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_delete_listing_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/app-store/listing/{listingId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_get_installed_apps( + self, + app_store_get_listings_for_integration_request: Optional[AppStoreGetListingsForIntegrationRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetInstalledApps200Response: + """Get Installed Apps + + Get all apps you have installed + + :param app_store_get_listings_for_integration_request: + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_installed_apps_serialize( + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetInstalledApps200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_get_installed_apps_with_http_info( + self, + app_store_get_listings_for_integration_request: Optional[AppStoreGetListingsForIntegrationRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetInstalledApps200Response]: + """Get Installed Apps + + Get all apps you have installed + + :param app_store_get_listings_for_integration_request: + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_installed_apps_serialize( + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetInstalledApps200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_get_installed_apps_without_preload_content( + self, + app_store_get_listings_for_integration_request: Optional[AppStoreGetListingsForIntegrationRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Installed Apps + + Get all apps you have installed + + :param app_store_get_listings_for_integration_request: + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_installed_apps_serialize( + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetInstalledApps200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_get_installed_apps_serialize( + self, + app_store_get_listings_for_integration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_get_listings_for_integration_request is not None: + _body_params = app_store_get_listings_for_integration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/installed', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_get_listing( + self, + listing_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetListing200Response: + """Get App Store Listing (Owner) + + Get an App Store Listing by id (for integration owners) + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListing200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_get_listing_with_http_info( + self, + listing_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetListing200Response]: + """Get App Store Listing (Owner) + + Get an App Store Listing by id (for integration owners) + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListing200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_get_listing_without_preload_content( + self, + listing_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get App Store Listing (Owner) + + Get an App Store Listing by id (for integration owners) + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListing200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_get_listing_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/listing/{listingId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_get_listing_install_count( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Get App Install Count + + Get the number of users who have installed an app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_install_count_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_get_listing_install_count_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Get App Install Count + + Get the number of users who have installed an app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_install_count_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_get_listing_install_count_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get App Install Count + + Get the number of users who have installed an app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listing_install_count_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_get_listing_install_count_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/listing/{listingId}/install-count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_get_listings_for_integration( + self, + integration_id: StrictStr, + app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetListingsForIntegration200Response: + """Get Listings for Integration + + Get all App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param app_store_get_listings_for_integration_request: (required) + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listings_for_integration_serialize( + integration_id=integration_id, + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_get_listings_for_integration_with_http_info( + self, + integration_id: StrictStr, + app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetListingsForIntegration200Response]: + """Get Listings for Integration + + Get all App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param app_store_get_listings_for_integration_request: (required) + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listings_for_integration_serialize( + integration_id=integration_id, + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_get_listings_for_integration_without_preload_content( + self, + integration_id: StrictStr, + app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Listings for Integration + + Get all App Store Listings for your Integration + + :param integration_id: (required) + :type integration_id: str + :param app_store_get_listings_for_integration_request: (required) + :type app_store_get_listings_for_integration_request: AppStoreGetListingsForIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_listings_for_integration_serialize( + integration_id=integration_id, + app_store_get_listings_for_integration_request=app_store_get_listings_for_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_get_listings_for_integration_serialize( + self, + integration_id, + app_store_get_listings_for_integration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if integration_id is not None: + _path_params['integrationId'] = integration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_get_listings_for_integration_request is not None: + _body_params = app_store_get_listings_for_integration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/integration/{integrationId}/listings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_get_public_listing( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AppStoreGetListingsForIntegration200ResponseRecordsInner: + """Get Public App Listing + + Get a publicly listed app by id + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_public_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_get_public_listing_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AppStoreGetListingsForIntegration200ResponseRecordsInner]: + """Get Public App Listing + + Get a publicly listed app by id + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_public_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_get_public_listing_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Public App Listing + + Get a publicly listed app by id + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_get_public_listing_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AppStoreGetListingsForIntegration200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_get_public_listing_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/public/listing/{listingId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_install_app( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Install App + + Install an app from the App Store + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_install_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_install_app_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Install App + + Install an app from the App Store + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_install_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_install_app_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Install App + + Install an app from the App Store + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_install_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_install_app_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/listing/{listingId}/install', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_is_app_installed( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Check if App is Installed + + Check if you have installed a specific app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_app_installed_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_is_app_installed_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Check if App is Installed + + Check if you have installed a specific app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_app_installed_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_is_app_installed_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check if App is Installed + + Check if you have installed a specific app + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_is_app_installed_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_is_app_installed_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/app-store/listing/{listingId}/is-installed', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_submit_for_review( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Submit Listing for Review + + Submit a DRAFT listing for admin review + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_submit_for_review_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_submit_for_review_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Submit Listing for Review + + Submit a DRAFT listing for admin review + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_submit_for_review_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_submit_for_review_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Submit Listing for Review + + Submit a DRAFT listing for admin review + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_submit_for_review_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_submit_for_review_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/listing/{listingId}/submit-for-review', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_uninstall_app( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Uninstall App + + Uninstall an app from your profile + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_uninstall_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_uninstall_app_with_http_info( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Uninstall App + + Uninstall an app from your profile + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_uninstall_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_uninstall_app_without_preload_content( + self, + listing_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Uninstall App + + Uninstall an app from your profile + + :param listing_id: (required) + :type listing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_uninstall_app_serialize( + listing_id=listing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_uninstall_app_serialize( + self, + listing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/listing/{listingId}/uninstall', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def app_store_update_listing( + self, + listing_id: StrictStr, + app_store_update_listing_request: AppStoreUpdateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Update App Store Listing + + Update an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param app_store_update_listing_request: (required) + :type app_store_update_listing_request: AppStoreUpdateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_update_listing_serialize( + listing_id=listing_id, + app_store_update_listing_request=app_store_update_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def app_store_update_listing_with_http_info( + self, + listing_id: StrictStr, + app_store_update_listing_request: AppStoreUpdateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Update App Store Listing + + Update an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param app_store_update_listing_request: (required) + :type app_store_update_listing_request: AppStoreUpdateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_update_listing_serialize( + listing_id=listing_id, + app_store_update_listing_request=app_store_update_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def app_store_update_listing_without_preload_content( + self, + listing_id: StrictStr, + app_store_update_listing_request: AppStoreUpdateListingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update App Store Listing + + Update an App Store Listing + + :param listing_id: (required) + :type listing_id: str + :param app_store_update_listing_request: (required) + :type app_store_update_listing_request: AppStoreUpdateListingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._app_store_update_listing_serialize( + listing_id=listing_id, + app_store_update_listing_request=app_store_update_listing_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _app_store_update_listing_serialize( + self, + listing_id, + app_store_update_listing_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if listing_id is not None: + _path_params['listingId'] = listing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if app_store_update_listing_request is not None: + _body_params = app_store_update_listing_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/app-store/listing/{listingId}/update', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/boosts_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/boosts_api.py index cd9885b9ef..0eceb1272a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/boosts_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/boosts_api.py @@ -19,19 +19,29 @@ from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr from typing import List, Optional, Union from openapi_client.models.boost_add_boost_admin_request import BoostAddBoostAdminRequest +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest from openapi_client.models.boost_count_boost_children_request import BoostCountBoostChildrenRequest +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest from openapi_client.models.boost_count_boost_siblings_request import BoostCountBoostSiblingsRequest from openapi_client.models.boost_count_familial_boosts_request import BoostCountFamilialBoostsRequest from openapi_client.models.boost_create_boost_request import BoostCreateBoostRequest from openapi_client.models.boost_create_child_boost_request import BoostCreateChildBoostRequest +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest from openapi_client.models.boost_generate_claim_link200_response import BoostGenerateClaimLink200Response from openapi_client.models.boost_generate_claim_link_request import BoostGenerateClaimLinkRequest from openapi_client.models.boost_get_boost200_response import BoostGetBoost200Response from openapi_client.models.boost_get_boost200_response_claim_permissions import BoostGetBoost200ResponseClaimPermissions from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response from openapi_client.models.boost_get_boost_admins_request import BoostGetBoostAdminsRequest +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner from openapi_client.models.boost_get_boost_children_request import BoostGetBoostChildrenRequest +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest from openapi_client.models.boost_get_boost_siblings_request import BoostGetBoostSiblingsRequest from openapi_client.models.boost_get_boosts200_response_inner import BoostGetBoosts200ResponseInner from openapi_client.models.boost_get_boosts_request import BoostGetBoostsRequest @@ -41,13 +51,21 @@ from openapi_client.models.boost_get_familial_boosts_request import BoostGetFamilialBoostsRequest from openapi_client.models.boost_get_paginated_boost_recipients200_response import BoostGetPaginatedBoostRecipients200Response from openapi_client.models.boost_get_paginated_boost_recipients_request import BoostGetPaginatedBoostRecipientsRequest +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response from openapi_client.models.boost_get_paginated_boosts_request import BoostGetPaginatedBoostsRequest +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner from openapi_client.models.boost_make_boost_parent_request import BoostMakeBoostParentRequest +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest from openapi_client.models.boost_send_boost_request import BoostSendBoostRequest from openapi_client.models.boost_send_boost_via_signing_authority_request import BoostSendBoostViaSigningAuthorityRequest from openapi_client.models.boost_update_boost_permissions_request import BoostUpdateBoostPermissionsRequest from openapi_client.models.boost_update_boost_request import BoostUpdateBoostRequest +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest from openapi_client.api_client import ApiClient, RequestSerialized from openapi_client.api_response import ApiResponse @@ -354,9 +372,9 @@ def _boost_add_boost_admin_serialize( @validate_call - def boost_claim_boost_with_link( + def boost_align_boost_skills( self, - boost_generate_claim_link200_response: BoostGenerateClaimLink200Response, + boost_align_boost_skills_request: BoostAlignBoostSkillsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -369,13 +387,13 @@ def boost_claim_boost_with_link( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Claim a boost using a claim link + ) -> bool: + """Align skills to boost - Claims a boost using a claim link, including a challenge + Ensures ALIGNED_TO relationships from a boost to Skill nodes. Requires boost admin. - :param boost_generate_claim_link200_response: (required) - :type boost_generate_claim_link200_response: BoostGenerateClaimLink200Response + :param boost_align_boost_skills_request: (required) + :type boost_align_boost_skills_request: BoostAlignBoostSkillsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -398,8 +416,8 @@ def boost_claim_boost_with_link( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_claim_boost_with_link_serialize( - boost_generate_claim_link200_response=boost_generate_claim_link200_response, + _param = self._boost_align_boost_skills_serialize( + boost_align_boost_skills_request=boost_align_boost_skills_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -407,7 +425,7 @@ def boost_claim_boost_with_link( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -425,9 +443,9 @@ def boost_claim_boost_with_link( @validate_call - def boost_claim_boost_with_link_with_http_info( + def boost_align_boost_skills_with_http_info( self, - boost_generate_claim_link200_response: BoostGenerateClaimLink200Response, + boost_align_boost_skills_request: BoostAlignBoostSkillsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -440,13 +458,13 @@ def boost_claim_boost_with_link_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Claim a boost using a claim link + ) -> ApiResponse[bool]: + """Align skills to boost - Claims a boost using a claim link, including a challenge + Ensures ALIGNED_TO relationships from a boost to Skill nodes. Requires boost admin. - :param boost_generate_claim_link200_response: (required) - :type boost_generate_claim_link200_response: BoostGenerateClaimLink200Response + :param boost_align_boost_skills_request: (required) + :type boost_align_boost_skills_request: BoostAlignBoostSkillsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -469,8 +487,8 @@ def boost_claim_boost_with_link_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_claim_boost_with_link_serialize( - boost_generate_claim_link200_response=boost_generate_claim_link200_response, + _param = self._boost_align_boost_skills_serialize( + boost_align_boost_skills_request=boost_align_boost_skills_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -478,7 +496,7 @@ def boost_claim_boost_with_link_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -496,9 +514,9 @@ def boost_claim_boost_with_link_with_http_info( @validate_call - def boost_claim_boost_with_link_without_preload_content( + def boost_align_boost_skills_without_preload_content( self, - boost_generate_claim_link200_response: BoostGenerateClaimLink200Response, + boost_align_boost_skills_request: BoostAlignBoostSkillsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -512,12 +530,12 @@ def boost_claim_boost_with_link_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Claim a boost using a claim link + """Align skills to boost - Claims a boost using a claim link, including a challenge + Ensures ALIGNED_TO relationships from a boost to Skill nodes. Requires boost admin. - :param boost_generate_claim_link200_response: (required) - :type boost_generate_claim_link200_response: BoostGenerateClaimLink200Response + :param boost_align_boost_skills_request: (required) + :type boost_align_boost_skills_request: BoostAlignBoostSkillsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -540,8 +558,8 @@ def boost_claim_boost_with_link_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_claim_boost_with_link_serialize( - boost_generate_claim_link200_response=boost_generate_claim_link200_response, + _param = self._boost_align_boost_skills_serialize( + boost_align_boost_skills_request=boost_align_boost_skills_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -549,7 +567,7 @@ def boost_claim_boost_with_link_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -562,9 +580,9 @@ def boost_claim_boost_with_link_without_preload_content( return response_data.response - def _boost_claim_boost_with_link_serialize( + def _boost_align_boost_skills_serialize( self, - boost_generate_claim_link200_response, + boost_align_boost_skills_request, _request_auth, _content_type, _headers, @@ -590,8 +608,8 @@ def _boost_claim_boost_with_link_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_generate_claim_link200_response is not None: - _body_params = boost_generate_claim_link200_response + if boost_align_boost_skills_request is not None: + _body_params = boost_align_boost_skills_request # set the HTTP header `Accept` @@ -623,7 +641,7 @@ def _boost_claim_boost_with_link_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/claim', + resource_path='/boost/align-skills', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -640,9 +658,9 @@ def _boost_claim_boost_with_link_serialize( @validate_call - def boost_count_boost_children( + def boost_attach_framework_to_boost( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -655,13 +673,13 @@ def boost_count_boost_children( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> float: - """Count boost children + ) -> bool: + """Attach framework to boost - This endpoint counts the children of a particular boost + Ensures a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_attach_framework_to_boost_request: (required) + :type boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -684,8 +702,8 @@ def boost_count_boost_children( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_children_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_attach_framework_to_boost_serialize( + boost_attach_framework_to_boost_request=boost_attach_framework_to_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -693,7 +711,7 @@ def boost_count_boost_children( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -711,9 +729,9 @@ def boost_count_boost_children( @validate_call - def boost_count_boost_children_with_http_info( + def boost_attach_framework_to_boost_with_http_info( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -726,13 +744,13 @@ def boost_count_boost_children_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[float]: - """Count boost children + ) -> ApiResponse[bool]: + """Attach framework to boost - This endpoint counts the children of a particular boost + Ensures a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_attach_framework_to_boost_request: (required) + :type boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -755,8 +773,8 @@ def boost_count_boost_children_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_children_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_attach_framework_to_boost_serialize( + boost_attach_framework_to_boost_request=boost_attach_framework_to_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -764,7 +782,7 @@ def boost_count_boost_children_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -782,9 +800,9 @@ def boost_count_boost_children_with_http_info( @validate_call - def boost_count_boost_children_without_preload_content( + def boost_attach_framework_to_boost_without_preload_content( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -798,12 +816,12 @@ def boost_count_boost_children_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Count boost children + """Attach framework to boost - This endpoint counts the children of a particular boost + Ensures a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_attach_framework_to_boost_request: (required) + :type boost_attach_framework_to_boost_request: BoostAttachFrameworkToBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -826,8 +844,8 @@ def boost_count_boost_children_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_children_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_attach_framework_to_boost_serialize( + boost_attach_framework_to_boost_request=boost_attach_framework_to_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -835,7 +853,7 @@ def boost_count_boost_children_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -848,9 +866,9 @@ def boost_count_boost_children_without_preload_content( return response_data.response - def _boost_count_boost_children_serialize( + def _boost_attach_framework_to_boost_serialize( self, - boost_count_boost_children_request, + boost_attach_framework_to_boost_request, _request_auth, _content_type, _headers, @@ -876,8 +894,8 @@ def _boost_count_boost_children_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_count_boost_children_request is not None: - _body_params = boost_count_boost_children_request + if boost_attach_framework_to_boost_request is not None: + _body_params = boost_attach_framework_to_boost_request # set the HTTP header `Accept` @@ -909,7 +927,7 @@ def _boost_count_boost_children_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/children/count', + resource_path='/boost/attach-framework', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -926,9 +944,9 @@ def _boost_count_boost_children_serialize( @validate_call - def boost_count_boost_parents( + def boost_claim_boost_with_link( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -941,13 +959,13 @@ def boost_count_boost_parents( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> float: - """Count boost parents + ) -> str: + """Claim a boost using a claim link - This endpoint counts the parents of a particular boost + Claims a boost using a claim link, including a challenge - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_claim_boost_with_link_request: (required) + :type boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -970,8 +988,8 @@ def boost_count_boost_parents( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_parents_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_claim_boost_with_link_serialize( + boost_claim_boost_with_link_request=boost_claim_boost_with_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -979,7 +997,7 @@ def boost_count_boost_parents( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -997,9 +1015,9 @@ def boost_count_boost_parents( @validate_call - def boost_count_boost_parents_with_http_info( + def boost_claim_boost_with_link_with_http_info( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1012,13 +1030,13 @@ def boost_count_boost_parents_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[float]: - """Count boost parents + ) -> ApiResponse[str]: + """Claim a boost using a claim link - This endpoint counts the parents of a particular boost + Claims a boost using a claim link, including a challenge - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_claim_boost_with_link_request: (required) + :type boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1041,8 +1059,8 @@ def boost_count_boost_parents_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_parents_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_claim_boost_with_link_serialize( + boost_claim_boost_with_link_request=boost_claim_boost_with_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1050,7 +1068,7 @@ def boost_count_boost_parents_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1068,9 +1086,9 @@ def boost_count_boost_parents_with_http_info( @validate_call - def boost_count_boost_parents_without_preload_content( + def boost_claim_boost_with_link_without_preload_content( self, - boost_count_boost_children_request: BoostCountBoostChildrenRequest, + boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1084,12 +1102,12 @@ def boost_count_boost_parents_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Count boost parents + """Claim a boost using a claim link - This endpoint counts the parents of a particular boost + Claims a boost using a claim link, including a challenge - :param boost_count_boost_children_request: (required) - :type boost_count_boost_children_request: BoostCountBoostChildrenRequest + :param boost_claim_boost_with_link_request: (required) + :type boost_claim_boost_with_link_request: BoostClaimBoostWithLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1112,8 +1130,8 @@ def boost_count_boost_parents_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_parents_serialize( - boost_count_boost_children_request=boost_count_boost_children_request, + _param = self._boost_claim_boost_with_link_serialize( + boost_claim_boost_with_link_request=boost_claim_boost_with_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1121,7 +1139,7 @@ def boost_count_boost_parents_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1134,9 +1152,9 @@ def boost_count_boost_parents_without_preload_content( return response_data.response - def _boost_count_boost_parents_serialize( + def _boost_claim_boost_with_link_serialize( self, - boost_count_boost_children_request, + boost_claim_boost_with_link_request, _request_auth, _content_type, _headers, @@ -1162,8 +1180,8 @@ def _boost_count_boost_parents_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_count_boost_children_request is not None: - _body_params = boost_count_boost_children_request + if boost_claim_boost_with_link_request is not None: + _body_params = boost_claim_boost_with_link_request # set the HTTP header `Accept` @@ -1195,7 +1213,7 @@ def _boost_count_boost_parents_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/parents/count', + resource_path='/boost/claim', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1212,9 +1230,9 @@ def _boost_count_boost_parents_serialize( @validate_call - def boost_count_boost_siblings( + def boost_count_boost_children( self, - boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, + boost_count_boost_children_request: BoostCountBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1228,12 +1246,12 @@ def boost_count_boost_siblings( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: - """Count boost siblings + """Count boost children - This endpoint counts the siblings of a particular boost + This endpoint counts the children of a particular boost - :param boost_count_boost_siblings_request: (required) - :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest + :param boost_count_boost_children_request: (required) + :type boost_count_boost_children_request: BoostCountBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1256,8 +1274,8 @@ def boost_count_boost_siblings( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_siblings_serialize( - boost_count_boost_siblings_request=boost_count_boost_siblings_request, + _param = self._boost_count_boost_children_serialize( + boost_count_boost_children_request=boost_count_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1283,9 +1301,9 @@ def boost_count_boost_siblings( @validate_call - def boost_count_boost_siblings_with_http_info( + def boost_count_boost_children_with_http_info( self, - boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, + boost_count_boost_children_request: BoostCountBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1299,12 +1317,12 @@ def boost_count_boost_siblings_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: - """Count boost siblings + """Count boost children - This endpoint counts the siblings of a particular boost + This endpoint counts the children of a particular boost - :param boost_count_boost_siblings_request: (required) - :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest + :param boost_count_boost_children_request: (required) + :type boost_count_boost_children_request: BoostCountBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1327,8 +1345,8 @@ def boost_count_boost_siblings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_siblings_serialize( - boost_count_boost_siblings_request=boost_count_boost_siblings_request, + _param = self._boost_count_boost_children_serialize( + boost_count_boost_children_request=boost_count_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1354,9 +1372,9 @@ def boost_count_boost_siblings_with_http_info( @validate_call - def boost_count_boost_siblings_without_preload_content( + def boost_count_boost_children_without_preload_content( self, - boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, + boost_count_boost_children_request: BoostCountBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1370,12 +1388,12 @@ def boost_count_boost_siblings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Count boost siblings + """Count boost children - This endpoint counts the siblings of a particular boost + This endpoint counts the children of a particular boost - :param boost_count_boost_siblings_request: (required) - :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest + :param boost_count_boost_children_request: (required) + :type boost_count_boost_children_request: BoostCountBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1398,8 +1416,8 @@ def boost_count_boost_siblings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boost_siblings_serialize( - boost_count_boost_siblings_request=boost_count_boost_siblings_request, + _param = self._boost_count_boost_children_serialize( + boost_count_boost_children_request=boost_count_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1420,9 +1438,9 @@ def boost_count_boost_siblings_without_preload_content( return response_data.response - def _boost_count_boost_siblings_serialize( + def _boost_count_boost_children_serialize( self, - boost_count_boost_siblings_request, + boost_count_boost_children_request, _request_auth, _content_type, _headers, @@ -1448,8 +1466,8 @@ def _boost_count_boost_siblings_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_count_boost_siblings_request is not None: - _body_params = boost_count_boost_siblings_request + if boost_count_boost_children_request is not None: + _body_params = boost_count_boost_children_request # set the HTTP header `Accept` @@ -1481,7 +1499,7 @@ def _boost_count_boost_siblings_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/siblings/count', + resource_path='/boost/children/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1498,9 +1516,9 @@ def _boost_count_boost_siblings_serialize( @validate_call - def boost_count_boosts( + def boost_count_boost_parents( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + boost_count_boost_parents_request: BoostCountBoostParentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1514,12 +1532,12 @@ def boost_count_boosts( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: - """Count managed boosts + """Count boost parents - This endpoint counts the current user's managed boosts. + This endpoint counts the parents of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param boost_count_boost_parents_request: (required) + :type boost_count_boost_parents_request: BoostCountBoostParentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1542,8 +1560,8 @@ def boost_count_boosts( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_count_boost_parents_serialize( + boost_count_boost_parents_request=boost_count_boost_parents_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1569,9 +1587,9 @@ def boost_count_boosts( @validate_call - def boost_count_boosts_with_http_info( + def boost_count_boost_parents_with_http_info( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + boost_count_boost_parents_request: BoostCountBoostParentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1585,12 +1603,12 @@ def boost_count_boosts_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: - """Count managed boosts + """Count boost parents - This endpoint counts the current user's managed boosts. + This endpoint counts the parents of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param boost_count_boost_parents_request: (required) + :type boost_count_boost_parents_request: BoostCountBoostParentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1613,8 +1631,8 @@ def boost_count_boosts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_count_boost_parents_serialize( + boost_count_boost_parents_request=boost_count_boost_parents_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1640,9 +1658,9 @@ def boost_count_boosts_with_http_info( @validate_call - def boost_count_boosts_without_preload_content( + def boost_count_boost_parents_without_preload_content( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + boost_count_boost_parents_request: BoostCountBoostParentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1656,12 +1674,12 @@ def boost_count_boosts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Count managed boosts + """Count boost parents - This endpoint counts the current user's managed boosts. + This endpoint counts the parents of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param boost_count_boost_parents_request: (required) + :type boost_count_boost_parents_request: BoostCountBoostParentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1684,8 +1702,8 @@ def boost_count_boosts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_count_boost_parents_serialize( + boost_count_boost_parents_request=boost_count_boost_parents_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1706,9 +1724,9 @@ def boost_count_boosts_without_preload_content( return response_data.response - def _boost_count_boosts_serialize( + def _boost_count_boost_parents_serialize( self, - boost_get_boosts_request, + boost_count_boost_parents_request, _request_auth, _content_type, _headers, @@ -1734,8 +1752,8 @@ def _boost_count_boosts_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_boosts_request is not None: - _body_params = boost_get_boosts_request + if boost_count_boost_parents_request is not None: + _body_params = boost_count_boost_parents_request # set the HTTP header `Accept` @@ -1767,7 +1785,7 @@ def _boost_count_boosts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/count', + resource_path='/boost/parents/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1784,9 +1802,9 @@ def _boost_count_boosts_serialize( @validate_call - def boost_count_familial_boosts( + def boost_count_boost_siblings( self, - boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, + boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1800,12 +1818,12 @@ def boost_count_familial_boosts( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: - """Count familial boosts + """Count boost siblings - This endpoint counts the parents, children, and siblings of a particular boost + This endpoint counts the siblings of a particular boost - :param boost_count_familial_boosts_request: (required) - :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest + :param boost_count_boost_siblings_request: (required) + :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1828,8 +1846,8 @@ def boost_count_familial_boosts( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_familial_boosts_serialize( - boost_count_familial_boosts_request=boost_count_familial_boosts_request, + _param = self._boost_count_boost_siblings_serialize( + boost_count_boost_siblings_request=boost_count_boost_siblings_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1855,9 +1873,9 @@ def boost_count_familial_boosts( @validate_call - def boost_count_familial_boosts_with_http_info( + def boost_count_boost_siblings_with_http_info( self, - boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, + boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1871,12 +1889,12 @@ def boost_count_familial_boosts_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: - """Count familial boosts + """Count boost siblings - This endpoint counts the parents, children, and siblings of a particular boost + This endpoint counts the siblings of a particular boost - :param boost_count_familial_boosts_request: (required) - :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest + :param boost_count_boost_siblings_request: (required) + :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1899,8 +1917,8 @@ def boost_count_familial_boosts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_familial_boosts_serialize( - boost_count_familial_boosts_request=boost_count_familial_boosts_request, + _param = self._boost_count_boost_siblings_serialize( + boost_count_boost_siblings_request=boost_count_boost_siblings_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1926,9 +1944,9 @@ def boost_count_familial_boosts_with_http_info( @validate_call - def boost_count_familial_boosts_without_preload_content( + def boost_count_boost_siblings_without_preload_content( self, - boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, + boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1942,12 +1960,12 @@ def boost_count_familial_boosts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Count familial boosts + """Count boost siblings - This endpoint counts the parents, children, and siblings of a particular boost + This endpoint counts the siblings of a particular boost - :param boost_count_familial_boosts_request: (required) - :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest + :param boost_count_boost_siblings_request: (required) + :type boost_count_boost_siblings_request: BoostCountBoostSiblingsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1970,8 +1988,8 @@ def boost_count_familial_boosts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_count_familial_boosts_serialize( - boost_count_familial_boosts_request=boost_count_familial_boosts_request, + _param = self._boost_count_boost_siblings_serialize( + boost_count_boost_siblings_request=boost_count_boost_siblings_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1992,9 +2010,9 @@ def boost_count_familial_boosts_without_preload_content( return response_data.response - def _boost_count_familial_boosts_serialize( + def _boost_count_boost_siblings_serialize( self, - boost_count_familial_boosts_request, + boost_count_boost_siblings_request, _request_auth, _content_type, _headers, @@ -2020,8 +2038,8 @@ def _boost_count_familial_boosts_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_count_familial_boosts_request is not None: - _body_params = boost_count_familial_boosts_request + if boost_count_boost_siblings_request is not None: + _body_params = boost_count_boost_siblings_request # set the HTTP header `Accept` @@ -2053,7 +2071,7 @@ def _boost_count_familial_boosts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/family/count', + resource_path='/boost/siblings/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2070,9 +2088,9 @@ def _boost_count_familial_boosts_serialize( @validate_call - def boost_create_boost( + def boost_count_boosts( self, - boost_create_boost_request: BoostCreateBoostRequest, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2085,13 +2103,13 @@ def boost_create_boost( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Creates a boost + ) -> float: + """Count managed boosts - This route creates a boost + This endpoint counts the current user's managed boosts. - :param boost_create_boost_request: (required) - :type boost_create_boost_request: BoostCreateBoostRequest + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2114,8 +2132,8 @@ def boost_create_boost( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_boost_serialize( - boost_create_boost_request=boost_create_boost_request, + _param = self._boost_count_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2123,7 +2141,7 @@ def boost_create_boost( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2141,9 +2159,9 @@ def boost_create_boost( @validate_call - def boost_create_boost_with_http_info( + def boost_count_boosts_with_http_info( self, - boost_create_boost_request: BoostCreateBoostRequest, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2156,13 +2174,13 @@ def boost_create_boost_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Creates a boost + ) -> ApiResponse[float]: + """Count managed boosts - This route creates a boost + This endpoint counts the current user's managed boosts. - :param boost_create_boost_request: (required) - :type boost_create_boost_request: BoostCreateBoostRequest + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2185,8 +2203,8 @@ def boost_create_boost_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_boost_serialize( - boost_create_boost_request=boost_create_boost_request, + _param = self._boost_count_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2194,7 +2212,7 @@ def boost_create_boost_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2212,9 +2230,9 @@ def boost_create_boost_with_http_info( @validate_call - def boost_create_boost_without_preload_content( + def boost_count_boosts_without_preload_content( self, - boost_create_boost_request: BoostCreateBoostRequest, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2228,12 +2246,12 @@ def boost_create_boost_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Creates a boost + """Count managed boosts - This route creates a boost + This endpoint counts the current user's managed boosts. - :param boost_create_boost_request: (required) - :type boost_create_boost_request: BoostCreateBoostRequest + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2256,8 +2274,8 @@ def boost_create_boost_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_boost_serialize( - boost_create_boost_request=boost_create_boost_request, + _param = self._boost_count_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2265,7 +2283,7 @@ def boost_create_boost_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2278,9 +2296,9 @@ def boost_create_boost_without_preload_content( return response_data.response - def _boost_create_boost_serialize( + def _boost_count_boosts_serialize( self, - boost_create_boost_request, + boost_get_boosts_request, _request_auth, _content_type, _headers, @@ -2306,8 +2324,8 @@ def _boost_create_boost_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_create_boost_request is not None: - _body_params = boost_create_boost_request + if boost_get_boosts_request is not None: + _body_params = boost_get_boosts_request # set the HTTP header `Accept` @@ -2339,7 +2357,7 @@ def _boost_create_boost_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/create', + resource_path='/boost/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2356,9 +2374,9 @@ def _boost_create_boost_serialize( @validate_call - def boost_create_child_boost( + def boost_count_familial_boosts( self, - boost_create_child_boost_request: BoostCreateChildBoostRequest, + boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2371,13 +2389,13 @@ def boost_create_child_boost( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Creates a boost + ) -> float: + """Count familial boosts - This route creates a boost + This endpoint counts the parents, children, and siblings of a particular boost - :param boost_create_child_boost_request: (required) - :type boost_create_child_boost_request: BoostCreateChildBoostRequest + :param boost_count_familial_boosts_request: (required) + :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2400,8 +2418,8 @@ def boost_create_child_boost( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_child_boost_serialize( - boost_create_child_boost_request=boost_create_child_boost_request, + _param = self._boost_count_familial_boosts_serialize( + boost_count_familial_boosts_request=boost_count_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2409,7 +2427,7 @@ def boost_create_child_boost( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2427,9 +2445,9 @@ def boost_create_child_boost( @validate_call - def boost_create_child_boost_with_http_info( + def boost_count_familial_boosts_with_http_info( self, - boost_create_child_boost_request: BoostCreateChildBoostRequest, + boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2442,13 +2460,13 @@ def boost_create_child_boost_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Creates a boost + ) -> ApiResponse[float]: + """Count familial boosts - This route creates a boost + This endpoint counts the parents, children, and siblings of a particular boost - :param boost_create_child_boost_request: (required) - :type boost_create_child_boost_request: BoostCreateChildBoostRequest + :param boost_count_familial_boosts_request: (required) + :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2471,8 +2489,8 @@ def boost_create_child_boost_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_child_boost_serialize( - boost_create_child_boost_request=boost_create_child_boost_request, + _param = self._boost_count_familial_boosts_serialize( + boost_count_familial_boosts_request=boost_count_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2480,7 +2498,7 @@ def boost_create_child_boost_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2498,9 +2516,9 @@ def boost_create_child_boost_with_http_info( @validate_call - def boost_create_child_boost_without_preload_content( + def boost_count_familial_boosts_without_preload_content( self, - boost_create_child_boost_request: BoostCreateChildBoostRequest, + boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2514,12 +2532,12 @@ def boost_create_child_boost_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Creates a boost + """Count familial boosts - This route creates a boost + This endpoint counts the parents, children, and siblings of a particular boost - :param boost_create_child_boost_request: (required) - :type boost_create_child_boost_request: BoostCreateChildBoostRequest + :param boost_count_familial_boosts_request: (required) + :type boost_count_familial_boosts_request: BoostCountFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2542,8 +2560,8 @@ def boost_create_child_boost_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_create_child_boost_serialize( - boost_create_child_boost_request=boost_create_child_boost_request, + _param = self._boost_count_familial_boosts_serialize( + boost_count_familial_boosts_request=boost_count_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2551,7 +2569,7 @@ def boost_create_child_boost_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2564,9 +2582,9 @@ def boost_create_child_boost_without_preload_content( return response_data.response - def _boost_create_child_boost_serialize( + def _boost_count_familial_boosts_serialize( self, - boost_create_child_boost_request, + boost_count_familial_boosts_request, _request_auth, _content_type, _headers, @@ -2592,8 +2610,8 @@ def _boost_create_child_boost_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_create_child_boost_request is not None: - _body_params = boost_create_child_boost_request + if boost_count_familial_boosts_request is not None: + _body_params = boost_count_familial_boosts_request # set the HTTP header `Accept` @@ -2625,7 +2643,7 @@ def _boost_create_child_boost_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/create/child', + resource_path='/boost/family/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2642,9 +2660,9 @@ def _boost_create_child_boost_serialize( @validate_call - def boost_delete_boost( + def boost_create_boost( self, - uri: StrictStr, + boost_create_boost_request: BoostCreateBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2657,13 +2675,13 @@ def boost_delete_boost( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Delete a boost + ) -> str: + """Creates a boost - This route deletes a boost + This route creates a boost - :param uri: (required) - :type uri: str + :param boost_create_boost_request: (required) + :type boost_create_boost_request: BoostCreateBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2686,8 +2704,8 @@ def boost_delete_boost( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_delete_boost_serialize( - uri=uri, + _param = self._boost_create_boost_serialize( + boost_create_boost_request=boost_create_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2695,11 +2713,10 @@ def boost_delete_boost( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2714,9 +2731,9 @@ def boost_delete_boost( @validate_call - def boost_delete_boost_with_http_info( + def boost_create_boost_with_http_info( self, - uri: StrictStr, + boost_create_boost_request: BoostCreateBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2729,13 +2746,13 @@ def boost_delete_boost_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Delete a boost + ) -> ApiResponse[str]: + """Creates a boost - This route deletes a boost + This route creates a boost - :param uri: (required) - :type uri: str + :param boost_create_boost_request: (required) + :type boost_create_boost_request: BoostCreateBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2758,8 +2775,8 @@ def boost_delete_boost_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_delete_boost_serialize( - uri=uri, + _param = self._boost_create_boost_serialize( + boost_create_boost_request=boost_create_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2767,11 +2784,10 @@ def boost_delete_boost_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2786,9 +2802,9 @@ def boost_delete_boost_with_http_info( @validate_call - def boost_delete_boost_without_preload_content( + def boost_create_boost_without_preload_content( self, - uri: StrictStr, + boost_create_boost_request: BoostCreateBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2802,12 +2818,12 @@ def boost_delete_boost_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a boost + """Creates a boost - This route deletes a boost + This route creates a boost - :param uri: (required) - :type uri: str + :param boost_create_boost_request: (required) + :type boost_create_boost_request: BoostCreateBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2830,8 +2846,8 @@ def boost_delete_boost_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_delete_boost_serialize( - uri=uri, + _param = self._boost_create_boost_serialize( + boost_create_boost_request=boost_create_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2839,11 +2855,10 @@ def boost_delete_boost_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2853,9 +2868,9 @@ def boost_delete_boost_without_preload_content( return response_data.response - def _boost_delete_boost_serialize( + def _boost_create_boost_serialize( self, - uri, + boost_create_boost_request, _request_auth, _content_type, _headers, @@ -2878,13 +2893,11 @@ def _boost_delete_boost_serialize( # process the path parameters # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - # process the header parameters # process the form parameters # process the body parameter + if boost_create_boost_request is not None: + _body_params = boost_create_boost_request # set the HTTP header `Accept` @@ -2895,6 +2908,19 @@ def _boost_delete_boost_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2902,8 +2928,8 @@ def _boost_delete_boost_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/boost', + method='POST', + resource_path='/boost/create', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2920,9 +2946,9 @@ def _boost_delete_boost_serialize( @validate_call - def boost_generate_claim_link( + def boost_create_child_boost( self, - boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, + boost_create_child_boost_request: BoostCreateChildBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2935,14 +2961,14 @@ def boost_generate_claim_link( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGenerateClaimLink200Response: - """Generate a claim link for a boost + ) -> str: + """Creates a boost - This route creates a challenge that an unknown profile can use to claim a boost. + This route creates a boost - :param boost_generate_claim_link_request: (required) - :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest - :param _request_timeout: timeout setting for this request. If one + :param boost_create_child_boost_request: (required) + :type boost_create_child_boost_request: BoostCreateChildBoostRequest + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. @@ -2964,8 +2990,8 @@ def boost_generate_claim_link( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_generate_claim_link_serialize( - boost_generate_claim_link_request=boost_generate_claim_link_request, + _param = self._boost_create_child_boost_serialize( + boost_create_child_boost_request=boost_create_child_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2973,7 +2999,7 @@ def boost_generate_claim_link( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGenerateClaimLink200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2991,9 +3017,9 @@ def boost_generate_claim_link( @validate_call - def boost_generate_claim_link_with_http_info( + def boost_create_child_boost_with_http_info( self, - boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, + boost_create_child_boost_request: BoostCreateChildBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3006,13 +3032,13 @@ def boost_generate_claim_link_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGenerateClaimLink200Response]: - """Generate a claim link for a boost + ) -> ApiResponse[str]: + """Creates a boost - This route creates a challenge that an unknown profile can use to claim a boost. + This route creates a boost - :param boost_generate_claim_link_request: (required) - :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest + :param boost_create_child_boost_request: (required) + :type boost_create_child_boost_request: BoostCreateChildBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3035,8 +3061,8 @@ def boost_generate_claim_link_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_generate_claim_link_serialize( - boost_generate_claim_link_request=boost_generate_claim_link_request, + _param = self._boost_create_child_boost_serialize( + boost_create_child_boost_request=boost_create_child_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3044,7 +3070,7 @@ def boost_generate_claim_link_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGenerateClaimLink200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3062,9 +3088,9 @@ def boost_generate_claim_link_with_http_info( @validate_call - def boost_generate_claim_link_without_preload_content( + def boost_create_child_boost_without_preload_content( self, - boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, + boost_create_child_boost_request: BoostCreateChildBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3078,12 +3104,12 @@ def boost_generate_claim_link_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Generate a claim link for a boost + """Creates a boost - This route creates a challenge that an unknown profile can use to claim a boost. + This route creates a boost - :param boost_generate_claim_link_request: (required) - :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest + :param boost_create_child_boost_request: (required) + :type boost_create_child_boost_request: BoostCreateChildBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3106,8 +3132,8 @@ def boost_generate_claim_link_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_generate_claim_link_serialize( - boost_generate_claim_link_request=boost_generate_claim_link_request, + _param = self._boost_create_child_boost_serialize( + boost_create_child_boost_request=boost_create_child_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3115,7 +3141,7 @@ def boost_generate_claim_link_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGenerateClaimLink200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3128,9 +3154,9 @@ def boost_generate_claim_link_without_preload_content( return response_data.response - def _boost_generate_claim_link_serialize( + def _boost_create_child_boost_serialize( self, - boost_generate_claim_link_request, + boost_create_child_boost_request, _request_auth, _content_type, _headers, @@ -3156,8 +3182,8 @@ def _boost_generate_claim_link_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_generate_claim_link_request is not None: - _body_params = boost_generate_claim_link_request + if boost_create_child_boost_request is not None: + _body_params = boost_create_child_boost_request # set the HTTP header `Accept` @@ -3189,7 +3215,7 @@ def _boost_generate_claim_link_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/generate-claim-link', + resource_path='/boost/create/child', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3206,7 +3232,7 @@ def _boost_generate_claim_link_serialize( @validate_call - def boost_get_boost( + def boost_delete_boost( self, uri: StrictStr, _request_timeout: Union[ @@ -3221,10 +3247,10 @@ def boost_get_boost( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoost200Response: - """Get boost + ) -> bool: + """Delete a boost - This endpoint gets metadata about a boost + This route deletes a boost :param uri: (required) :type uri: str @@ -3250,7 +3276,7 @@ def boost_get_boost( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_serialize( + _param = self._boost_delete_boost_serialize( uri=uri, _request_auth=_request_auth, _content_type=_content_type, @@ -3259,7 +3285,7 @@ def boost_get_boost( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3278,7 +3304,7 @@ def boost_get_boost( @validate_call - def boost_get_boost_with_http_info( + def boost_delete_boost_with_http_info( self, uri: StrictStr, _request_timeout: Union[ @@ -3293,10 +3319,10 @@ def boost_get_boost_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoost200Response]: - """Get boost + ) -> ApiResponse[bool]: + """Delete a boost - This endpoint gets metadata about a boost + This route deletes a boost :param uri: (required) :type uri: str @@ -3322,7 +3348,7 @@ def boost_get_boost_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_serialize( + _param = self._boost_delete_boost_serialize( uri=uri, _request_auth=_request_auth, _content_type=_content_type, @@ -3331,7 +3357,7 @@ def boost_get_boost_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3350,7 +3376,7 @@ def boost_get_boost_with_http_info( @validate_call - def boost_get_boost_without_preload_content( + def boost_delete_boost_without_preload_content( self, uri: StrictStr, _request_timeout: Union[ @@ -3366,9 +3392,9 @@ def boost_get_boost_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost + """Delete a boost - This endpoint gets metadata about a boost + This route deletes a boost :param uri: (required) :type uri: str @@ -3394,7 +3420,7 @@ def boost_get_boost_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_serialize( + _param = self._boost_delete_boost_serialize( uri=uri, _request_auth=_request_auth, _content_type=_content_type, @@ -3403,7 +3429,7 @@ def boost_get_boost_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3417,7 +3443,7 @@ def boost_get_boost_without_preload_content( return response_data.response - def _boost_get_boost_serialize( + def _boost_delete_boost_serialize( self, uri, _request_auth, @@ -3466,7 +3492,7 @@ def _boost_get_boost_serialize( ] return self.api_client.param_serialize( - method='GET', + method='DELETE', resource_path='/boost', path_params=_path_params, query_params=_query_params, @@ -3484,9 +3510,9 @@ def _boost_get_boost_serialize( @validate_call - def boost_get_boost_admins( + def boost_detach_framework_from_boost( self, - boost_get_boost_admins_request: BoostGetBoostAdminsRequest, + boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3499,13 +3525,13 @@ def boost_get_boost_admins( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoostAdmins200Response: - """Get boost admins + ) -> bool: + """Detach framework from boost - This route returns the admins for a boost + Removes a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_get_boost_admins_request: (required) - :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest + :param boost_detach_framework_from_boost_request: (required) + :type boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3528,8 +3554,8 @@ def boost_get_boost_admins( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_admins_serialize( - boost_get_boost_admins_request=boost_get_boost_admins_request, + _param = self._boost_detach_framework_from_boost_serialize( + boost_detach_framework_from_boost_request=boost_detach_framework_from_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3537,7 +3563,7 @@ def boost_get_boost_admins( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3555,9 +3581,9 @@ def boost_get_boost_admins( @validate_call - def boost_get_boost_admins_with_http_info( + def boost_detach_framework_from_boost_with_http_info( self, - boost_get_boost_admins_request: BoostGetBoostAdminsRequest, + boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3570,13 +3596,13 @@ def boost_get_boost_admins_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoostAdmins200Response]: - """Get boost admins + ) -> ApiResponse[bool]: + """Detach framework from boost - This route returns the admins for a boost + Removes a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_get_boost_admins_request: (required) - :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest + :param boost_detach_framework_from_boost_request: (required) + :type boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3599,8 +3625,8 @@ def boost_get_boost_admins_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_admins_serialize( - boost_get_boost_admins_request=boost_get_boost_admins_request, + _param = self._boost_detach_framework_from_boost_serialize( + boost_detach_framework_from_boost_request=boost_detach_framework_from_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3608,7 +3634,7 @@ def boost_get_boost_admins_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3626,9 +3652,9 @@ def boost_get_boost_admins_with_http_info( @validate_call - def boost_get_boost_admins_without_preload_content( + def boost_detach_framework_from_boost_without_preload_content( self, - boost_get_boost_admins_request: BoostGetBoostAdminsRequest, + boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3642,12 +3668,12 @@ def boost_get_boost_admins_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost admins + """Detach framework from boost - This route returns the admins for a boost + Removes a USES_FRAMEWORK relationship from a boost to a SkillFramework. Requires boost admin. - :param boost_get_boost_admins_request: (required) - :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest + :param boost_detach_framework_from_boost_request: (required) + :type boost_detach_framework_from_boost_request: BoostDetachFrameworkFromBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3670,8 +3696,8 @@ def boost_get_boost_admins_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_admins_serialize( - boost_get_boost_admins_request=boost_get_boost_admins_request, + _param = self._boost_detach_framework_from_boost_serialize( + boost_detach_framework_from_boost_request=boost_detach_framework_from_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3679,7 +3705,7 @@ def boost_get_boost_admins_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3692,9 +3718,9 @@ def boost_get_boost_admins_without_preload_content( return response_data.response - def _boost_get_boost_admins_serialize( + def _boost_detach_framework_from_boost_serialize( self, - boost_get_boost_admins_request, + boost_detach_framework_from_boost_request, _request_auth, _content_type, _headers, @@ -3720,8 +3746,8 @@ def _boost_get_boost_admins_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_boost_admins_request is not None: - _body_params = boost_get_boost_admins_request + if boost_detach_framework_from_boost_request is not None: + _body_params = boost_detach_framework_from_boost_request # set the HTTP header `Accept` @@ -3753,7 +3779,7 @@ def _boost_get_boost_admins_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/admins', + resource_path='/boost/detach-framework', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3770,9 +3796,9 @@ def _boost_get_boost_admins_serialize( @validate_call - def boost_get_boost_children( + def boost_generate_claim_link( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3785,13 +3811,13 @@ def boost_get_boost_children( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoosts200Response: - """Get boost children + ) -> BoostGenerateClaimLink200Response: + """Generate a claim link for a boost - This endpoint gets the children of a particular boost + This route creates a challenge that an unknown profile can use to claim a boost. - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param boost_generate_claim_link_request: (required) + :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3814,8 +3840,8 @@ def boost_get_boost_children( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_children_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_generate_claim_link_serialize( + boost_generate_claim_link_request=boost_generate_claim_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3823,7 +3849,7 @@ def boost_get_boost_children( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGenerateClaimLink200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3841,9 +3867,9 @@ def boost_get_boost_children( @validate_call - def boost_get_boost_children_with_http_info( + def boost_generate_claim_link_with_http_info( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3856,13 +3882,13 @@ def boost_get_boost_children_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: - """Get boost children + ) -> ApiResponse[BoostGenerateClaimLink200Response]: + """Generate a claim link for a boost - This endpoint gets the children of a particular boost + This route creates a challenge that an unknown profile can use to claim a boost. - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param boost_generate_claim_link_request: (required) + :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3885,8 +3911,8 @@ def boost_get_boost_children_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_children_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_generate_claim_link_serialize( + boost_generate_claim_link_request=boost_generate_claim_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3894,7 +3920,7 @@ def boost_get_boost_children_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGenerateClaimLink200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3912,9 +3938,9 @@ def boost_get_boost_children_with_http_info( @validate_call - def boost_get_boost_children_without_preload_content( + def boost_generate_claim_link_without_preload_content( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + boost_generate_claim_link_request: BoostGenerateClaimLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3928,12 +3954,12 @@ def boost_get_boost_children_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost children + """Generate a claim link for a boost - This endpoint gets the children of a particular boost + This route creates a challenge that an unknown profile can use to claim a boost. - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param boost_generate_claim_link_request: (required) + :type boost_generate_claim_link_request: BoostGenerateClaimLinkRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3956,8 +3982,8 @@ def boost_get_boost_children_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_children_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_generate_claim_link_serialize( + boost_generate_claim_link_request=boost_generate_claim_link_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3965,7 +3991,7 @@ def boost_get_boost_children_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGenerateClaimLink200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3978,9 +4004,9 @@ def boost_get_boost_children_without_preload_content( return response_data.response - def _boost_get_boost_children_serialize( + def _boost_generate_claim_link_serialize( self, - boost_get_boost_children_request, + boost_generate_claim_link_request, _request_auth, _content_type, _headers, @@ -4006,8 +4032,8 @@ def _boost_get_boost_children_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_boost_children_request is not None: - _body_params = boost_get_boost_children_request + if boost_generate_claim_link_request is not None: + _body_params = boost_generate_claim_link_request # set the HTTP header `Accept` @@ -4039,7 +4065,7 @@ def _boost_get_boost_children_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/children', + resource_path='/boost/generate-claim-link', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4056,9 +4082,9 @@ def _boost_get_boost_children_serialize( @validate_call - def boost_get_boost_parents( + def boost_get_boost( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4071,13 +4097,13 @@ def boost_get_boost_parents( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoosts200Response: - """Get boost parents + ) -> BoostGetBoost200Response: + """Get boost - This endpoint gets the parents of a particular boost + This endpoint gets metadata about a boost - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4100,8 +4126,8 @@ def boost_get_boost_parents( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_parents_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_get_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4109,10 +4135,11 @@ def boost_get_boost_parents( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4127,9 +4154,9 @@ def boost_get_boost_parents( @validate_call - def boost_get_boost_parents_with_http_info( + def boost_get_boost_with_http_info( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4142,13 +4169,13 @@ def boost_get_boost_parents_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: - """Get boost parents + ) -> ApiResponse[BoostGetBoost200Response]: + """Get boost - This endpoint gets the parents of a particular boost + This endpoint gets metadata about a boost - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4171,8 +4198,8 @@ def boost_get_boost_parents_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_parents_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_get_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4180,10 +4207,11 @@ def boost_get_boost_parents_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4198,9 +4226,9 @@ def boost_get_boost_parents_with_http_info( @validate_call - def boost_get_boost_parents_without_preload_content( + def boost_get_boost_without_preload_content( self, - boost_get_boost_children_request: BoostGetBoostChildrenRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4214,12 +4242,12 @@ def boost_get_boost_parents_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost parents + """Get boost - This endpoint gets the parents of a particular boost + This endpoint gets metadata about a boost - :param boost_get_boost_children_request: (required) - :type boost_get_boost_children_request: BoostGetBoostChildrenRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4242,8 +4270,8 @@ def boost_get_boost_parents_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_parents_serialize( - boost_get_boost_children_request=boost_get_boost_children_request, + _param = self._boost_get_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4251,10 +4279,11 @@ def boost_get_boost_parents_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4264,9 +4293,9 @@ def boost_get_boost_parents_without_preload_content( return response_data.response - def _boost_get_boost_parents_serialize( + def _boost_get_boost_serialize( self, - boost_get_boost_children_request, + uri, _request_auth, _content_type, _headers, @@ -4289,11 +4318,13 @@ def _boost_get_boost_parents_serialize( # process the path parameters # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + # process the header parameters # process the form parameters # process the body parameter - if boost_get_boost_children_request is not None: - _body_params = boost_get_boost_children_request # set the HTTP header `Accept` @@ -4304,19 +4335,6 @@ def _boost_get_boost_parents_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4324,8 +4342,8 @@ def _boost_get_boost_parents_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/boost/parents', + method='GET', + resource_path='/boost', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4342,9 +4360,9 @@ def _boost_get_boost_parents_serialize( @validate_call - def boost_get_boost_permissions( + def boost_get_boost_admins( self, - uri: StrictStr, + boost_get_boost_admins_request: BoostGetBoostAdminsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4357,13 +4375,13 @@ def boost_get_boost_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoost200ResponseClaimPermissions: - """Get boost permissions + ) -> BoostGetBoostAdmins200Response: + """Get boost admins - This endpoint gets permission metadata about a boost + This route returns the admins for a boost - :param uri: (required) - :type uri: str + :param boost_get_boost_admins_request: (required) + :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4386,8 +4404,8 @@ def boost_get_boost_permissions( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_permissions_serialize( - uri=uri, + _param = self._boost_get_boost_admins_serialize( + boost_get_boost_admins_request=boost_get_boost_admins_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4395,11 +4413,10 @@ def boost_get_boost_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetBoostAdmins200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4414,9 +4431,9 @@ def boost_get_boost_permissions( @validate_call - def boost_get_boost_permissions_with_http_info( + def boost_get_boost_admins_with_http_info( self, - uri: StrictStr, + boost_get_boost_admins_request: BoostGetBoostAdminsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4429,13 +4446,13 @@ def boost_get_boost_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoost200ResponseClaimPermissions]: - """Get boost permissions + ) -> ApiResponse[BoostGetBoostAdmins200Response]: + """Get boost admins - This endpoint gets permission metadata about a boost + This route returns the admins for a boost - :param uri: (required) - :type uri: str + :param boost_get_boost_admins_request: (required) + :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4458,8 +4475,8 @@ def boost_get_boost_permissions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_permissions_serialize( - uri=uri, + _param = self._boost_get_boost_admins_serialize( + boost_get_boost_admins_request=boost_get_boost_admins_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4467,11 +4484,10 @@ def boost_get_boost_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetBoostAdmins200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4486,9 +4502,9 @@ def boost_get_boost_permissions_with_http_info( @validate_call - def boost_get_boost_permissions_without_preload_content( + def boost_get_boost_admins_without_preload_content( self, - uri: StrictStr, + boost_get_boost_admins_request: BoostGetBoostAdminsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4502,12 +4518,12 @@ def boost_get_boost_permissions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost permissions + """Get boost admins - This endpoint gets permission metadata about a boost + This route returns the admins for a boost - :param uri: (required) - :type uri: str + :param boost_get_boost_admins_request: (required) + :type boost_get_boost_admins_request: BoostGetBoostAdminsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4530,8 +4546,8 @@ def boost_get_boost_permissions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_permissions_serialize( - uri=uri, + _param = self._boost_get_boost_admins_serialize( + boost_get_boost_admins_request=boost_get_boost_admins_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4539,11 +4555,10 @@ def boost_get_boost_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetBoostAdmins200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4553,9 +4568,9 @@ def boost_get_boost_permissions_without_preload_content( return response_data.response - def _boost_get_boost_permissions_serialize( + def _boost_get_boost_admins_serialize( self, - uri, + boost_get_boost_admins_request, _request_auth, _content_type, _headers, @@ -4578,13 +4593,11 @@ def _boost_get_boost_permissions_serialize( # process the path parameters # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - # process the header parameters # process the form parameters # process the body parameter + if boost_get_boost_admins_request is not None: + _body_params = boost_get_boost_admins_request # set the HTTP header `Accept` @@ -4595,6 +4608,19 @@ def _boost_get_boost_permissions_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4602,8 +4628,8 @@ def _boost_get_boost_permissions_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/boost/permissions', + method='POST', + resource_path='/boost/admins', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4620,10 +4646,9 @@ def _boost_get_boost_permissions_serialize( @validate_call - def boost_get_boost_recipient_count( + def boost_get_boost_alignments( self, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4636,15 +4661,13 @@ def boost_get_boost_recipient_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> float: - """Get boost recipients count + ) -> List[BoostGetBoostAlignments200ResponseInner]: + """Get OBv3 alignments for a boost - This endpoint counts the recipients of a particular boost + Returns OBv3 alignment entries based on the boost's linked framework and aligned skills. Requires issue permission. :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4667,9 +4690,8 @@ def boost_get_boost_recipient_count( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_recipient_count_serialize( + _param = self._boost_get_boost_alignments_serialize( uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4677,7 +4699,7 @@ def boost_get_boost_recipient_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "List[BoostGetBoostAlignments200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -4696,10 +4718,9 @@ def boost_get_boost_recipient_count( @validate_call - def boost_get_boost_recipient_count_with_http_info( + def boost_get_boost_alignments_with_http_info( self, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4712,15 +4733,13 @@ def boost_get_boost_recipient_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[float]: - """Get boost recipients count + ) -> ApiResponse[List[BoostGetBoostAlignments200ResponseInner]]: + """Get OBv3 alignments for a boost - This endpoint counts the recipients of a particular boost + Returns OBv3 alignment entries based on the boost's linked framework and aligned skills. Requires issue permission. :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4743,9 +4762,8 @@ def boost_get_boost_recipient_count_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_recipient_count_serialize( + _param = self._boost_get_boost_alignments_serialize( uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4753,7 +4771,7 @@ def boost_get_boost_recipient_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "List[BoostGetBoostAlignments200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -4772,10 +4790,9 @@ def boost_get_boost_recipient_count_with_http_info( @validate_call - def boost_get_boost_recipient_count_without_preload_content( + def boost_get_boost_alignments_without_preload_content( self, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4789,14 +4806,12 @@ def boost_get_boost_recipient_count_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost recipients count + """Get OBv3 alignments for a boost - This endpoint counts the recipients of a particular boost + Returns OBv3 alignment entries based on the boost's linked framework and aligned skills. Requires issue permission. :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4819,9 +4834,8 @@ def boost_get_boost_recipient_count_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_recipient_count_serialize( + _param = self._boost_get_boost_alignments_serialize( uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4829,7 +4843,7 @@ def boost_get_boost_recipient_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "List[BoostGetBoostAlignments200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -4843,10 +4857,9 @@ def boost_get_boost_recipient_count_without_preload_content( return response_data.response - def _boost_get_boost_recipient_count_serialize( + def _boost_get_boost_alignments_serialize( self, uri, - include_unaccepted_boosts, _request_auth, _content_type, _headers, @@ -4873,10 +4886,6 @@ def _boost_get_boost_recipient_count_serialize( _query_params.append(('uri', uri)) - if include_unaccepted_boosts is not None: - - _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) - # process the header parameters # process the form parameters # process the body parameter @@ -4898,7 +4907,7 @@ def _boost_get_boost_recipient_count_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/boost/recipients/count', + resource_path='/boost/alignments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4915,12 +4924,9 @@ def _boost_get_boost_recipient_count_serialize( @validate_call - def boost_get_boost_recipients( + def boost_get_boost_children( self, - uri: StrictStr, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - skip: Optional[Union[StrictFloat, StrictInt]] = None, - include_unaccepted_boosts: Optional[StrictBool] = None, + boost_get_boost_children_request: BoostGetBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4933,19 +4939,13 @@ def boost_get_boost_recipients( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoostRecipients200ResponseInner]: - """(Deprecated) Get boost recipients + ) -> BoostGetPaginatedBoosts200Response: + """Get boost children - This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + This endpoint gets the children of a particular boost - :param uri: (required) - :type uri: str - :param limit: - :type limit: float - :param skip: - :type skip: float - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool + :param boost_get_boost_children_request: (required) + :type boost_get_boost_children_request: BoostGetBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4967,13 +4967,9 @@ def boost_get_boost_recipients( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) - _param = self._boost_get_boost_recipients_serialize( - uri=uri, - limit=limit, - skip=skip, - include_unaccepted_boosts=include_unaccepted_boosts, + _param = self._boost_get_boost_children_serialize( + boost_get_boost_children_request=boost_get_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4981,11 +4977,10 @@ def boost_get_boost_recipients( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInner]", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5000,12 +4995,9 @@ def boost_get_boost_recipients( @validate_call - def boost_get_boost_recipients_with_http_info( + def boost_get_boost_children_with_http_info( self, - uri: StrictStr, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - skip: Optional[Union[StrictFloat, StrictInt]] = None, - include_unaccepted_boosts: Optional[StrictBool] = None, + boost_get_boost_children_request: BoostGetBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5018,19 +5010,13 @@ def boost_get_boost_recipients_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInner]]: - """(Deprecated) Get boost recipients + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get boost children - This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + This endpoint gets the children of a particular boost - :param uri: (required) - :type uri: str - :param limit: - :type limit: float - :param skip: - :type skip: float - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool + :param boost_get_boost_children_request: (required) + :type boost_get_boost_children_request: BoostGetBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5052,13 +5038,9 @@ def boost_get_boost_recipients_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) - _param = self._boost_get_boost_recipients_serialize( - uri=uri, - limit=limit, - skip=skip, - include_unaccepted_boosts=include_unaccepted_boosts, + _param = self._boost_get_boost_children_serialize( + boost_get_boost_children_request=boost_get_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5066,11 +5048,10 @@ def boost_get_boost_recipients_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInner]", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5085,12 +5066,9 @@ def boost_get_boost_recipients_with_http_info( @validate_call - def boost_get_boost_recipients_without_preload_content( + def boost_get_boost_children_without_preload_content( self, - uri: StrictStr, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - skip: Optional[Union[StrictFloat, StrictInt]] = None, - include_unaccepted_boosts: Optional[StrictBool] = None, + boost_get_boost_children_request: BoostGetBoostChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5104,18 +5082,12 @@ def boost_get_boost_recipients_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Get boost recipients + """Get boost children - This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + This endpoint gets the children of a particular boost - :param uri: (required) - :type uri: str - :param limit: - :type limit: float - :param skip: - :type skip: float - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool + :param boost_get_boost_children_request: (required) + :type boost_get_boost_children_request: BoostGetBoostChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5137,13 +5109,9 @@ def boost_get_boost_recipients_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) - _param = self._boost_get_boost_recipients_serialize( - uri=uri, - limit=limit, - skip=skip, - include_unaccepted_boosts=include_unaccepted_boosts, + _param = self._boost_get_boost_children_serialize( + boost_get_boost_children_request=boost_get_boost_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5151,11 +5119,2634 @@ def boost_get_boost_recipients_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInner]", + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_children_serialize( + self, + boost_get_boost_children_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boost_children_request is not None: + _body_params = boost_get_boost_children_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/children', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_frameworks( + self, + boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoostFrameworks200Response: + """List frameworks used by a boost (paginated) + + Returns frameworks aligned to a boost via USES_FRAMEWORK with pagination and optional query filtering. Requires boost admin. + + :param boost_get_boost_frameworks_request: (required) + :type boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_frameworks_serialize( + boost_get_boost_frameworks_request=boost_get_boost_frameworks_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_frameworks_with_http_info( + self, + boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoostFrameworks200Response]: + """List frameworks used by a boost (paginated) + + Returns frameworks aligned to a boost via USES_FRAMEWORK with pagination and optional query filtering. Requires boost admin. + + :param boost_get_boost_frameworks_request: (required) + :type boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_frameworks_serialize( + boost_get_boost_frameworks_request=boost_get_boost_frameworks_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_frameworks_without_preload_content( + self, + boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List frameworks used by a boost (paginated) + + Returns frameworks aligned to a boost via USES_FRAMEWORK with pagination and optional query filtering. Requires boost admin. + + :param boost_get_boost_frameworks_request: (required) + :type boost_get_boost_frameworks_request: BoostGetBoostFrameworksRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_frameworks_serialize( + boost_get_boost_frameworks_request=boost_get_boost_frameworks_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_frameworks_serialize( + self, + boost_get_boost_frameworks_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boost_frameworks_request is not None: + _body_params = boost_get_boost_frameworks_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/frameworks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_parents( + self, + boost_get_boost_parents_request: BoostGetBoostParentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetPaginatedBoosts200Response: + """Get boost parents + + This endpoint gets the parents of a particular boost + + :param boost_get_boost_parents_request: (required) + :type boost_get_boost_parents_request: BoostGetBoostParentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_parents_serialize( + boost_get_boost_parents_request=boost_get_boost_parents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_parents_with_http_info( + self, + boost_get_boost_parents_request: BoostGetBoostParentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get boost parents + + This endpoint gets the parents of a particular boost + + :param boost_get_boost_parents_request: (required) + :type boost_get_boost_parents_request: BoostGetBoostParentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_parents_serialize( + boost_get_boost_parents_request=boost_get_boost_parents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_parents_without_preload_content( + self, + boost_get_boost_parents_request: BoostGetBoostParentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get boost parents + + This endpoint gets the parents of a particular boost + + :param boost_get_boost_parents_request: (required) + :type boost_get_boost_parents_request: BoostGetBoostParentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_parents_serialize( + boost_get_boost_parents_request=boost_get_boost_parents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_parents_serialize( + self, + boost_get_boost_parents_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boost_parents_request is not None: + _body_params = boost_get_boost_parents_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/parents', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_permissions( + self, + uri: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoost200ResponseClaimPermissions: + """Get boost permissions + + This endpoint gets permission metadata about a boost + + :param uri: (required) + :type uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_permissions_serialize( + uri=uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoost200ResponseClaimPermissions", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_permissions_with_http_info( + self, + uri: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoost200ResponseClaimPermissions]: + """Get boost permissions + + This endpoint gets permission metadata about a boost + + :param uri: (required) + :type uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_permissions_serialize( + uri=uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoost200ResponseClaimPermissions", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_permissions_without_preload_content( + self, + uri: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get boost permissions + + This endpoint gets permission metadata about a boost + + :param uri: (required) + :type uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_permissions_serialize( + uri=uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoost200ResponseClaimPermissions", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_permissions_serialize( + self, + uri, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/boost/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_recipient_count( + self, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Get boost recipients count + + This endpoint counts the recipients of a particular boost + + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_recipient_count_with_http_info( + self, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Get boost recipients count + + This endpoint counts the recipients of a particular boost + + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_recipient_count_without_preload_content( + self, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get boost recipients count + + This endpoint counts the recipients of a particular boost + + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_recipient_count_serialize( + self, + uri, + include_unaccepted_boosts, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + + if include_unaccepted_boosts is not None: + + _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/boost/recipients/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_recipients( + self, + uri: StrictStr, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + skip: Optional[Union[StrictFloat, StrictInt]] = None, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[BoostGetBoostRecipients200ResponseInner]: + """(Deprecated) Get boost recipients + + This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + + :param uri: (required) + :type uri: str + :param limit: + :type limit: float + :param skip: + :type skip: float + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) + + _param = self._boost_get_boost_recipients_serialize( + uri=uri, + limit=limit, + skip=skip, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostRecipients200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_recipients_with_http_info( + self, + uri: StrictStr, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + skip: Optional[Union[StrictFloat, StrictInt]] = None, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInner]]: + """(Deprecated) Get boost recipients + + This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + + :param uri: (required) + :type uri: str + :param limit: + :type limit: float + :param skip: + :type skip: float + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) + + _param = self._boost_get_boost_recipients_serialize( + uri=uri, + limit=limit, + skip=skip, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostRecipients200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_recipients_without_preload_content( + self, + uri: StrictStr, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + skip: Optional[Union[StrictFloat, StrictInt]] = None, + include_unaccepted_boosts: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get boost recipients + + This endpoint gets the recipients of a particular boost. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoostRecipients instead + + :param uri: (required) + :type uri: str + :param limit: + :type limit: float + :param skip: + :type skip: float + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /boost/recipients is deprecated.", DeprecationWarning) + + _param = self._boost_get_boost_recipients_serialize( + uri=uri, + limit=limit, + skip=skip, + include_unaccepted_boosts=include_unaccepted_boosts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostRecipients200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_recipients_serialize( + self, + uri, + limit, + skip, + include_unaccepted_boosts, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if include_unaccepted_boosts is not None: + + _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/boost/recipients', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_recipients_with_children_count( + self, + boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Count boost recipients with children + + This endpoint counts distinct recipients of a boost and all its children boosts + + :param boost_get_boost_recipients_with_children_count_request: (required) + :type boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipients_with_children_count_serialize( + boost_get_boost_recipients_with_children_count_request=boost_get_boost_recipients_with_children_count_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_recipients_with_children_count_with_http_info( + self, + boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Count boost recipients with children + + This endpoint counts distinct recipients of a boost and all its children boosts + + :param boost_get_boost_recipients_with_children_count_request: (required) + :type boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipients_with_children_count_serialize( + boost_get_boost_recipients_with_children_count_request=boost_get_boost_recipients_with_children_count_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_recipients_with_children_count_without_preload_content( + self, + boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count boost recipients with children + + This endpoint counts distinct recipients of a boost and all its children boosts + + :param boost_get_boost_recipients_with_children_count_request: (required) + :type boost_get_boost_recipients_with_children_count_request: BoostGetBoostRecipientsWithChildrenCountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_recipients_with_children_count_serialize( + boost_get_boost_recipients_with_children_count_request=boost_get_boost_recipients_with_children_count_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_recipients_with_children_count_serialize( + self, + boost_get_boost_recipients_with_children_count_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boost_recipients_with_children_count_request is not None: + _body_params = boost_get_boost_recipients_with_children_count_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/recipients-with-children/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boost_siblings( + self, + boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetPaginatedBoosts200Response: + """Get boost siblings + + This endpoint gets the siblings of a particular boost + + :param boost_get_boost_siblings_request: (required) + :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_siblings_serialize( + boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boost_siblings_with_http_info( + self, + boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get boost siblings + + This endpoint gets the siblings of a particular boost + + :param boost_get_boost_siblings_request: (required) + :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_siblings_serialize( + boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boost_siblings_without_preload_content( + self, + boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get boost siblings + + This endpoint gets the siblings of a particular boost + + :param boost_get_boost_siblings_request: (required) + :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_boost_siblings_serialize( + boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boost_siblings_serialize( + self, + boost_get_boost_siblings_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boost_siblings_request is not None: + _body_params = boost_get_boost_siblings_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/siblings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_boosts( + self, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[BoostGetBoosts200ResponseInner]: + """(Deprecated) Get boosts + + This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) + + _param = self._boost_get_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoosts200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_boosts_with_http_info( + self, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetBoosts200ResponseInner]]: + """(Deprecated) Get boosts + + This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) + + _param = self._boost_get_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoosts200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_boosts_without_preload_content( + self, + boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get boosts + + This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + + :param boost_get_boosts_request: + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) + + _param = self._boost_get_boosts_serialize( + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoosts200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_get_boosts_serialize( + self, + boost_get_boosts_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boosts_request is not None: + _body_params = boost_get_boosts_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/boost/all', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def boost_get_children_profile_managers( + self, + boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetChildrenProfileManagers200Response: + """Get Profile Managers that are a child of a boost + + Get Profile Managers that are a child of a boost + + :param boost_get_children_profile_managers_request: (required) + :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_children_profile_managers_serialize( + boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetChildrenProfileManagers200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_get_children_profile_managers_with_http_info( + self, + boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetChildrenProfileManagers200Response]: + """Get Profile Managers that are a child of a boost + + Get Profile Managers that are a child of a boost + + :param boost_get_children_profile_managers_request: (required) + :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_children_profile_managers_serialize( + boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetChildrenProfileManagers200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_get_children_profile_managers_without_preload_content( + self, + boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Profile Managers that are a child of a boost + + Get Profile Managers that are a child of a boost + + :param boost_get_children_profile_managers_request: (required) + :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_get_children_profile_managers_serialize( + boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetChildrenProfileManagers200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5165,12 +7756,9 @@ def boost_get_boost_recipients_without_preload_content( return response_data.response - def _boost_get_boost_recipients_serialize( + def _boost_get_children_profile_managers_serialize( self, - uri, - limit, - skip, - include_unaccepted_boosts, + boost_get_children_profile_managers_request, _request_auth, _content_type, _headers, @@ -5193,25 +7781,11 @@ def _boost_get_boost_recipients_serialize( # process the path parameters # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if include_unaccepted_boosts is not None: - - _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) - # process the header parameters # process the form parameters # process the body parameter + if boost_get_children_profile_managers_request is not None: + _body_params = boost_get_children_profile_managers_request # set the HTTP header `Accept` @@ -5222,6 +7796,19 @@ def _boost_get_boost_recipients_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5229,8 +7816,8 @@ def _boost_get_boost_recipients_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/boost/recipients', + method='POST', + resource_path='/boost/children-profile-managers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5247,9 +7834,10 @@ def _boost_get_boost_recipients_serialize( @validate_call - def boost_get_boost_siblings( + def boost_get_connected_boost_recipient_count( self, - boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5262,13 +7850,15 @@ def boost_get_boost_siblings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoosts200Response: - """Get boost siblings + ) -> float: + """Get boost recipients count - This endpoint gets the siblings of a particular boost + This endpoint counts the recipients of a particular boost - :param boost_get_boost_siblings_request: (required) - :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5291,8 +7881,9 @@ def boost_get_boost_siblings( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_siblings_serialize( - boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _param = self._boost_get_connected_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5300,10 +7891,11 @@ def boost_get_boost_siblings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5318,9 +7910,10 @@ def boost_get_boost_siblings( @validate_call - def boost_get_boost_siblings_with_http_info( + def boost_get_connected_boost_recipient_count_with_http_info( self, - boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5333,13 +7926,15 @@ def boost_get_boost_siblings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: - """Get boost siblings + ) -> ApiResponse[float]: + """Get boost recipients count - This endpoint gets the siblings of a particular boost + This endpoint counts the recipients of a particular boost - :param boost_get_boost_siblings_request: (required) - :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5362,8 +7957,9 @@ def boost_get_boost_siblings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_siblings_serialize( - boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _param = self._boost_get_connected_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5371,10 +7967,11 @@ def boost_get_boost_siblings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5389,9 +7986,10 @@ def boost_get_boost_siblings_with_http_info( @validate_call - def boost_get_boost_siblings_without_preload_content( + def boost_get_connected_boost_recipient_count_without_preload_content( self, - boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest, + uri: StrictStr, + include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5405,12 +8003,14 @@ def boost_get_boost_siblings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost siblings + """Get boost recipients count - This endpoint gets the siblings of a particular boost + This endpoint counts the recipients of a particular boost - :param boost_get_boost_siblings_request: (required) - :type boost_get_boost_siblings_request: BoostGetBoostSiblingsRequest + :param uri: (required) + :type uri: str + :param include_unaccepted_boosts: + :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5433,8 +8033,9 @@ def boost_get_boost_siblings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_boost_siblings_serialize( - boost_get_boost_siblings_request=boost_get_boost_siblings_request, + _param = self._boost_get_connected_boost_recipient_count_serialize( + uri=uri, + include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5442,10 +8043,11 @@ def boost_get_boost_siblings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "float", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -5455,9 +8057,10 @@ def boost_get_boost_siblings_without_preload_content( return response_data.response - def _boost_get_boost_siblings_serialize( + def _boost_get_connected_boost_recipient_count_serialize( self, - boost_get_boost_siblings_request, + uri, + include_unaccepted_boosts, _request_auth, _content_type, _headers, @@ -5479,12 +8082,16 @@ def _boost_get_boost_siblings_serialize( _body_params: Optional[bytes] = None # process the path parameters + if uri is not None: + _path_params['uri'] = uri # process the query parameters + if include_unaccepted_boosts is not None: + + _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) + # process the header parameters # process the form parameters # process the body parameter - if boost_get_boost_siblings_request is not None: - _body_params = boost_get_boost_siblings_request # set the HTTP header `Accept` @@ -5495,19 +8102,6 @@ def _boost_get_boost_siblings_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5515,8 +8109,8 @@ def _boost_get_boost_siblings_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/boost/siblings', + method='GET', + resource_path='/boost/recipients/connected/{uri}/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5533,9 +8127,10 @@ def _boost_get_boost_siblings_serialize( @validate_call - def boost_get_boosts( + def boost_get_connected_boost_recipients( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + uri: Optional[StrictStr], + boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5548,13 +8143,15 @@ def boost_get_boosts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoosts200ResponseInner]: - """(Deprecated) Get boosts + ) -> BoostGetPaginatedBoostRecipients200Response: + """Get connected boost recipients - This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + This endpoint gets the recipients of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param uri: (required) + :type uri: str + :param boost_get_connected_boost_recipients_request: (required) + :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5576,10 +8173,10 @@ def boost_get_boosts( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) - _param = self._boost_get_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_get_connected_boost_recipients_serialize( + uri=uri, + boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5587,7 +8184,7 @@ def boost_get_boosts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoosts200ResponseInner]", + '200': "BoostGetPaginatedBoostRecipients200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -5605,9 +8202,10 @@ def boost_get_boosts( @validate_call - def boost_get_boosts_with_http_info( + def boost_get_connected_boost_recipients_with_http_info( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + uri: Optional[StrictStr], + boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5620,13 +8218,15 @@ def boost_get_boosts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoosts200ResponseInner]]: - """(Deprecated) Get boosts + ) -> ApiResponse[BoostGetPaginatedBoostRecipients200Response]: + """Get connected boost recipients - This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + This endpoint gets the recipients of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param uri: (required) + :type uri: str + :param boost_get_connected_boost_recipients_request: (required) + :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5648,10 +8248,10 @@ def boost_get_boosts_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) - _param = self._boost_get_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_get_connected_boost_recipients_serialize( + uri=uri, + boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5659,7 +8259,7 @@ def boost_get_boosts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoosts200ResponseInner]", + '200': "BoostGetPaginatedBoostRecipients200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -5677,9 +8277,10 @@ def boost_get_boosts_with_http_info( @validate_call - def boost_get_boosts_without_preload_content( + def boost_get_connected_boost_recipients_without_preload_content( self, - boost_get_boosts_request: Optional[BoostGetBoostsRequest] = None, + uri: Optional[StrictStr], + boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5693,12 +8294,14 @@ def boost_get_boosts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) Get boosts + """Get connected boost recipients - This endpoint gets the current user's boosts. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 boosts. Please use getPaginatedBoosts instead + This endpoint gets the recipients of a particular boost - :param boost_get_boosts_request: - :type boost_get_boosts_request: BoostGetBoostsRequest + :param uri: (required) + :type uri: str + :param boost_get_connected_boost_recipients_request: (required) + :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5720,10 +8323,10 @@ def boost_get_boosts_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("POST /boost/all is deprecated.", DeprecationWarning) - _param = self._boost_get_boosts_serialize( - boost_get_boosts_request=boost_get_boosts_request, + _param = self._boost_get_connected_boost_recipients_serialize( + uri=uri, + boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5731,7 +8334,7 @@ def boost_get_boosts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoosts200ResponseInner]", + '200': "BoostGetPaginatedBoostRecipients200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -5744,9 +8347,10 @@ def boost_get_boosts_without_preload_content( return response_data.response - def _boost_get_boosts_serialize( + def _boost_get_connected_boost_recipients_serialize( self, - boost_get_boosts_request, + uri, + boost_get_connected_boost_recipients_request, _request_auth, _content_type, _headers, @@ -5768,12 +8372,14 @@ def _boost_get_boosts_serialize( _body_params: Optional[bytes] = None # process the path parameters + if uri is not None: + _path_params['uri'] = uri # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if boost_get_boosts_request is not None: - _body_params = boost_get_boosts_request + if boost_get_connected_boost_recipients_request is not None: + _body_params = boost_get_connected_boost_recipients_request # set the HTTP header `Accept` @@ -5805,7 +8411,7 @@ def _boost_get_boosts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/all', + resource_path='/boost/recipients/connected/{uri}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5822,9 +8428,9 @@ def _boost_get_boosts_serialize( @validate_call - def boost_get_children_profile_managers( + def boost_get_familial_boosts( self, - boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5837,13 +8443,13 @@ def boost_get_children_profile_managers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetChildrenProfileManagers200Response: - """Get Profile Managers that are a child of a boost + ) -> BoostGetPaginatedBoosts200Response: + """Get familial boosts - Get Profile Managers that are a child of a boost + This endpoint gets the parents, children, and siblings of a particular boost - :param boost_get_children_profile_managers_request: (required) - :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param boost_get_familial_boosts_request: (required) + :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5866,8 +8472,8 @@ def boost_get_children_profile_managers( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_children_profile_managers_serialize( - boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _param = self._boost_get_familial_boosts_serialize( + boost_get_familial_boosts_request=boost_get_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5875,7 +8481,7 @@ def boost_get_children_profile_managers( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200Response", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -5893,9 +8499,9 @@ def boost_get_children_profile_managers( @validate_call - def boost_get_children_profile_managers_with_http_info( + def boost_get_familial_boosts_with_http_info( self, - boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5908,13 +8514,13 @@ def boost_get_children_profile_managers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetChildrenProfileManagers200Response]: - """Get Profile Managers that are a child of a boost + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get familial boosts - Get Profile Managers that are a child of a boost + This endpoint gets the parents, children, and siblings of a particular boost - :param boost_get_children_profile_managers_request: (required) - :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param boost_get_familial_boosts_request: (required) + :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5937,8 +8543,8 @@ def boost_get_children_profile_managers_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_children_profile_managers_serialize( - boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _param = self._boost_get_familial_boosts_serialize( + boost_get_familial_boosts_request=boost_get_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5946,7 +8552,7 @@ def boost_get_children_profile_managers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200Response", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -5964,9 +8570,9 @@ def boost_get_children_profile_managers_with_http_info( @validate_call - def boost_get_children_profile_managers_without_preload_content( + def boost_get_familial_boosts_without_preload_content( self, - boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest, + boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5980,12 +8586,12 @@ def boost_get_children_profile_managers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Profile Managers that are a child of a boost + """Get familial boosts - Get Profile Managers that are a child of a boost + This endpoint gets the parents, children, and siblings of a particular boost - :param boost_get_children_profile_managers_request: (required) - :type boost_get_children_profile_managers_request: BoostGetChildrenProfileManagersRequest + :param boost_get_familial_boosts_request: (required) + :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6008,8 +8614,8 @@ def boost_get_children_profile_managers_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_children_profile_managers_serialize( - boost_get_children_profile_managers_request=boost_get_children_profile_managers_request, + _param = self._boost_get_familial_boosts_serialize( + boost_get_familial_boosts_request=boost_get_familial_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6017,7 +8623,7 @@ def boost_get_children_profile_managers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200Response", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6030,9 +8636,9 @@ def boost_get_children_profile_managers_without_preload_content( return response_data.response - def _boost_get_children_profile_managers_serialize( + def _boost_get_familial_boosts_serialize( self, - boost_get_children_profile_managers_request, + boost_get_familial_boosts_request, _request_auth, _content_type, _headers, @@ -6058,8 +8664,8 @@ def _boost_get_children_profile_managers_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_children_profile_managers_request is not None: - _body_params = boost_get_children_profile_managers_request + if boost_get_familial_boosts_request is not None: + _body_params = boost_get_familial_boosts_request # set the HTTP header `Accept` @@ -6091,7 +8697,7 @@ def _boost_get_children_profile_managers_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/children-profile-managers', + resource_path='/boost/family', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6108,10 +8714,10 @@ def _boost_get_children_profile_managers_serialize( @validate_call - def boost_get_connected_boost_recipient_count( + def boost_get_other_boost_permissions( self, + profile_id: StrictStr, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6124,15 +8730,15 @@ def boost_get_connected_boost_recipient_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> float: - """Get boost recipients count + ) -> BoostGetBoost200ResponseClaimPermissions: + """Get boost permissions for someone else - This endpoint counts the recipients of a particular boost + This endpoint gets permission metadata about a boost for someone else + :param profile_id: (required) + :type profile_id: str :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6155,9 +8761,9 @@ def boost_get_connected_boost_recipient_count( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipient_count_serialize( + _param = self._boost_get_other_boost_permissions_serialize( + profile_id=profile_id, uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6165,7 +8771,7 @@ def boost_get_connected_boost_recipient_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "BoostGetBoost200ResponseClaimPermissions", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6184,10 +8790,10 @@ def boost_get_connected_boost_recipient_count( @validate_call - def boost_get_connected_boost_recipient_count_with_http_info( + def boost_get_other_boost_permissions_with_http_info( self, + profile_id: StrictStr, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6200,15 +8806,15 @@ def boost_get_connected_boost_recipient_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[float]: - """Get boost recipients count + ) -> ApiResponse[BoostGetBoost200ResponseClaimPermissions]: + """Get boost permissions for someone else - This endpoint counts the recipients of a particular boost + This endpoint gets permission metadata about a boost for someone else + :param profile_id: (required) + :type profile_id: str :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6231,9 +8837,9 @@ def boost_get_connected_boost_recipient_count_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipient_count_serialize( + _param = self._boost_get_other_boost_permissions_serialize( + profile_id=profile_id, uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6241,7 +8847,7 @@ def boost_get_connected_boost_recipient_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "BoostGetBoost200ResponseClaimPermissions", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6260,10 +8866,10 @@ def boost_get_connected_boost_recipient_count_with_http_info( @validate_call - def boost_get_connected_boost_recipient_count_without_preload_content( + def boost_get_other_boost_permissions_without_preload_content( self, + profile_id: StrictStr, uri: StrictStr, - include_unaccepted_boosts: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6277,14 +8883,14 @@ def boost_get_connected_boost_recipient_count_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost recipients count + """Get boost permissions for someone else - This endpoint counts the recipients of a particular boost + This endpoint gets permission metadata about a boost for someone else + :param profile_id: (required) + :type profile_id: str :param uri: (required) :type uri: str - :param include_unaccepted_boosts: - :type include_unaccepted_boosts: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6307,9 +8913,9 @@ def boost_get_connected_boost_recipient_count_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipient_count_serialize( + _param = self._boost_get_other_boost_permissions_serialize( + profile_id=profile_id, uri=uri, - include_unaccepted_boosts=include_unaccepted_boosts, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6317,7 +8923,7 @@ def boost_get_connected_boost_recipient_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "float", + '200': "BoostGetBoost200ResponseClaimPermissions", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6331,10 +8937,10 @@ def boost_get_connected_boost_recipient_count_without_preload_content( return response_data.response - def _boost_get_connected_boost_recipient_count_serialize( + def _boost_get_other_boost_permissions_serialize( self, + profile_id, uri, - include_unaccepted_boosts, _request_auth, _content_type, _headers, @@ -6356,12 +8962,12 @@ def _boost_get_connected_boost_recipient_count_serialize( _body_params: Optional[bytes] = None # process the path parameters - if uri is not None: - _path_params['uri'] = uri + if profile_id is not None: + _path_params['profileId'] = profile_id # process the query parameters - if include_unaccepted_boosts is not None: + if uri is not None: - _query_params.append(('includeUnacceptedBoosts', include_unaccepted_boosts)) + _query_params.append(('uri', uri)) # process the header parameters # process the form parameters @@ -6384,7 +8990,7 @@ def _boost_get_connected_boost_recipient_count_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/boost/recipients/connected/{uri}/count', + resource_path='/boost/permissions/{profileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6401,10 +9007,9 @@ def _boost_get_connected_boost_recipient_count_serialize( @validate_call - def boost_get_connected_boost_recipients( + def boost_get_paginated_boost_recipients( self, - uri: StrictStr, - boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, + boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6418,14 +9023,12 @@ def boost_get_connected_boost_recipients( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BoostGetPaginatedBoostRecipients200Response: - """Get connected boost recipients + """Get boost recipients This endpoint gets the recipients of a particular boost - :param uri: (required) - :type uri: str - :param boost_get_connected_boost_recipients_request: (required) - :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest + :param boost_get_paginated_boost_recipients_request: (required) + :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6448,9 +9051,8 @@ def boost_get_connected_boost_recipients( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipients_serialize( - uri=uri, - boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, + _param = self._boost_get_paginated_boost_recipients_serialize( + boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6476,10 +9078,9 @@ def boost_get_connected_boost_recipients( @validate_call - def boost_get_connected_boost_recipients_with_http_info( + def boost_get_paginated_boost_recipients_with_http_info( self, - uri: StrictStr, - boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, + boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6493,14 +9094,12 @@ def boost_get_connected_boost_recipients_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[BoostGetPaginatedBoostRecipients200Response]: - """Get connected boost recipients + """Get boost recipients This endpoint gets the recipients of a particular boost - :param uri: (required) - :type uri: str - :param boost_get_connected_boost_recipients_request: (required) - :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest + :param boost_get_paginated_boost_recipients_request: (required) + :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6523,9 +9122,8 @@ def boost_get_connected_boost_recipients_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipients_serialize( - uri=uri, - boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, + _param = self._boost_get_paginated_boost_recipients_serialize( + boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6551,10 +9149,9 @@ def boost_get_connected_boost_recipients_with_http_info( @validate_call - def boost_get_connected_boost_recipients_without_preload_content( + def boost_get_paginated_boost_recipients_without_preload_content( self, - uri: StrictStr, - boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest, + boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6568,14 +9165,12 @@ def boost_get_connected_boost_recipients_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get connected boost recipients + """Get boost recipients This endpoint gets the recipients of a particular boost - :param uri: (required) - :type uri: str - :param boost_get_connected_boost_recipients_request: (required) - :type boost_get_connected_boost_recipients_request: BoostGetConnectedBoostRecipientsRequest + :param boost_get_paginated_boost_recipients_request: (required) + :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6598,9 +9193,8 @@ def boost_get_connected_boost_recipients_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_connected_boost_recipients_serialize( - uri=uri, - boost_get_connected_boost_recipients_request=boost_get_connected_boost_recipients_request, + _param = self._boost_get_paginated_boost_recipients_serialize( + boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6621,10 +9215,9 @@ def boost_get_connected_boost_recipients_without_preload_content( return response_data.response - def _boost_get_connected_boost_recipients_serialize( + def _boost_get_paginated_boost_recipients_serialize( self, - uri, - boost_get_connected_boost_recipients_request, + boost_get_paginated_boost_recipients_request, _request_auth, _content_type, _headers, @@ -6646,14 +9239,12 @@ def _boost_get_connected_boost_recipients_serialize( _body_params: Optional[bytes] = None # process the path parameters - if uri is not None: - _path_params['uri'] = uri # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if boost_get_connected_boost_recipients_request is not None: - _body_params = boost_get_connected_boost_recipients_request + if boost_get_paginated_boost_recipients_request is not None: + _body_params = boost_get_paginated_boost_recipients_request # set the HTTP header `Accept` @@ -6685,7 +9276,7 @@ def _boost_get_connected_boost_recipients_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/recipients/connected/{uri}', + resource_path='/boost/recipients/paginated', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6702,9 +9293,9 @@ def _boost_get_connected_boost_recipients_serialize( @validate_call - def boost_get_familial_boosts( + def boost_get_paginated_boost_recipients_with_children( self, - boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, + boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6717,13 +9308,13 @@ def boost_get_familial_boosts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoosts200Response: - """Get familial boosts + ) -> BoostGetPaginatedBoostRecipientsWithChildren200Response: + """Get boost recipients with children - This endpoint gets the parents, children, and siblings of a particular boost + This endpoint gets the recipients of a boost and all its children boosts - :param boost_get_familial_boosts_request: (required) - :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest + :param boost_get_paginated_boost_recipients_with_children_request: (required) + :type boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6746,8 +9337,8 @@ def boost_get_familial_boosts( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_familial_boosts_serialize( - boost_get_familial_boosts_request=boost_get_familial_boosts_request, + _param = self._boost_get_paginated_boost_recipients_with_children_serialize( + boost_get_paginated_boost_recipients_with_children_request=boost_get_paginated_boost_recipients_with_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6755,7 +9346,7 @@ def boost_get_familial_boosts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetPaginatedBoostRecipientsWithChildren200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6773,9 +9364,9 @@ def boost_get_familial_boosts( @validate_call - def boost_get_familial_boosts_with_http_info( + def boost_get_paginated_boost_recipients_with_children_with_http_info( self, - boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, + boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6788,13 +9379,13 @@ def boost_get_familial_boosts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: - """Get familial boosts + ) -> ApiResponse[BoostGetPaginatedBoostRecipientsWithChildren200Response]: + """Get boost recipients with children - This endpoint gets the parents, children, and siblings of a particular boost + This endpoint gets the recipients of a boost and all its children boosts - :param boost_get_familial_boosts_request: (required) - :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest + :param boost_get_paginated_boost_recipients_with_children_request: (required) + :type boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6817,8 +9408,8 @@ def boost_get_familial_boosts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_familial_boosts_serialize( - boost_get_familial_boosts_request=boost_get_familial_boosts_request, + _param = self._boost_get_paginated_boost_recipients_with_children_serialize( + boost_get_paginated_boost_recipients_with_children_request=boost_get_paginated_boost_recipients_with_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6826,7 +9417,7 @@ def boost_get_familial_boosts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetPaginatedBoostRecipientsWithChildren200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6844,9 +9435,9 @@ def boost_get_familial_boosts_with_http_info( @validate_call - def boost_get_familial_boosts_without_preload_content( + def boost_get_paginated_boost_recipients_with_children_without_preload_content( self, - boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest, + boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6860,12 +9451,12 @@ def boost_get_familial_boosts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get familial boosts + """Get boost recipients with children - This endpoint gets the parents, children, and siblings of a particular boost + This endpoint gets the recipients of a boost and all its children boosts - :param boost_get_familial_boosts_request: (required) - :type boost_get_familial_boosts_request: BoostGetFamilialBoostsRequest + :param boost_get_paginated_boost_recipients_with_children_request: (required) + :type boost_get_paginated_boost_recipients_with_children_request: BoostGetPaginatedBoostRecipientsWithChildrenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6888,8 +9479,8 @@ def boost_get_familial_boosts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_familial_boosts_serialize( - boost_get_familial_boosts_request=boost_get_familial_boosts_request, + _param = self._boost_get_paginated_boost_recipients_with_children_serialize( + boost_get_paginated_boost_recipients_with_children_request=boost_get_paginated_boost_recipients_with_children_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6897,7 +9488,7 @@ def boost_get_familial_boosts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "BoostGetPaginatedBoostRecipientsWithChildren200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -6910,9 +9501,9 @@ def boost_get_familial_boosts_without_preload_content( return response_data.response - def _boost_get_familial_boosts_serialize( + def _boost_get_paginated_boost_recipients_with_children_serialize( self, - boost_get_familial_boosts_request, + boost_get_paginated_boost_recipients_with_children_request, _request_auth, _content_type, _headers, @@ -6938,8 +9529,8 @@ def _boost_get_familial_boosts_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_familial_boosts_request is not None: - _body_params = boost_get_familial_boosts_request + if boost_get_paginated_boost_recipients_with_children_request is not None: + _body_params = boost_get_paginated_boost_recipients_with_children_request # set the HTTP header `Accept` @@ -6971,7 +9562,7 @@ def _boost_get_familial_boosts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/family', + resource_path='/boost/recipients-with-children/paginated', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6988,10 +9579,9 @@ def _boost_get_familial_boosts_serialize( @validate_call - def boost_get_other_boost_permissions( + def boost_get_paginated_boosts( self, - profile_id: StrictStr, - uri: StrictStr, + boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7004,15 +9594,13 @@ def boost_get_other_boost_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoost200ResponseClaimPermissions: - """Get boost permissions for someone else + ) -> BoostGetPaginatedBoosts200Response: + """Get boosts - This endpoint gets permission metadata about a boost for someone else + This endpoint gets the current user's boosts - :param profile_id: (required) - :type profile_id: str - :param uri: (required) - :type uri: str + :param boost_get_paginated_boosts_request: + :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7035,9 +9623,8 @@ def boost_get_other_boost_permissions( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_other_boost_permissions_serialize( - profile_id=profile_id, - uri=uri, + _param = self._boost_get_paginated_boosts_serialize( + boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7045,11 +9632,10 @@ def boost_get_other_boost_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7064,10 +9650,9 @@ def boost_get_other_boost_permissions( @validate_call - def boost_get_other_boost_permissions_with_http_info( + def boost_get_paginated_boosts_with_http_info( self, - profile_id: StrictStr, - uri: StrictStr, + boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7080,15 +9665,13 @@ def boost_get_other_boost_permissions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoost200ResponseClaimPermissions]: - """Get boost permissions for someone else + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get boosts - This endpoint gets permission metadata about a boost for someone else + This endpoint gets the current user's boosts - :param profile_id: (required) - :type profile_id: str - :param uri: (required) - :type uri: str + :param boost_get_paginated_boosts_request: + :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7111,9 +9694,8 @@ def boost_get_other_boost_permissions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_other_boost_permissions_serialize( - profile_id=profile_id, - uri=uri, + _param = self._boost_get_paginated_boosts_serialize( + boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7121,11 +9703,10 @@ def boost_get_other_boost_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7140,10 +9721,9 @@ def boost_get_other_boost_permissions_with_http_info( @validate_call - def boost_get_other_boost_permissions_without_preload_content( + def boost_get_paginated_boosts_without_preload_content( self, - profile_id: StrictStr, - uri: StrictStr, + boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7157,14 +9737,12 @@ def boost_get_other_boost_permissions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost permissions for someone else + """Get boosts - This endpoint gets permission metadata about a boost for someone else + This endpoint gets the current user's boosts - :param profile_id: (required) - :type profile_id: str - :param uri: (required) - :type uri: str + :param boost_get_paginated_boosts_request: + :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7187,9 +9765,8 @@ def boost_get_other_boost_permissions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_other_boost_permissions_serialize( - profile_id=profile_id, - uri=uri, + _param = self._boost_get_paginated_boosts_serialize( + boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7197,11 +9774,10 @@ def boost_get_other_boost_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoost200ResponseClaimPermissions", + '200': "BoostGetPaginatedBoosts200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7211,10 +9787,9 @@ def boost_get_other_boost_permissions_without_preload_content( return response_data.response - def _boost_get_other_boost_permissions_serialize( + def _boost_get_paginated_boosts_serialize( self, - profile_id, - uri, + boost_get_paginated_boosts_request, _request_auth, _content_type, _headers, @@ -7236,16 +9811,12 @@ def _boost_get_other_boost_permissions_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - # process the header parameters # process the form parameters # process the body parameter + if boost_get_paginated_boosts_request is not None: + _body_params = boost_get_paginated_boosts_request # set the HTTP header `Accept` @@ -7256,6 +9827,19 @@ def _boost_get_other_boost_permissions_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7263,8 +9847,8 @@ def _boost_get_other_boost_permissions_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/boost/permissions/{profileId}', + method='POST', + resource_path='/boost/paginated', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7281,9 +9865,9 @@ def _boost_get_other_boost_permissions_serialize( @validate_call - def boost_get_paginated_boost_recipients( + def boost_get_skills_available_for_boost( self, - boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7296,13 +9880,13 @@ def boost_get_paginated_boost_recipients( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoostRecipients200Response: - """Get boost recipients + ) -> List[BoostGetSkillsAvailableForBoost200ResponseInner]: + """List available skills for a boost - This endpoint gets the recipients of a particular boost + Returns skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_get_paginated_boost_recipients_request: (required) - :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7325,8 +9909,8 @@ def boost_get_paginated_boost_recipients( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boost_recipients_serialize( - boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, + _param = self._boost_get_skills_available_for_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7334,10 +9918,11 @@ def boost_get_paginated_boost_recipients( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoostRecipients200Response", + '200': "List[BoostGetSkillsAvailableForBoost200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7352,9 +9937,9 @@ def boost_get_paginated_boost_recipients( @validate_call - def boost_get_paginated_boost_recipients_with_http_info( + def boost_get_skills_available_for_boost_with_http_info( self, - boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7366,14 +9951,14 @@ def boost_get_paginated_boost_recipients_with_http_info( _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoostRecipients200Response]: - """Get boost recipients + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetSkillsAvailableForBoost200ResponseInner]]: + """List available skills for a boost - This endpoint gets the recipients of a particular boost + Returns skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_get_paginated_boost_recipients_request: (required) - :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7396,8 +9981,8 @@ def boost_get_paginated_boost_recipients_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boost_recipients_serialize( - boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, + _param = self._boost_get_skills_available_for_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7405,10 +9990,11 @@ def boost_get_paginated_boost_recipients_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoostRecipients200Response", + '200': "List[BoostGetSkillsAvailableForBoost200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7423,9 +10009,9 @@ def boost_get_paginated_boost_recipients_with_http_info( @validate_call - def boost_get_paginated_boost_recipients_without_preload_content( + def boost_get_skills_available_for_boost_without_preload_content( self, - boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7439,12 +10025,12 @@ def boost_get_paginated_boost_recipients_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boost recipients + """List available skills for a boost - This endpoint gets the recipients of a particular boost + Returns skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_get_paginated_boost_recipients_request: (required) - :type boost_get_paginated_boost_recipients_request: BoostGetPaginatedBoostRecipientsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7467,8 +10053,8 @@ def boost_get_paginated_boost_recipients_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boost_recipients_serialize( - boost_get_paginated_boost_recipients_request=boost_get_paginated_boost_recipients_request, + _param = self._boost_get_skills_available_for_boost_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7476,10 +10062,11 @@ def boost_get_paginated_boost_recipients_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoostRecipients200Response", + '200': "List[BoostGetSkillsAvailableForBoost200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -7489,9 +10076,9 @@ def boost_get_paginated_boost_recipients_without_preload_content( return response_data.response - def _boost_get_paginated_boost_recipients_serialize( + def _boost_get_skills_available_for_boost_serialize( self, - boost_get_paginated_boost_recipients_request, + uri, _request_auth, _content_type, _headers, @@ -7514,11 +10101,13 @@ def _boost_get_paginated_boost_recipients_serialize( # process the path parameters # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + # process the header parameters # process the form parameters # process the body parameter - if boost_get_paginated_boost_recipients_request is not None: - _body_params = boost_get_paginated_boost_recipients_request # set the HTTP header `Accept` @@ -7529,19 +10118,6 @@ def _boost_get_paginated_boost_recipients_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7549,8 +10125,8 @@ def _boost_get_paginated_boost_recipients_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/boost/recipients/paginated', + method='GET', + resource_path='/boost/skills/available', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7567,9 +10143,9 @@ def _boost_get_paginated_boost_recipients_serialize( @validate_call - def boost_get_paginated_boosts( + def boost_make_boost_parent( self, - boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, + boost_make_boost_parent_request: BoostMakeBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7582,13 +10158,13 @@ def boost_get_paginated_boosts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetPaginatedBoosts200Response: - """Get boosts + ) -> bool: + """Make Boost Parent - This endpoint gets the current user's boosts + This endpoint creates a parent/child relationship between two boosts - :param boost_get_paginated_boosts_request: - :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest + :param boost_make_boost_parent_request: (required) + :type boost_make_boost_parent_request: BoostMakeBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7611,8 +10187,8 @@ def boost_get_paginated_boosts( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boosts_serialize( - boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, + _param = self._boost_make_boost_parent_serialize( + boost_make_boost_parent_request=boost_make_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7620,7 +10196,7 @@ def boost_get_paginated_boosts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -7638,9 +10214,9 @@ def boost_get_paginated_boosts( @validate_call - def boost_get_paginated_boosts_with_http_info( + def boost_make_boost_parent_with_http_info( self, - boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, + boost_make_boost_parent_request: BoostMakeBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7653,13 +10229,13 @@ def boost_get_paginated_boosts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: - """Get boosts + ) -> ApiResponse[bool]: + """Make Boost Parent - This endpoint gets the current user's boosts + This endpoint creates a parent/child relationship between two boosts - :param boost_get_paginated_boosts_request: - :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest + :param boost_make_boost_parent_request: (required) + :type boost_make_boost_parent_request: BoostMakeBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7682,8 +10258,8 @@ def boost_get_paginated_boosts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boosts_serialize( - boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, + _param = self._boost_make_boost_parent_serialize( + boost_make_boost_parent_request=boost_make_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7691,7 +10267,7 @@ def boost_get_paginated_boosts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -7709,9 +10285,9 @@ def boost_get_paginated_boosts_with_http_info( @validate_call - def boost_get_paginated_boosts_without_preload_content( + def boost_make_boost_parent_without_preload_content( self, - boost_get_paginated_boosts_request: Optional[BoostGetPaginatedBoostsRequest] = None, + boost_make_boost_parent_request: BoostMakeBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7725,12 +10301,12 @@ def boost_get_paginated_boosts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get boosts + """Make Boost Parent - This endpoint gets the current user's boosts + This endpoint creates a parent/child relationship between two boosts - :param boost_get_paginated_boosts_request: - :type boost_get_paginated_boosts_request: BoostGetPaginatedBoostsRequest + :param boost_make_boost_parent_request: (required) + :type boost_make_boost_parent_request: BoostMakeBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7753,8 +10329,8 @@ def boost_get_paginated_boosts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_get_paginated_boosts_serialize( - boost_get_paginated_boosts_request=boost_get_paginated_boosts_request, + _param = self._boost_make_boost_parent_serialize( + boost_make_boost_parent_request=boost_make_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7762,7 +10338,7 @@ def boost_get_paginated_boosts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetPaginatedBoosts200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -7775,9 +10351,9 @@ def boost_get_paginated_boosts_without_preload_content( return response_data.response - def _boost_get_paginated_boosts_serialize( + def _boost_make_boost_parent_serialize( self, - boost_get_paginated_boosts_request, + boost_make_boost_parent_request, _request_auth, _content_type, _headers, @@ -7803,8 +10379,8 @@ def _boost_get_paginated_boosts_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_get_paginated_boosts_request is not None: - _body_params = boost_get_paginated_boosts_request + if boost_make_boost_parent_request is not None: + _body_params = boost_make_boost_parent_request # set the HTTP header `Accept` @@ -7836,7 +10412,7 @@ def _boost_get_paginated_boosts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/paginated', + resource_path='/boost/make-parent', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7853,9 +10429,9 @@ def _boost_get_paginated_boosts_serialize( @validate_call - def boost_make_boost_parent( + def boost_remove_boost_admin( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7869,12 +10445,12 @@ def boost_make_boost_parent( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: - """Make Boost Parent + """Remove a Boost admin - This endpoint creates a parent/child relationship between two boosts + This route removes an admin from a boost - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_remove_boost_admin_request: (required) + :type boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7897,8 +10473,8 @@ def boost_make_boost_parent( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_make_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_remove_boost_admin_serialize( + boost_remove_boost_admin_request=boost_remove_boost_admin_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7924,9 +10500,9 @@ def boost_make_boost_parent( @validate_call - def boost_make_boost_parent_with_http_info( + def boost_remove_boost_admin_with_http_info( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7940,12 +10516,12 @@ def boost_make_boost_parent_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: - """Make Boost Parent + """Remove a Boost admin - This endpoint creates a parent/child relationship between two boosts + This route removes an admin from a boost - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_remove_boost_admin_request: (required) + :type boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7968,8 +10544,8 @@ def boost_make_boost_parent_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_make_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_remove_boost_admin_serialize( + boost_remove_boost_admin_request=boost_remove_boost_admin_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7995,9 +10571,9 @@ def boost_make_boost_parent_with_http_info( @validate_call - def boost_make_boost_parent_without_preload_content( + def boost_remove_boost_admin_without_preload_content( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8011,12 +10587,12 @@ def boost_make_boost_parent_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Make Boost Parent + """Remove a Boost admin - This endpoint creates a parent/child relationship between two boosts + This route removes an admin from a boost - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_remove_boost_admin_request: (required) + :type boost_remove_boost_admin_request: BoostRemoveBoostAdminRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8039,8 +10615,8 @@ def boost_make_boost_parent_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_make_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_remove_boost_admin_serialize( + boost_remove_boost_admin_request=boost_remove_boost_admin_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8061,9 +10637,9 @@ def boost_make_boost_parent_without_preload_content( return response_data.response - def _boost_make_boost_parent_serialize( + def _boost_remove_boost_admin_serialize( self, - boost_make_boost_parent_request, + boost_remove_boost_admin_request, _request_auth, _content_type, _headers, @@ -8089,8 +10665,8 @@ def _boost_make_boost_parent_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_make_boost_parent_request is not None: - _body_params = boost_make_boost_parent_request + if boost_remove_boost_admin_request is not None: + _body_params = boost_remove_boost_admin_request # set the HTTP header `Accept` @@ -8122,7 +10698,7 @@ def _boost_make_boost_parent_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/make-parent', + resource_path='/boost/remove-admin', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8139,9 +10715,9 @@ def _boost_make_boost_parent_serialize( @validate_call - def boost_remove_boost_admin( + def boost_remove_boost_parent( self, - boost_add_boost_admin_request: BoostAddBoostAdminRequest, + boost_remove_boost_parent_request: BoostRemoveBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8155,12 +10731,12 @@ def boost_remove_boost_admin( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: - """Remove a Boost admin + """Remove Boost Parent - This route removes an admin from a boost + This endpoint removes a parent/child relationship between two boosts - :param boost_add_boost_admin_request: (required) - :type boost_add_boost_admin_request: BoostAddBoostAdminRequest + :param boost_remove_boost_parent_request: (required) + :type boost_remove_boost_parent_request: BoostRemoveBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8183,8 +10759,8 @@ def boost_remove_boost_admin( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_admin_serialize( - boost_add_boost_admin_request=boost_add_boost_admin_request, + _param = self._boost_remove_boost_parent_serialize( + boost_remove_boost_parent_request=boost_remove_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8210,9 +10786,9 @@ def boost_remove_boost_admin( @validate_call - def boost_remove_boost_admin_with_http_info( + def boost_remove_boost_parent_with_http_info( self, - boost_add_boost_admin_request: BoostAddBoostAdminRequest, + boost_remove_boost_parent_request: BoostRemoveBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8226,12 +10802,12 @@ def boost_remove_boost_admin_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: - """Remove a Boost admin + """Remove Boost Parent - This route removes an admin from a boost + This endpoint removes a parent/child relationship between two boosts - :param boost_add_boost_admin_request: (required) - :type boost_add_boost_admin_request: BoostAddBoostAdminRequest + :param boost_remove_boost_parent_request: (required) + :type boost_remove_boost_parent_request: BoostRemoveBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8254,8 +10830,8 @@ def boost_remove_boost_admin_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_admin_serialize( - boost_add_boost_admin_request=boost_add_boost_admin_request, + _param = self._boost_remove_boost_parent_serialize( + boost_remove_boost_parent_request=boost_remove_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8281,9 +10857,9 @@ def boost_remove_boost_admin_with_http_info( @validate_call - def boost_remove_boost_admin_without_preload_content( + def boost_remove_boost_parent_without_preload_content( self, - boost_add_boost_admin_request: BoostAddBoostAdminRequest, + boost_remove_boost_parent_request: BoostRemoveBoostParentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8297,12 +10873,12 @@ def boost_remove_boost_admin_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Remove a Boost admin + """Remove Boost Parent - This route removes an admin from a boost + This endpoint removes a parent/child relationship between two boosts - :param boost_add_boost_admin_request: (required) - :type boost_add_boost_admin_request: BoostAddBoostAdminRequest + :param boost_remove_boost_parent_request: (required) + :type boost_remove_boost_parent_request: BoostRemoveBoostParentRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8325,8 +10901,8 @@ def boost_remove_boost_admin_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_admin_serialize( - boost_add_boost_admin_request=boost_add_boost_admin_request, + _param = self._boost_remove_boost_parent_serialize( + boost_remove_boost_parent_request=boost_remove_boost_parent_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8347,9 +10923,9 @@ def boost_remove_boost_admin_without_preload_content( return response_data.response - def _boost_remove_boost_admin_serialize( + def _boost_remove_boost_parent_serialize( self, - boost_add_boost_admin_request, + boost_remove_boost_parent_request, _request_auth, _content_type, _headers, @@ -8375,8 +10951,8 @@ def _boost_remove_boost_admin_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_add_boost_admin_request is not None: - _body_params = boost_add_boost_admin_request + if boost_remove_boost_parent_request is not None: + _body_params = boost_remove_boost_parent_request # set the HTTP header `Accept` @@ -8408,7 +10984,7 @@ def _boost_remove_boost_admin_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/remove-admin', + resource_path='/boost/remove-parent', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8425,9 +11001,9 @@ def _boost_remove_boost_admin_serialize( @validate_call - def boost_remove_boost_parent( + def boost_search_skills_available_for_boost( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8440,13 +11016,13 @@ def boost_remove_boost_parent( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Remove Boost Parent + ) -> BoostSearchSkillsAvailableForBoost200Response: + """Search available skills for a boost - This endpoint removes a parent/child relationship between two boosts + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Searches skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_search_skills_available_for_boost_request: (required) + :type boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8469,8 +11045,8 @@ def boost_remove_boost_parent( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_search_skills_available_for_boost_serialize( + boost_search_skills_available_for_boost_request=boost_search_skills_available_for_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8478,7 +11054,7 @@ def boost_remove_boost_parent( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "BoostSearchSkillsAvailableForBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -8496,9 +11072,9 @@ def boost_remove_boost_parent( @validate_call - def boost_remove_boost_parent_with_http_info( + def boost_search_skills_available_for_boost_with_http_info( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8511,13 +11087,13 @@ def boost_remove_boost_parent_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Remove Boost Parent + ) -> ApiResponse[BoostSearchSkillsAvailableForBoost200Response]: + """Search available skills for a boost - This endpoint removes a parent/child relationship between two boosts + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Searches skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_search_skills_available_for_boost_request: (required) + :type boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8540,8 +11116,8 @@ def boost_remove_boost_parent_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_search_skills_available_for_boost_serialize( + boost_search_skills_available_for_boost_request=boost_search_skills_available_for_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8549,7 +11125,7 @@ def boost_remove_boost_parent_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "BoostSearchSkillsAvailableForBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -8567,9 +11143,9 @@ def boost_remove_boost_parent_with_http_info( @validate_call - def boost_remove_boost_parent_without_preload_content( + def boost_search_skills_available_for_boost_without_preload_content( self, - boost_make_boost_parent_request: BoostMakeBoostParentRequest, + boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8583,12 +11159,12 @@ def boost_remove_boost_parent_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Remove Boost Parent + """Search available skills for a boost - This endpoint removes a parent/child relationship between two boosts + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Searches skills from frameworks attached to the boost or any of its ancestors. Requires boost admin. - :param boost_make_boost_parent_request: (required) - :type boost_make_boost_parent_request: BoostMakeBoostParentRequest + :param boost_search_skills_available_for_boost_request: (required) + :type boost_search_skills_available_for_boost_request: BoostSearchSkillsAvailableForBoostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8611,8 +11187,8 @@ def boost_remove_boost_parent_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._boost_remove_boost_parent_serialize( - boost_make_boost_parent_request=boost_make_boost_parent_request, + _param = self._boost_search_skills_available_for_boost_serialize( + boost_search_skills_available_for_boost_request=boost_search_skills_available_for_boost_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8620,7 +11196,7 @@ def boost_remove_boost_parent_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "BoostSearchSkillsAvailableForBoost200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -8633,9 +11209,9 @@ def boost_remove_boost_parent_without_preload_content( return response_data.response - def _boost_remove_boost_parent_serialize( + def _boost_search_skills_available_for_boost_serialize( self, - boost_make_boost_parent_request, + boost_search_skills_available_for_boost_request, _request_auth, _content_type, _headers, @@ -8661,8 +11237,8 @@ def _boost_remove_boost_parent_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_make_boost_parent_request is not None: - _body_params = boost_make_boost_parent_request + if boost_search_skills_available_for_boost_request is not None: + _body_params = boost_search_skills_available_for_boost_request # set the HTTP header `Accept` @@ -8694,7 +11270,7 @@ def _boost_remove_boost_parent_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/boost/remove-parent', + resource_path='/boost/skills/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8713,7 +11289,7 @@ def _boost_remove_boost_parent_serialize( @validate_call def boost_send_boost( self, - profile_id: StrictStr, + profile_id: Optional[StrictStr], boost_send_boost_request: BoostSendBoostRequest, _request_timeout: Union[ None, @@ -8788,7 +11364,7 @@ def boost_send_boost( @validate_call def boost_send_boost_with_http_info( self, - profile_id: StrictStr, + profile_id: Optional[StrictStr], boost_send_boost_request: BoostSendBoostRequest, _request_timeout: Union[ None, @@ -8863,7 +11439,7 @@ def boost_send_boost_with_http_info( @validate_call def boost_send_boost_without_preload_content( self, - profile_id: StrictStr, + profile_id: Optional[StrictStr], boost_send_boost_request: BoostSendBoostRequest, _request_timeout: Union[ None, @@ -9888,7 +12464,7 @@ def _boost_update_boost_permissions_serialize( def boost_update_other_boost_permissions( self, profile_id: StrictStr, - boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest, + boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9908,8 +12484,8 @@ def boost_update_other_boost_permissions( :param profile_id: (required) :type profile_id: str - :param boost_update_boost_permissions_request: (required) - :type boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest + :param boost_update_other_boost_permissions_request: (required) + :type boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9934,7 +12510,7 @@ def boost_update_other_boost_permissions( _param = self._boost_update_other_boost_permissions_serialize( profile_id=profile_id, - boost_update_boost_permissions_request=boost_update_boost_permissions_request, + boost_update_other_boost_permissions_request=boost_update_other_boost_permissions_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9963,7 +12539,7 @@ def boost_update_other_boost_permissions( def boost_update_other_boost_permissions_with_http_info( self, profile_id: StrictStr, - boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest, + boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9983,8 +12559,8 @@ def boost_update_other_boost_permissions_with_http_info( :param profile_id: (required) :type profile_id: str - :param boost_update_boost_permissions_request: (required) - :type boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest + :param boost_update_other_boost_permissions_request: (required) + :type boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10009,7 +12585,7 @@ def boost_update_other_boost_permissions_with_http_info( _param = self._boost_update_other_boost_permissions_serialize( profile_id=profile_id, - boost_update_boost_permissions_request=boost_update_boost_permissions_request, + boost_update_other_boost_permissions_request=boost_update_other_boost_permissions_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10038,7 +12614,7 @@ def boost_update_other_boost_permissions_with_http_info( def boost_update_other_boost_permissions_without_preload_content( self, profile_id: StrictStr, - boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest, + boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10058,8 +12634,8 @@ def boost_update_other_boost_permissions_without_preload_content( :param profile_id: (required) :type profile_id: str - :param boost_update_boost_permissions_request: (required) - :type boost_update_boost_permissions_request: BoostUpdateBoostPermissionsRequest + :param boost_update_other_boost_permissions_request: (required) + :type boost_update_other_boost_permissions_request: BoostUpdateOtherBoostPermissionsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10084,7 +12660,7 @@ def boost_update_other_boost_permissions_without_preload_content( _param = self._boost_update_other_boost_permissions_serialize( profile_id=profile_id, - boost_update_boost_permissions_request=boost_update_boost_permissions_request, + boost_update_other_boost_permissions_request=boost_update_other_boost_permissions_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10108,7 +12684,7 @@ def boost_update_other_boost_permissions_without_preload_content( def _boost_update_other_boost_permissions_serialize( self, profile_id, - boost_update_boost_permissions_request, + boost_update_other_boost_permissions_request, _request_auth, _content_type, _headers, @@ -10136,8 +12712,8 @@ def _boost_update_other_boost_permissions_serialize( # process the header parameters # process the form parameters # process the body parameter - if boost_update_boost_permissions_request is not None: - _body_params = boost_update_boost_permissions_request + if boost_update_other_boost_permissions_request is not None: + _body_params = boost_update_other_boost_permissions_request # set the HTTP header `Accept` diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/contact_methods_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/contact_methods_api.py index 031d88f258..b0084eed23 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/contact_methods_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/contact_methods_api.py @@ -17,14 +17,18 @@ from typing_extensions import Annotated from typing import List -from openapi_client.models.claim_hook_delete_claim_hook_request import ClaimHookDeleteClaimHookRequest from openapi_client.models.contact_methods_add_contact_method200_response import ContactMethodsAddContactMethod200Response from openapi_client.models.contact_methods_add_contact_method_request import ContactMethodsAddContactMethodRequest +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner import ContactMethodsGetMyContactMethods200ResponseInner -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest from openapi_client.models.contact_methods_set_primary_contact_method_request import ContactMethodsSetPrimaryContactMethodRequest -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response from openapi_client.models.contact_methods_verify_contact_method_request import ContactMethodsVerifyContactMethodRequest +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest from openapi_client.api_client import ApiClient, RequestSerialized from openapi_client.api_response import ApiResponse @@ -330,6 +334,285 @@ def _contact_methods_add_contact_method_serialize( + @validate_call + def contact_methods_create_contact_method_session( + self, + contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContactMethodsCreateContactMethodSession200Response: + """Create Contact Method Session + + Creates a short-lived claim session for the specified contact method and returns a claim URL that can be used to claim pending inbox credentials. + + :param contact_methods_create_contact_method_session_request: (required) + :type contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_create_contact_method_session_serialize( + contact_methods_create_contact_method_session_request=contact_methods_create_contact_method_session_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsCreateContactMethodSession200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contact_methods_create_contact_method_session_with_http_info( + self, + contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContactMethodsCreateContactMethodSession200Response]: + """Create Contact Method Session + + Creates a short-lived claim session for the specified contact method and returns a claim URL that can be used to claim pending inbox credentials. + + :param contact_methods_create_contact_method_session_request: (required) + :type contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_create_contact_method_session_serialize( + contact_methods_create_contact_method_session_request=contact_methods_create_contact_method_session_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsCreateContactMethodSession200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contact_methods_create_contact_method_session_without_preload_content( + self, + contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Contact Method Session + + Creates a short-lived claim session for the specified contact method and returns a claim URL that can be used to claim pending inbox credentials. + + :param contact_methods_create_contact_method_session_request: (required) + :type contact_methods_create_contact_method_session_request: ContactMethodsCreateContactMethodSessionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_create_contact_method_session_serialize( + contact_methods_create_contact_method_session_request=contact_methods_create_contact_method_session_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsCreateContactMethodSession200Response", + '400': "ErrorBADREQUEST", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contact_methods_create_contact_method_session_serialize( + self, + contact_methods_create_contact_method_session_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contact_methods_create_contact_method_session_request is not None: + _body_params = contact_methods_create_contact_method_session_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/contact-methods/session', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def contact_methods_get_my_contact_methods( self, @@ -345,11 +628,555 @@ def contact_methods_get_my_contact_methods( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ContactMethodsGetMyContactMethods200ResponseInner]: - """Get My Contact Methods + ) -> List[ContactMethodsGetMyContactMethods200ResponseInner]: + """Get My Contact Methods + + Get all contact methods associated with the authenticated profile + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_get_my_contact_methods_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contact_methods_get_my_contact_methods_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ContactMethodsGetMyContactMethods200ResponseInner]]: + """Get My Contact Methods + + Get all contact methods associated with the authenticated profile + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_get_my_contact_methods_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contact_methods_get_my_contact_methods_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get My Contact Methods + + Get all contact methods associated with the authenticated profile + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_get_my_contact_methods_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contact_methods_get_my_contact_methods_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/profile/contact-methods', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contact_methods_remove_contact_method( + self, + contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContactMethodsSendChallenge200Response: + """Remove Contact Method + + Remove a contact method from the profile + + :param contact_methods_remove_contact_method_request: (required) + :type contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_remove_contact_method_serialize( + contact_methods_remove_contact_method_request=contact_methods_remove_contact_method_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contact_methods_remove_contact_method_with_http_info( + self, + contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Remove Contact Method + + Remove a contact method from the profile + + :param contact_methods_remove_contact_method_request: (required) + :type contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_remove_contact_method_serialize( + contact_methods_remove_contact_method_request=contact_methods_remove_contact_method_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contact_methods_remove_contact_method_without_preload_content( + self, + contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove Contact Method + + Remove a contact method from the profile + + :param contact_methods_remove_contact_method_request: (required) + :type contact_methods_remove_contact_method_request: ContactMethodsRemoveContactMethodRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contact_methods_remove_contact_method_serialize( + contact_methods_remove_contact_method_request=contact_methods_remove_contact_method_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contact_methods_remove_contact_method_serialize( + self, + contact_methods_remove_contact_method_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contact_methods_remove_contact_method_request is not None: + _body_params = contact_methods_remove_contact_method_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/contact-methods/remove', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contact_methods_send_challenge( + self, + contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContactMethodsSendChallenge200Response: + """Send Contact Method Challenge (OTP) - Get all contact methods associated with the authenticated profile + Generates a 6-digit OTP and sends it to the specified contact method, caching it for short-lived verification. + :param contact_methods_send_challenge_request: (required) + :type contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -372,7 +1199,8 @@ def contact_methods_get_my_contact_methods( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_get_my_contact_methods_serialize( + _param = self._contact_methods_send_challenge_serialize( + contact_methods_send_challenge_request=contact_methods_send_challenge_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -380,9 +1208,8 @@ def contact_methods_get_my_contact_methods( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", - '401': "ErrorUNAUTHORIZED", - '403': "ErrorFORBIDDEN", + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -397,8 +1224,9 @@ def contact_methods_get_my_contact_methods( @validate_call - def contact_methods_get_my_contact_methods_with_http_info( + def contact_methods_send_challenge_with_http_info( self, + contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -411,11 +1239,13 @@ def contact_methods_get_my_contact_methods_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ContactMethodsGetMyContactMethods200ResponseInner]]: - """Get My Contact Methods + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Send Contact Method Challenge (OTP) - Get all contact methods associated with the authenticated profile + Generates a 6-digit OTP and sends it to the specified contact method, caching it for short-lived verification. + :param contact_methods_send_challenge_request: (required) + :type contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -438,7 +1268,8 @@ def contact_methods_get_my_contact_methods_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_get_my_contact_methods_serialize( + _param = self._contact_methods_send_challenge_serialize( + contact_methods_send_challenge_request=contact_methods_send_challenge_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -446,9 +1277,8 @@ def contact_methods_get_my_contact_methods_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", - '401': "ErrorUNAUTHORIZED", - '403': "ErrorFORBIDDEN", + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -463,8 +1293,9 @@ def contact_methods_get_my_contact_methods_with_http_info( @validate_call - def contact_methods_get_my_contact_methods_without_preload_content( + def contact_methods_send_challenge_without_preload_content( self, + contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -478,10 +1309,12 @@ def contact_methods_get_my_contact_methods_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get My Contact Methods + """Send Contact Method Challenge (OTP) - Get all contact methods associated with the authenticated profile + Generates a 6-digit OTP and sends it to the specified contact method, caching it for short-lived verification. + :param contact_methods_send_challenge_request: (required) + :type contact_methods_send_challenge_request: ContactMethodsSendChallengeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -504,7 +1337,8 @@ def contact_methods_get_my_contact_methods_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_get_my_contact_methods_serialize( + _param = self._contact_methods_send_challenge_serialize( + contact_methods_send_challenge_request=contact_methods_send_challenge_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -512,9 +1346,8 @@ def contact_methods_get_my_contact_methods_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ContactMethodsGetMyContactMethods200ResponseInner]", - '401': "ErrorUNAUTHORIZED", - '403': "ErrorFORBIDDEN", + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -524,8 +1357,9 @@ def contact_methods_get_my_contact_methods_without_preload_content( return response_data.response - def _contact_methods_get_my_contact_methods_serialize( + def _contact_methods_send_challenge_serialize( self, + contact_methods_send_challenge_request, _request_auth, _content_type, _headers, @@ -551,6 +1385,8 @@ def _contact_methods_get_my_contact_methods_serialize( # process the header parameters # process the form parameters # process the body parameter + if contact_methods_send_challenge_request is not None: + _body_params = contact_methods_send_challenge_request # set the HTTP header `Accept` @@ -561,15 +1397,27 @@ def _contact_methods_get_my_contact_methods_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ - 'Authorization' ] return self.api_client.param_serialize( - method='GET', - resource_path='/profile/contact-methods', + method='POST', + resource_path='/contact-methods/challenge', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,9 +1434,9 @@ def _contact_methods_get_my_contact_methods_serialize( @validate_call - def contact_methods_remove_contact_method( + def contact_methods_set_primary_contact_method( self, - claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest, + contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -601,13 +1449,13 @@ def contact_methods_remove_contact_method( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContactMethodsSetPrimaryContactMethod200Response: - """Remove Contact Method + ) -> ContactMethodsSendChallenge200Response: + """Set Primary Contact Method - Remove a contact method from the profile + Set a contact method as the primary one for the profile - :param claim_hook_delete_claim_hook_request: (required) - :type claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest + :param contact_methods_set_primary_contact_method_request: (required) + :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -630,8 +1478,8 @@ def contact_methods_remove_contact_method( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_remove_contact_method_serialize( - claim_hook_delete_claim_hook_request=claim_hook_delete_claim_hook_request, + _param = self._contact_methods_set_primary_contact_method_serialize( + contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -639,7 +1487,7 @@ def contact_methods_remove_contact_method( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -657,9 +1505,9 @@ def contact_methods_remove_contact_method( @validate_call - def contact_methods_remove_contact_method_with_http_info( + def contact_methods_set_primary_contact_method_with_http_info( self, - claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest, + contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -672,13 +1520,13 @@ def contact_methods_remove_contact_method_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContactMethodsSetPrimaryContactMethod200Response]: - """Remove Contact Method + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Set Primary Contact Method - Remove a contact method from the profile + Set a contact method as the primary one for the profile - :param claim_hook_delete_claim_hook_request: (required) - :type claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest + :param contact_methods_set_primary_contact_method_request: (required) + :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -701,8 +1549,8 @@ def contact_methods_remove_contact_method_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_remove_contact_method_serialize( - claim_hook_delete_claim_hook_request=claim_hook_delete_claim_hook_request, + _param = self._contact_methods_set_primary_contact_method_serialize( + contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -710,7 +1558,7 @@ def contact_methods_remove_contact_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -728,9 +1576,9 @@ def contact_methods_remove_contact_method_with_http_info( @validate_call - def contact_methods_remove_contact_method_without_preload_content( + def contact_methods_set_primary_contact_method_without_preload_content( self, - claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest, + contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -744,12 +1592,12 @@ def contact_methods_remove_contact_method_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Remove Contact Method + """Set Primary Contact Method - Remove a contact method from the profile + Set a contact method as the primary one for the profile - :param claim_hook_delete_claim_hook_request: (required) - :type claim_hook_delete_claim_hook_request: ClaimHookDeleteClaimHookRequest + :param contact_methods_set_primary_contact_method_request: (required) + :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -772,8 +1620,8 @@ def contact_methods_remove_contact_method_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_remove_contact_method_serialize( - claim_hook_delete_claim_hook_request=claim_hook_delete_claim_hook_request, + _param = self._contact_methods_set_primary_contact_method_serialize( + contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -781,7 +1629,7 @@ def contact_methods_remove_contact_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -794,9 +1642,9 @@ def contact_methods_remove_contact_method_without_preload_content( return response_data.response - def _contact_methods_remove_contact_method_serialize( + def _contact_methods_set_primary_contact_method_serialize( self, - claim_hook_delete_claim_hook_request, + contact_methods_set_primary_contact_method_request, _request_auth, _content_type, _headers, @@ -822,8 +1670,8 @@ def _contact_methods_remove_contact_method_serialize( # process the header parameters # process the form parameters # process the body parameter - if claim_hook_delete_claim_hook_request is not None: - _body_params = claim_hook_delete_claim_hook_request + if contact_methods_set_primary_contact_method_request is not None: + _body_params = contact_methods_set_primary_contact_method_request # set the HTTP header `Accept` @@ -855,7 +1703,7 @@ def _contact_methods_remove_contact_method_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/contact-methods/remove', + resource_path='/profile/contact-methods/set-primary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -872,9 +1720,9 @@ def _contact_methods_remove_contact_method_serialize( @validate_call - def contact_methods_set_primary_contact_method( + def contact_methods_verify_contact_method( self, - contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, + contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -887,13 +1735,13 @@ def contact_methods_set_primary_contact_method( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContactMethodsSetPrimaryContactMethod200Response: - """Set Primary Contact Method + ) -> ContactMethodsVerifyWithCredential200Response: + """Verify Contact Method - Set a contact method as the primary one for the profile + Verify a contact method using the verification token - :param contact_methods_set_primary_contact_method_request: (required) - :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest + :param contact_methods_verify_contact_method_request: (required) + :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -916,8 +1764,8 @@ def contact_methods_set_primary_contact_method( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_set_primary_contact_method_serialize( - contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, + _param = self._contact_methods_verify_contact_method_serialize( + contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -925,7 +1773,7 @@ def contact_methods_set_primary_contact_method( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -943,9 +1791,9 @@ def contact_methods_set_primary_contact_method( @validate_call - def contact_methods_set_primary_contact_method_with_http_info( + def contact_methods_verify_contact_method_with_http_info( self, - contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, + contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -958,13 +1806,13 @@ def contact_methods_set_primary_contact_method_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContactMethodsSetPrimaryContactMethod200Response]: - """Set Primary Contact Method + ) -> ApiResponse[ContactMethodsVerifyWithCredential200Response]: + """Verify Contact Method - Set a contact method as the primary one for the profile + Verify a contact method using the verification token - :param contact_methods_set_primary_contact_method_request: (required) - :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest + :param contact_methods_verify_contact_method_request: (required) + :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -987,8 +1835,8 @@ def contact_methods_set_primary_contact_method_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_set_primary_contact_method_serialize( - contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, + _param = self._contact_methods_verify_contact_method_serialize( + contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -996,7 +1844,7 @@ def contact_methods_set_primary_contact_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1014,9 +1862,9 @@ def contact_methods_set_primary_contact_method_with_http_info( @validate_call - def contact_methods_set_primary_contact_method_without_preload_content( + def contact_methods_verify_contact_method_without_preload_content( self, - contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest, + contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1030,12 +1878,12 @@ def contact_methods_set_primary_contact_method_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Set Primary Contact Method + """Verify Contact Method - Set a contact method as the primary one for the profile + Verify a contact method using the verification token - :param contact_methods_set_primary_contact_method_request: (required) - :type contact_methods_set_primary_contact_method_request: ContactMethodsSetPrimaryContactMethodRequest + :param contact_methods_verify_contact_method_request: (required) + :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1058,8 +1906,8 @@ def contact_methods_set_primary_contact_method_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_set_primary_contact_method_serialize( - contact_methods_set_primary_contact_method_request=contact_methods_set_primary_contact_method_request, + _param = self._contact_methods_verify_contact_method_serialize( + contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1067,7 +1915,7 @@ def contact_methods_set_primary_contact_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsSetPrimaryContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1080,9 +1928,9 @@ def contact_methods_set_primary_contact_method_without_preload_content( return response_data.response - def _contact_methods_set_primary_contact_method_serialize( + def _contact_methods_verify_contact_method_serialize( self, - contact_methods_set_primary_contact_method_request, + contact_methods_verify_contact_method_request, _request_auth, _content_type, _headers, @@ -1108,8 +1956,8 @@ def _contact_methods_set_primary_contact_method_serialize( # process the header parameters # process the form parameters # process the body parameter - if contact_methods_set_primary_contact_method_request is not None: - _body_params = contact_methods_set_primary_contact_method_request + if contact_methods_verify_contact_method_request is not None: + _body_params = contact_methods_verify_contact_method_request # set the HTTP header `Accept` @@ -1141,7 +1989,7 @@ def _contact_methods_set_primary_contact_method_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/contact-methods/set-primary', + resource_path='/profile/contact-methods/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1158,9 +2006,9 @@ def _contact_methods_set_primary_contact_method_serialize( @validate_call - def contact_methods_verify_contact_method( + def contact_methods_verify_with_credential( self, - contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, + contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1173,13 +2021,13 @@ def contact_methods_verify_contact_method( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContactMethodsVerifyContactMethod200Response: - """Verify Contact Method + ) -> ContactMethodsVerifyWithCredential200Response: + """Verify Contact Method With Credential - Verify a contact method using the verification token + Verify ownership of a contact method using a cryptographically verified proof-of-login Verifiable Presentation JWT. - :param contact_methods_verify_contact_method_request: (required) - :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest + :param contact_methods_verify_with_credential_request: (required) + :type contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1202,8 +2050,8 @@ def contact_methods_verify_contact_method( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_verify_contact_method_serialize( - contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, + _param = self._contact_methods_verify_with_credential_serialize( + contact_methods_verify_with_credential_request=contact_methods_verify_with_credential_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1211,7 +2059,7 @@ def contact_methods_verify_contact_method( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsVerifyContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1229,9 +2077,9 @@ def contact_methods_verify_contact_method( @validate_call - def contact_methods_verify_contact_method_with_http_info( + def contact_methods_verify_with_credential_with_http_info( self, - contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, + contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1244,13 +2092,13 @@ def contact_methods_verify_contact_method_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContactMethodsVerifyContactMethod200Response]: - """Verify Contact Method + ) -> ApiResponse[ContactMethodsVerifyWithCredential200Response]: + """Verify Contact Method With Credential - Verify a contact method using the verification token + Verify ownership of a contact method using a cryptographically verified proof-of-login Verifiable Presentation JWT. - :param contact_methods_verify_contact_method_request: (required) - :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest + :param contact_methods_verify_with_credential_request: (required) + :type contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1273,8 +2121,8 @@ def contact_methods_verify_contact_method_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_verify_contact_method_serialize( - contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, + _param = self._contact_methods_verify_with_credential_serialize( + contact_methods_verify_with_credential_request=contact_methods_verify_with_credential_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1282,7 +2130,7 @@ def contact_methods_verify_contact_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsVerifyContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1300,9 +2148,9 @@ def contact_methods_verify_contact_method_with_http_info( @validate_call - def contact_methods_verify_contact_method_without_preload_content( + def contact_methods_verify_with_credential_without_preload_content( self, - contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest, + contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1316,12 +2164,12 @@ def contact_methods_verify_contact_method_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Verify Contact Method + """Verify Contact Method With Credential - Verify a contact method using the verification token + Verify ownership of a contact method using a cryptographically verified proof-of-login Verifiable Presentation JWT. - :param contact_methods_verify_contact_method_request: (required) - :type contact_methods_verify_contact_method_request: ContactMethodsVerifyContactMethodRequest + :param contact_methods_verify_with_credential_request: (required) + :type contact_methods_verify_with_credential_request: ContactMethodsVerifyWithCredentialRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1344,8 +2192,8 @@ def contact_methods_verify_contact_method_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contact_methods_verify_contact_method_serialize( - contact_methods_verify_contact_method_request=contact_methods_verify_contact_method_request, + _param = self._contact_methods_verify_with_credential_serialize( + contact_methods_verify_with_credential_request=contact_methods_verify_with_credential_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1353,7 +2201,7 @@ def contact_methods_verify_contact_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContactMethodsVerifyContactMethod200Response", + '200': "ContactMethodsVerifyWithCredential200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1366,9 +2214,9 @@ def contact_methods_verify_contact_method_without_preload_content( return response_data.response - def _contact_methods_verify_contact_method_serialize( + def _contact_methods_verify_with_credential_serialize( self, - contact_methods_verify_contact_method_request, + contact_methods_verify_with_credential_request, _request_auth, _content_type, _headers, @@ -1394,8 +2242,8 @@ def _contact_methods_verify_contact_method_serialize( # process the header parameters # process the form parameters # process the body parameter - if contact_methods_verify_contact_method_request is not None: - _body_params = contact_methods_verify_contact_method_request + if contact_methods_verify_with_credential_request is not None: + _body_params = contact_methods_verify_with_credential_request # set the HTTP header `Accept` @@ -1427,7 +2275,7 @@ def _contact_methods_verify_contact_method_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/contact-methods/verify', + resource_path='/profile/contact-methods/verify-with-credential', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/contracts_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/contracts_api.py index bf2d801b32..74ba577a97 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/contracts_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/contracts_api.py @@ -17,26 +17,36 @@ from typing_extensions import Annotated from pydantic import StrictBool, StrictStr -from typing import Optional +from typing import List, Optional from openapi_client.models.contracts_add_auto_boosts_to_contract_request import ContractsAddAutoBoostsToContractRequest +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response from openapi_client.models.contracts_consent_to_contract_request import ContractsConsentToContractRequest from openapi_client.models.contracts_create_consent_flow_contract_request import ContractsCreateConsentFlowContractRequest +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner from openapi_client.models.contracts_get_all_credentials_for_terms_request import ContractsGetAllCredentialsForTermsRequest from openapi_client.models.contracts_get_consent_flow_contract200_response import ContractsGetConsentFlowContract200Response from openapi_client.models.contracts_get_consent_flow_contracts200_response import ContractsGetConsentFlowContracts200Response from openapi_client.models.contracts_get_consent_flow_contracts_request import ContractsGetConsentFlowContractsRequest from openapi_client.models.contracts_get_consented_contracts200_response import ContractsGetConsentedContracts200Response from openapi_client.models.contracts_get_consented_contracts_request import ContractsGetConsentedContractsRequest +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response from openapi_client.models.contracts_get_consented_data_for_contract200_response import ContractsGetConsentedDataForContract200Response from openapi_client.models.contracts_get_consented_data_for_contract_request import ContractsGetConsentedDataForContractRequest from openapi_client.models.contracts_get_consented_data_for_did200_response import ContractsGetConsentedDataForDid200Response from openapi_client.models.contracts_get_consented_data_for_did_request import ContractsGetConsentedDataForDidRequest from openapi_client.models.contracts_get_consented_data_request import ContractsGetConsentedDataRequest +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner from openapi_client.models.contracts_get_credentials_for_contract200_response import ContractsGetCredentialsForContract200Response from openapi_client.models.contracts_get_credentials_for_contract_request import ContractsGetCredentialsForContractRequest +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response from openapi_client.models.contracts_get_terms_transaction_history200_response import ContractsGetTermsTransactionHistory200Response from openapi_client.models.contracts_get_terms_transaction_history_request import ContractsGetTermsTransactionHistoryRequest +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest from openapi_client.models.contracts_remove_auto_boosts_from_contract_request import ContractsRemoveAutoBoostsFromContractRequest +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest from openapi_client.models.contracts_sync_credentials_to_contract_request import ContractsSyncCredentialsToContractRequest from openapi_client.models.contracts_update_consented_contract_terms_request import ContractsUpdateConsentedContractTermsRequest from openapi_client.models.contracts_write_credential_to_contract_request import ContractsWriteCredentialToContractRequest @@ -347,9 +357,9 @@ def _contracts_add_auto_boosts_to_contract_serialize( @validate_call - def contracts_consent_to_contract( + def contracts_cancel_contract_request( self, - contracts_consent_to_contract_request: ContractsConsentToContractRequest, + contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -362,13 +372,13 @@ def contracts_consent_to_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Consent To Contract + ) -> bool: + """Cancels/removes a contract request - Consents to a Contract with a hard set of terms + Removes a REQUESTED_FOR relationship, cancelling the request sent to the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_consent_to_contract_request: (required) - :type contracts_consent_to_contract_request: ContractsConsentToContractRequest + :param contracts_cancel_contract_request_request: (required) + :type contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -391,8 +401,8 @@ def contracts_consent_to_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_consent_to_contract_serialize( - contracts_consent_to_contract_request=contracts_consent_to_contract_request, + _param = self._contracts_cancel_contract_request_serialize( + contracts_cancel_contract_request_request=contracts_cancel_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -400,7 +410,7 @@ def contracts_consent_to_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -418,9 +428,9 @@ def contracts_consent_to_contract( @validate_call - def contracts_consent_to_contract_with_http_info( + def contracts_cancel_contract_request_with_http_info( self, - contracts_consent_to_contract_request: ContractsConsentToContractRequest, + contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -433,13 +443,13 @@ def contracts_consent_to_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Consent To Contract + ) -> ApiResponse[bool]: + """Cancels/removes a contract request - Consents to a Contract with a hard set of terms + Removes a REQUESTED_FOR relationship, cancelling the request sent to the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_consent_to_contract_request: (required) - :type contracts_consent_to_contract_request: ContractsConsentToContractRequest + :param contracts_cancel_contract_request_request: (required) + :type contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -462,8 +472,8 @@ def contracts_consent_to_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_consent_to_contract_serialize( - contracts_consent_to_contract_request=contracts_consent_to_contract_request, + _param = self._contracts_cancel_contract_request_serialize( + contracts_cancel_contract_request_request=contracts_cancel_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -471,7 +481,7 @@ def contracts_consent_to_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -489,9 +499,9 @@ def contracts_consent_to_contract_with_http_info( @validate_call - def contracts_consent_to_contract_without_preload_content( + def contracts_cancel_contract_request_without_preload_content( self, - contracts_consent_to_contract_request: ContractsConsentToContractRequest, + contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -505,12 +515,12 @@ def contracts_consent_to_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Consent To Contract + """Cancels/removes a contract request - Consents to a Contract with a hard set of terms + Removes a REQUESTED_FOR relationship, cancelling the request sent to the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_consent_to_contract_request: (required) - :type contracts_consent_to_contract_request: ContractsConsentToContractRequest + :param contracts_cancel_contract_request_request: (required) + :type contracts_cancel_contract_request_request: ContractsCancelContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -533,8 +543,8 @@ def contracts_consent_to_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_consent_to_contract_serialize( - contracts_consent_to_contract_request=contracts_consent_to_contract_request, + _param = self._contracts_cancel_contract_request_serialize( + contracts_cancel_contract_request_request=contracts_cancel_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -542,7 +552,7 @@ def contracts_consent_to_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -555,9 +565,9 @@ def contracts_consent_to_contract_without_preload_content( return response_data.response - def _contracts_consent_to_contract_serialize( + def _contracts_cancel_contract_request_serialize( self, - contracts_consent_to_contract_request, + contracts_cancel_contract_request_request, _request_auth, _content_type, _headers, @@ -583,8 +593,8 @@ def _contracts_consent_to_contract_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_consent_to_contract_request is not None: - _body_params = contracts_consent_to_contract_request + if contracts_cancel_contract_request_request is not None: + _body_params = contracts_cancel_contract_request_request # set the HTTP header `Accept` @@ -616,7 +626,7 @@ def _contracts_consent_to_contract_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract/consent', + resource_path='/consent-flow-contracts/cancel-request', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -633,9 +643,9 @@ def _contracts_consent_to_contract_serialize( @validate_call - def contracts_create_consent_flow_contract( + def contracts_consent_to_contract( self, - contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, + contracts_consent_to_contract_request: ContractsConsentToContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -648,13 +658,13 @@ def contracts_create_consent_flow_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Create Consent Flow Contract + ) -> ContractsConsentToContract200Response: + """Consent To Contract - Creates a Consent Flow Contract for a profile + Consents to a Contract with a hard set of terms - :param contracts_create_consent_flow_contract_request: (required) - :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest + :param contracts_consent_to_contract_request: (required) + :type contracts_consent_to_contract_request: ContractsConsentToContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -677,8 +687,8 @@ def contracts_create_consent_flow_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_create_consent_flow_contract_serialize( - contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, + _param = self._contracts_consent_to_contract_serialize( + contracts_consent_to_contract_request=contracts_consent_to_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -686,7 +696,7 @@ def contracts_create_consent_flow_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "ContractsConsentToContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -704,9 +714,9 @@ def contracts_create_consent_flow_contract( @validate_call - def contracts_create_consent_flow_contract_with_http_info( + def contracts_consent_to_contract_with_http_info( self, - contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, + contracts_consent_to_contract_request: ContractsConsentToContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -719,13 +729,13 @@ def contracts_create_consent_flow_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Create Consent Flow Contract + ) -> ApiResponse[ContractsConsentToContract200Response]: + """Consent To Contract - Creates a Consent Flow Contract for a profile + Consents to a Contract with a hard set of terms - :param contracts_create_consent_flow_contract_request: (required) - :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest + :param contracts_consent_to_contract_request: (required) + :type contracts_consent_to_contract_request: ContractsConsentToContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -748,8 +758,8 @@ def contracts_create_consent_flow_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_create_consent_flow_contract_serialize( - contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, + _param = self._contracts_consent_to_contract_serialize( + contracts_consent_to_contract_request=contracts_consent_to_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -757,7 +767,7 @@ def contracts_create_consent_flow_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "ContractsConsentToContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -775,9 +785,9 @@ def contracts_create_consent_flow_contract_with_http_info( @validate_call - def contracts_create_consent_flow_contract_without_preload_content( + def contracts_consent_to_contract_without_preload_content( self, - contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, + contracts_consent_to_contract_request: ContractsConsentToContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -791,12 +801,12 @@ def contracts_create_consent_flow_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Consent Flow Contract + """Consent To Contract - Creates a Consent Flow Contract for a profile + Consents to a Contract with a hard set of terms - :param contracts_create_consent_flow_contract_request: (required) - :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest + :param contracts_consent_to_contract_request: (required) + :type contracts_consent_to_contract_request: ContractsConsentToContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -819,8 +829,8 @@ def contracts_create_consent_flow_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_create_consent_flow_contract_serialize( - contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, + _param = self._contracts_consent_to_contract_serialize( + contracts_consent_to_contract_request=contracts_consent_to_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -828,7 +838,7 @@ def contracts_create_consent_flow_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "ContractsConsentToContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -841,9 +851,9 @@ def contracts_create_consent_flow_contract_without_preload_content( return response_data.response - def _contracts_create_consent_flow_contract_serialize( + def _contracts_consent_to_contract_serialize( self, - contracts_create_consent_flow_contract_request, + contracts_consent_to_contract_request, _request_auth, _content_type, _headers, @@ -869,8 +879,8 @@ def _contracts_create_consent_flow_contract_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_create_consent_flow_contract_request is not None: - _body_params = contracts_create_consent_flow_contract_request + if contracts_consent_to_contract_request is not None: + _body_params = contracts_consent_to_contract_request # set the HTTP header `Accept` @@ -902,7 +912,7 @@ def _contracts_create_consent_flow_contract_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract', + resource_path='/consent-flow-contract/consent', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -919,9 +929,9 @@ def _contracts_create_consent_flow_contract_serialize( @validate_call - def contracts_delete_consent_flow_contract( + def contracts_create_consent_flow_contract( self, - uri: StrictStr, + contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -934,13 +944,13 @@ def contracts_delete_consent_flow_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Delete a Consent Flow Contract + ) -> str: + """Create Consent Flow Contract - This route deletes a Consent Flow Contract + Creates a Consent Flow Contract for a profile - :param uri: (required) - :type uri: str + :param contracts_create_consent_flow_contract_request: (required) + :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -963,8 +973,8 @@ def contracts_delete_consent_flow_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_delete_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_create_consent_flow_contract_serialize( + contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -972,11 +982,10 @@ def contracts_delete_consent_flow_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -991,9 +1000,9 @@ def contracts_delete_consent_flow_contract( @validate_call - def contracts_delete_consent_flow_contract_with_http_info( + def contracts_create_consent_flow_contract_with_http_info( self, - uri: StrictStr, + contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1006,13 +1015,13 @@ def contracts_delete_consent_flow_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Delete a Consent Flow Contract + ) -> ApiResponse[str]: + """Create Consent Flow Contract - This route deletes a Consent Flow Contract + Creates a Consent Flow Contract for a profile - :param uri: (required) - :type uri: str + :param contracts_create_consent_flow_contract_request: (required) + :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1035,8 +1044,8 @@ def contracts_delete_consent_flow_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_delete_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_create_consent_flow_contract_serialize( + contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1044,11 +1053,10 @@ def contracts_delete_consent_flow_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1063,9 +1071,9 @@ def contracts_delete_consent_flow_contract_with_http_info( @validate_call - def contracts_delete_consent_flow_contract_without_preload_content( + def contracts_create_consent_flow_contract_without_preload_content( self, - uri: StrictStr, + contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1079,12 +1087,12 @@ def contracts_delete_consent_flow_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a Consent Flow Contract + """Create Consent Flow Contract - This route deletes a Consent Flow Contract + Creates a Consent Flow Contract for a profile - :param uri: (required) - :type uri: str + :param contracts_create_consent_flow_contract_request: (required) + :type contracts_create_consent_flow_contract_request: ContractsCreateConsentFlowContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1107,8 +1115,8 @@ def contracts_delete_consent_flow_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_delete_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_create_consent_flow_contract_serialize( + contracts_create_consent_flow_contract_request=contracts_create_consent_flow_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1116,11 +1124,10 @@ def contracts_delete_consent_flow_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1130,9 +1137,9 @@ def contracts_delete_consent_flow_contract_without_preload_content( return response_data.response - def _contracts_delete_consent_flow_contract_serialize( + def _contracts_create_consent_flow_contract_serialize( self, - uri, + contracts_create_consent_flow_contract_request, _request_auth, _content_type, _headers, @@ -1155,13 +1162,11 @@ def _contracts_delete_consent_flow_contract_serialize( # process the path parameters # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - # process the header parameters # process the form parameters # process the body parameter + if contracts_create_consent_flow_contract_request is not None: + _body_params = contracts_create_consent_flow_contract_request # set the HTTP header `Accept` @@ -1172,6 +1177,19 @@ def _contracts_delete_consent_flow_contract_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1179,7 +1197,7 @@ def _contracts_delete_consent_flow_contract_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='POST', resource_path='/consent-flow-contract', path_params=_path_params, query_params=_query_params, @@ -1197,9 +1215,9 @@ def _contracts_delete_consent_flow_contract_serialize( @validate_call - def contracts_get_all_credentials_for_terms( + def contracts_delete_consent_flow_contract( self, - contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1212,13 +1230,13 @@ def contracts_get_all_credentials_for_terms( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetCredentialsForContract200Response: - """Get all credentials written to any terms + ) -> bool: + """Delete a Consent Flow Contract - Gets all credentials that were written to any terms owned by this profile + This route deletes a Consent Flow Contract - :param contracts_get_all_credentials_for_terms_request: - :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1241,8 +1259,8 @@ def contracts_get_all_credentials_for_terms( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_all_credentials_for_terms_serialize( - contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, + _param = self._contracts_delete_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1250,10 +1268,11 @@ def contracts_get_all_credentials_for_terms( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1268,9 +1287,9 @@ def contracts_get_all_credentials_for_terms( @validate_call - def contracts_get_all_credentials_for_terms_with_http_info( + def contracts_delete_consent_flow_contract_with_http_info( self, - contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1283,13 +1302,13 @@ def contracts_get_all_credentials_for_terms_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetCredentialsForContract200Response]: - """Get all credentials written to any terms + ) -> ApiResponse[bool]: + """Delete a Consent Flow Contract - Gets all credentials that were written to any terms owned by this profile + This route deletes a Consent Flow Contract - :param contracts_get_all_credentials_for_terms_request: - :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1312,8 +1331,8 @@ def contracts_get_all_credentials_for_terms_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_all_credentials_for_terms_serialize( - contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, + _param = self._contracts_delete_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1321,10 +1340,11 @@ def contracts_get_all_credentials_for_terms_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1339,9 +1359,9 @@ def contracts_get_all_credentials_for_terms_with_http_info( @validate_call - def contracts_get_all_credentials_for_terms_without_preload_content( + def contracts_delete_consent_flow_contract_without_preload_content( self, - contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1355,12 +1375,12 @@ def contracts_get_all_credentials_for_terms_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all credentials written to any terms + """Delete a Consent Flow Contract - Gets all credentials that were written to any terms owned by this profile + This route deletes a Consent Flow Contract - :param contracts_get_all_credentials_for_terms_request: - :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1383,8 +1403,8 @@ def contracts_get_all_credentials_for_terms_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_all_credentials_for_terms_serialize( - contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, + _param = self._contracts_delete_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1392,10 +1412,11 @@ def contracts_get_all_credentials_for_terms_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1405,9 +1426,9 @@ def contracts_get_all_credentials_for_terms_without_preload_content( return response_data.response - def _contracts_get_all_credentials_for_terms_serialize( + def _contracts_delete_consent_flow_contract_serialize( self, - contracts_get_all_credentials_for_terms_request, + uri, _request_auth, _content_type, _headers, @@ -1430,11 +1451,13 @@ def _contracts_get_all_credentials_for_terms_serialize( # process the path parameters # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if contracts_get_all_credentials_for_terms_request is not None: - _body_params = contracts_get_all_credentials_for_terms_request + if uri is not None: + + _query_params.append(('uri', uri)) + + # process the header parameters + # process the form parameters + # process the body parameter # set the HTTP header `Accept` @@ -1445,19 +1468,6 @@ def _contracts_get_all_credentials_for_terms_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1465,8 +1475,8 @@ def _contracts_get_all_credentials_for_terms_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/consent-flow-contracts/credentials', + method='DELETE', + resource_path='/consent-flow-contract', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1483,9 +1493,9 @@ def _contracts_get_all_credentials_for_terms_serialize( @validate_call - def contracts_get_consent_flow_contract( + def contracts_forward_contract_request_to_profile( self, - uri: StrictStr, + contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1498,13 +1508,13 @@ def contracts_get_consent_flow_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentFlowContract200Response: - """Get Consent Flow Contracts + ) -> bool: + """Forward a contract request - Gets Consent Flow Contract Details + Forwards a contract request to another profile - :param uri: (required) - :type uri: str + :param contracts_forward_contract_request_to_profile_request: (required) + :type contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1527,8 +1537,8 @@ def contracts_get_consent_flow_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_forward_contract_request_to_profile_serialize( + contracts_forward_contract_request_to_profile_request=contracts_forward_contract_request_to_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1536,11 +1546,10 @@ def contracts_get_consent_flow_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1555,9 +1564,9 @@ def contracts_get_consent_flow_contract( @validate_call - def contracts_get_consent_flow_contract_with_http_info( + def contracts_forward_contract_request_to_profile_with_http_info( self, - uri: StrictStr, + contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1570,13 +1579,13 @@ def contracts_get_consent_flow_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentFlowContract200Response]: - """Get Consent Flow Contracts + ) -> ApiResponse[bool]: + """Forward a contract request - Gets Consent Flow Contract Details + Forwards a contract request to another profile - :param uri: (required) - :type uri: str + :param contracts_forward_contract_request_to_profile_request: (required) + :type contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1599,8 +1608,8 @@ def contracts_get_consent_flow_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_forward_contract_request_to_profile_serialize( + contracts_forward_contract_request_to_profile_request=contracts_forward_contract_request_to_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1608,11 +1617,10 @@ def contracts_get_consent_flow_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1627,9 +1635,9 @@ def contracts_get_consent_flow_contract_with_http_info( @validate_call - def contracts_get_consent_flow_contract_without_preload_content( + def contracts_forward_contract_request_to_profile_without_preload_content( self, - uri: StrictStr, + contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1643,12 +1651,12 @@ def contracts_get_consent_flow_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Consent Flow Contracts + """Forward a contract request - Gets Consent Flow Contract Details + Forwards a contract request to another profile - :param uri: (required) - :type uri: str + :param contracts_forward_contract_request_to_profile_request: (required) + :type contracts_forward_contract_request_to_profile_request: ContractsForwardContractRequestToProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1671,8 +1679,8 @@ def contracts_get_consent_flow_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contract_serialize( - uri=uri, + _param = self._contracts_forward_contract_request_to_profile_serialize( + contracts_forward_contract_request_to_profile_request=contracts_forward_contract_request_to_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1680,11 +1688,10 @@ def contracts_get_consent_flow_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1694,9 +1701,9 @@ def contracts_get_consent_flow_contract_without_preload_content( return response_data.response - def _contracts_get_consent_flow_contract_serialize( + def _contracts_forward_contract_request_to_profile_serialize( self, - uri, + contracts_forward_contract_request_to_profile_request, _request_auth, _content_type, _headers, @@ -1719,13 +1726,11 @@ def _contracts_get_consent_flow_contract_serialize( # process the path parameters # process the query parameters - if uri is not None: - - _query_params.append(('uri', uri)) - # process the header parameters # process the form parameters # process the body parameter + if contracts_forward_contract_request_to_profile_request is not None: + _body_params = contracts_forward_contract_request_to_profile_request # set the HTTP header `Accept` @@ -1736,6 +1741,19 @@ def _contracts_get_consent_flow_contract_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1743,8 +1761,8 @@ def _contracts_get_consent_flow_contract_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/consent-flow-contract', + method='POST', + resource_path='/consent-flow-contracts/forward-request-to-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1761,9 +1779,9 @@ def _contracts_get_consent_flow_contract_serialize( @validate_call - def contracts_get_consent_flow_contracts( + def contracts_get_all_contract_requests_for_profile( self, - contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + target_profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1776,13 +1794,13 @@ def contracts_get_consent_flow_contracts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentFlowContracts200Response: - """Get Consent Flow Contracts + ) -> List[ContractsGetAllContractRequestsForProfile200ResponseInner]: + """Get all contract requests for a target profile - Gets Consent Flow Contracts for a profile + Gets all contract requests from all contracts for a specified target profile. Users can query their own requests. - :param contracts_get_consent_flow_contracts_request: - :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param target_profile_id: (required) + :type target_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1805,8 +1823,8 @@ def contracts_get_consent_flow_contracts( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contracts_serialize( - contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _param = self._contracts_get_all_contract_requests_for_profile_serialize( + target_profile_id=target_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1814,10 +1832,11 @@ def contracts_get_consent_flow_contracts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContracts200Response", + '200': "List[ContractsGetAllContractRequestsForProfile200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1832,9 +1851,9 @@ def contracts_get_consent_flow_contracts( @validate_call - def contracts_get_consent_flow_contracts_with_http_info( + def contracts_get_all_contract_requests_for_profile_with_http_info( self, - contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + target_profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1847,13 +1866,13 @@ def contracts_get_consent_flow_contracts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentFlowContracts200Response]: - """Get Consent Flow Contracts + ) -> ApiResponse[List[ContractsGetAllContractRequestsForProfile200ResponseInner]]: + """Get all contract requests for a target profile - Gets Consent Flow Contracts for a profile + Gets all contract requests from all contracts for a specified target profile. Users can query their own requests. - :param contracts_get_consent_flow_contracts_request: - :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param target_profile_id: (required) + :type target_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1876,8 +1895,8 @@ def contracts_get_consent_flow_contracts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contracts_serialize( - contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _param = self._contracts_get_all_contract_requests_for_profile_serialize( + target_profile_id=target_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1885,10 +1904,11 @@ def contracts_get_consent_flow_contracts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContracts200Response", + '200': "List[ContractsGetAllContractRequestsForProfile200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1903,9 +1923,9 @@ def contracts_get_consent_flow_contracts_with_http_info( @validate_call - def contracts_get_consent_flow_contracts_without_preload_content( + def contracts_get_all_contract_requests_for_profile_without_preload_content( self, - contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + target_profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1919,12 +1939,12 @@ def contracts_get_consent_flow_contracts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Consent Flow Contracts + """Get all contract requests for a target profile - Gets Consent Flow Contracts for a profile + Gets all contract requests from all contracts for a specified target profile. Users can query their own requests. - :param contracts_get_consent_flow_contracts_request: - :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param target_profile_id: (required) + :type target_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1947,8 +1967,8 @@ def contracts_get_consent_flow_contracts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consent_flow_contracts_serialize( - contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _param = self._contracts_get_all_contract_requests_for_profile_serialize( + target_profile_id=target_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1956,10 +1976,11 @@ def contracts_get_consent_flow_contracts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentFlowContracts200Response", + '200': "List[ContractsGetAllContractRequestsForProfile200ResponseInner]", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -1969,9 +1990,9 @@ def contracts_get_consent_flow_contracts_without_preload_content( return response_data.response - def _contracts_get_consent_flow_contracts_serialize( + def _contracts_get_all_contract_requests_for_profile_serialize( self, - contracts_get_consent_flow_contracts_request, + target_profile_id, _request_auth, _content_type, _headers, @@ -1994,11 +2015,13 @@ def _contracts_get_consent_flow_contracts_serialize( # process the path parameters # process the query parameters + if target_profile_id is not None: + + _query_params.append(('targetProfileId', target_profile_id)) + # process the header parameters # process the form parameters # process the body parameter - if contracts_get_consent_flow_contracts_request is not None: - _body_params = contracts_get_consent_flow_contracts_request # set the HTTP header `Accept` @@ -2009,19 +2032,6 @@ def _contracts_get_consent_flow_contracts_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2029,8 +2039,8 @@ def _contracts_get_consent_flow_contracts_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/consent-flow-contracts', + method='GET', + resource_path='/consent-flow-contracts/all-requests-for-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2047,9 +2057,9 @@ def _contracts_get_consent_flow_contracts_serialize( @validate_call - def contracts_get_consented_contracts( + def contracts_get_all_credentials_for_terms( self, - contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2062,13 +2072,13 @@ def contracts_get_consented_contracts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentedContracts200Response: - """Gets Consented Contracts + ) -> ContractsGetCredentialsForContract200Response: + """Get all credentials written to any terms - Gets all consented contracts for a user + Gets all credentials that were written to any terms owned by this profile - :param contracts_get_consented_contracts_request: - :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param contracts_get_all_credentials_for_terms_request: + :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2091,8 +2101,8 @@ def contracts_get_consented_contracts( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_contracts_serialize( - contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _param = self._contracts_get_all_credentials_for_terms_serialize( + contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2100,7 +2110,7 @@ def contracts_get_consented_contracts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedContracts200Response", + '200': "ContractsGetCredentialsForContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2118,9 +2128,9 @@ def contracts_get_consented_contracts( @validate_call - def contracts_get_consented_contracts_with_http_info( + def contracts_get_all_credentials_for_terms_with_http_info( self, - contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2133,13 +2143,13 @@ def contracts_get_consented_contracts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentedContracts200Response]: - """Gets Consented Contracts + ) -> ApiResponse[ContractsGetCredentialsForContract200Response]: + """Get all credentials written to any terms - Gets all consented contracts for a user + Gets all credentials that were written to any terms owned by this profile - :param contracts_get_consented_contracts_request: - :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param contracts_get_all_credentials_for_terms_request: + :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2162,8 +2172,8 @@ def contracts_get_consented_contracts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_contracts_serialize( - contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _param = self._contracts_get_all_credentials_for_terms_serialize( + contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2171,7 +2181,7 @@ def contracts_get_consented_contracts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedContracts200Response", + '200': "ContractsGetCredentialsForContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2189,9 +2199,9 @@ def contracts_get_consented_contracts_with_http_info( @validate_call - def contracts_get_consented_contracts_without_preload_content( + def contracts_get_all_credentials_for_terms_without_preload_content( self, - contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + contracts_get_all_credentials_for_terms_request: Optional[ContractsGetAllCredentialsForTermsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2205,12 +2215,12 @@ def contracts_get_consented_contracts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Gets Consented Contracts + """Get all credentials written to any terms - Gets all consented contracts for a user + Gets all credentials that were written to any terms owned by this profile - :param contracts_get_consented_contracts_request: - :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param contracts_get_all_credentials_for_terms_request: + :type contracts_get_all_credentials_for_terms_request: ContractsGetAllCredentialsForTermsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2233,8 +2243,8 @@ def contracts_get_consented_contracts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_contracts_serialize( - contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _param = self._contracts_get_all_credentials_for_terms_serialize( + contracts_get_all_credentials_for_terms_request=contracts_get_all_credentials_for_terms_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2242,7 +2252,7 @@ def contracts_get_consented_contracts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedContracts200Response", + '200': "ContractsGetCredentialsForContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2255,9 +2265,9 @@ def contracts_get_consented_contracts_without_preload_content( return response_data.response - def _contracts_get_consented_contracts_serialize( + def _contracts_get_all_credentials_for_terms_serialize( self, - contracts_get_consented_contracts_request, + contracts_get_all_credentials_for_terms_request, _request_auth, _content_type, _headers, @@ -2283,8 +2293,8 @@ def _contracts_get_consented_contracts_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_get_consented_contracts_request is not None: - _body_params = contracts_get_consented_contracts_request + if contracts_get_all_credentials_for_terms_request is not None: + _body_params = contracts_get_all_credentials_for_terms_request # set the HTTP header `Accept` @@ -2316,7 +2326,7 @@ def _contracts_get_consented_contracts_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contracts/consent', + resource_path='/consent-flow-contracts/credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2333,9 +2343,9 @@ def _contracts_get_consented_contracts_serialize( @validate_call - def contracts_get_consented_data( + def contracts_get_consent_flow_contract( self, - contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2348,13 +2358,13 @@ def contracts_get_consented_data( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentedDataForContract200Response: - """Get the data that has been consented for all of your contracts + ) -> ContractsGetConsentFlowContract200Response: + """Get Consent Flow Contracts - This route grabs all the data that has been consented for all of your contracts + Gets Consent Flow Contract Details - :param contracts_get_consented_data_request: - :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2377,8 +2387,8 @@ def contracts_get_consented_data( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_serialize( - contracts_get_consented_data_request=contracts_get_consented_data_request, + _param = self._contracts_get_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2386,10 +2396,11 @@ def contracts_get_consented_data( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetConsentFlowContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2404,9 +2415,9 @@ def contracts_get_consented_data( @validate_call - def contracts_get_consented_data_with_http_info( + def contracts_get_consent_flow_contract_with_http_info( self, - contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2419,13 +2430,13 @@ def contracts_get_consented_data_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentedDataForContract200Response]: - """Get the data that has been consented for all of your contracts + ) -> ApiResponse[ContractsGetConsentFlowContract200Response]: + """Get Consent Flow Contracts - This route grabs all the data that has been consented for all of your contracts + Gets Consent Flow Contract Details - :param contracts_get_consented_data_request: - :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2448,8 +2459,8 @@ def contracts_get_consented_data_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_serialize( - contracts_get_consented_data_request=contracts_get_consented_data_request, + _param = self._contracts_get_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2457,10 +2468,11 @@ def contracts_get_consented_data_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetConsentFlowContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2475,9 +2487,9 @@ def contracts_get_consented_data_with_http_info( @validate_call - def contracts_get_consented_data_without_preload_content( + def contracts_get_consent_flow_contract_without_preload_content( self, - contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + uri: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2491,12 +2503,12 @@ def contracts_get_consented_data_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get the data that has been consented for all of your contracts + """Get Consent Flow Contracts - This route grabs all the data that has been consented for all of your contracts + Gets Consent Flow Contract Details - :param contracts_get_consented_data_request: - :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param uri: (required) + :type uri: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2519,8 +2531,8 @@ def contracts_get_consented_data_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_serialize( - contracts_get_consented_data_request=contracts_get_consented_data_request, + _param = self._contracts_get_consent_flow_contract_serialize( + uri=uri, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2528,10 +2540,11 @@ def contracts_get_consented_data_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetConsentFlowContract200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -2541,9 +2554,9 @@ def contracts_get_consented_data_without_preload_content( return response_data.response - def _contracts_get_consented_data_serialize( + def _contracts_get_consent_flow_contract_serialize( self, - contracts_get_consented_data_request, + uri, _request_auth, _content_type, _headers, @@ -2566,11 +2579,13 @@ def _contracts_get_consented_data_serialize( # process the path parameters # process the query parameters + if uri is not None: + + _query_params.append(('uri', uri)) + # process the header parameters # process the form parameters # process the body parameter - if contracts_get_consented_data_request is not None: - _body_params = contracts_get_consented_data_request # set the HTTP header `Accept` @@ -2581,19 +2596,2312 @@ def _contracts_get_consented_data_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/consent-flow-contract', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_consent_flow_contracts( + self, + contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetConsentFlowContracts200Response: + """Get Consent Flow Contracts + + Gets Consent Flow Contracts for a profile + + :param contracts_get_consent_flow_contracts_request: + :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consent_flow_contracts_serialize( + contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentFlowContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_consent_flow_contracts_with_http_info( + self, + contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetConsentFlowContracts200Response]: + """Get Consent Flow Contracts + + Gets Consent Flow Contracts for a profile + + :param contracts_get_consent_flow_contracts_request: + :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consent_flow_contracts_serialize( + contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentFlowContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_consent_flow_contracts_without_preload_content( + self, + contracts_get_consent_flow_contracts_request: Optional[ContractsGetConsentFlowContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Consent Flow Contracts + + Gets Consent Flow Contracts for a profile + + :param contracts_get_consent_flow_contracts_request: + :type contracts_get_consent_flow_contracts_request: ContractsGetConsentFlowContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consent_flow_contracts_serialize( + contracts_get_consent_flow_contracts_request=contracts_get_consent_flow_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentFlowContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_consent_flow_contracts_serialize( + self, + contracts_get_consent_flow_contracts_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_consent_flow_contracts_request is not None: + _body_params = contracts_get_consent_flow_contracts_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contracts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_consented_contracts( + self, + contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetConsentedContracts200Response: + """Gets Consented Contracts + + Gets all consented contracts for a user + + :param contracts_get_consented_contracts_request: + :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_contracts_serialize( + contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_consented_contracts_with_http_info( + self, + contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetConsentedContracts200Response]: + """Gets Consented Contracts + + Gets all consented contracts for a user + + :param contracts_get_consented_contracts_request: + :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_contracts_serialize( + contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_consented_contracts_without_preload_content( + self, + contracts_get_consented_contracts_request: Optional[ContractsGetConsentedContractsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Gets Consented Contracts + + Gets all consented contracts for a user + + :param contracts_get_consented_contracts_request: + :type contracts_get_consented_contracts_request: ContractsGetConsentedContractsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_contracts_serialize( + contracts_get_consented_contracts_request=contracts_get_consented_contracts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedContracts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_consented_contracts_serialize( + self, + contracts_get_consented_contracts_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_consented_contracts_request is not None: + _body_params = contracts_get_consented_contracts_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contracts/consent', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_consented_data( + self, + contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetConsentedData200Response: + """Get the data that has been consented for all of your contracts + + This route grabs all the data that has been consented for all of your contracts + + :param contracts_get_consented_data_request: + :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_serialize( + contracts_get_consented_data_request=contracts_get_consented_data_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedData200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_consented_data_with_http_info( + self, + contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetConsentedData200Response]: + """Get the data that has been consented for all of your contracts + + This route grabs all the data that has been consented for all of your contracts + + :param contracts_get_consented_data_request: + :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_serialize( + contracts_get_consented_data_request=contracts_get_consented_data_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedData200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_consented_data_without_preload_content( + self, + contracts_get_consented_data_request: Optional[ContractsGetConsentedDataRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the data that has been consented for all of your contracts + + This route grabs all the data that has been consented for all of your contracts + + :param contracts_get_consented_data_request: + :type contracts_get_consented_data_request: ContractsGetConsentedDataRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_serialize( + contracts_get_consented_data_request=contracts_get_consented_data_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedData200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_consented_data_serialize( + self, + contracts_get_consented_data_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_consented_data_request is not None: + _body_params = contracts_get_consented_data_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contract/data', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_consented_data_for_contract( + self, + contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetConsentedDataForContract200Response: + """Get the data that has been consented for a contract + + This route grabs all the data that has been consented for a contract + + :param contracts_get_consented_data_for_contract_request: (required) + :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_contract_serialize( + contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_consented_data_for_contract_with_http_info( + self, + contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetConsentedDataForContract200Response]: + """Get the data that has been consented for a contract + + This route grabs all the data that has been consented for a contract + + :param contracts_get_consented_data_for_contract_request: (required) + :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_contract_serialize( + contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_consented_data_for_contract_without_preload_content( + self, + contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the data that has been consented for a contract + + This route grabs all the data that has been consented for a contract + + :param contracts_get_consented_data_for_contract_request: (required) + :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_contract_serialize( + contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_consented_data_for_contract_serialize( + self, + contracts_get_consented_data_for_contract_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_consented_data_for_contract_request is not None: + _body_params = contracts_get_consented_data_for_contract_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contract/data-for-contract', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_consented_data_for_did( + self, + contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetConsentedDataForDid200Response: + """Get the data that has been consented by a did + + This route grabs all the data that has been consented by a did + + :param contracts_get_consented_data_for_did_request: (required) + :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_did_serialize( + contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForDid200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_consented_data_for_did_with_http_info( + self, + contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetConsentedDataForDid200Response]: + """Get the data that has been consented by a did + + This route grabs all the data that has been consented by a did + + :param contracts_get_consented_data_for_did_request: (required) + :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_did_serialize( + contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForDid200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_consented_data_for_did_without_preload_content( + self, + contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the data that has been consented by a did + + This route grabs all the data that has been consented by a did + + :param contracts_get_consented_data_for_did_request: (required) + :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_consented_data_for_did_serialize( + contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetConsentedDataForDid200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_consented_data_for_did_serialize( + self, + contracts_get_consented_data_for_did_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_consented_data_for_did_request is not None: + _body_params = contracts_get_consented_data_for_did_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contract/data-for-did', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_contract_sent_requests( + self, + contract_uri: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[ContractsGetContractSentRequests200ResponseInner]: + """Get requests sent for a given contract + + Gets a list of users and their request statuses for a given contract. + + :param contract_uri: (required) + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_contract_sent_requests_serialize( + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContractsGetContractSentRequests200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_contract_sent_requests_with_http_info( + self, + contract_uri: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ContractsGetContractSentRequests200ResponseInner]]: + """Get requests sent for a given contract + + Gets a list of users and their request statuses for a given contract. + + :param contract_uri: (required) + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_contract_sent_requests_serialize( + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContractsGetContractSentRequests200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_contract_sent_requests_without_preload_content( + self, + contract_uri: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get requests sent for a given contract + + Gets a list of users and their request statuses for a given contract. + + :param contract_uri: (required) + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_contract_sent_requests_serialize( + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ContractsGetContractSentRequests200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_contract_sent_requests_serialize( + self, + contract_uri, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if contract_uri is not None: + + _query_params.append(('contractUri', contract_uri)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/consent-flow-contracts/sent-requests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_credentials_for_contract( + self, + contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetCredentialsForContract200Response: + """Get credentials issued via a contract + + Gets all credentials that were issued via a contract + + :param contracts_get_credentials_for_contract_request: (required) + :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_credentials_for_contract_serialize( + contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetCredentialsForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_credentials_for_contract_with_http_info( + self, + contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetCredentialsForContract200Response]: + """Get credentials issued via a contract + + Gets all credentials that were issued via a contract + + :param contracts_get_credentials_for_contract_request: (required) + :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_credentials_for_contract_serialize( + contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetCredentialsForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_credentials_for_contract_without_preload_content( + self, + contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get credentials issued via a contract + + Gets all credentials that were issued via a contract + + :param contracts_get_credentials_for_contract_request: (required) + :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_credentials_for_contract_serialize( + contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetCredentialsForContract200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_credentials_for_contract_serialize( + self, + contracts_get_credentials_for_contract_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if contracts_get_credentials_for_contract_request is not None: + _body_params = contracts_get_credentials_for_contract_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/consent-flow-contract/credentials', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def contracts_get_request_status_for_profile( + self, + target_profile_id: Optional[StrictStr], + contract_id: Optional[StrictStr] = None, + contract_uri: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractsGetRequestStatusForProfile200Response: + """Get request status for a specific profile under a contract + + Returns the request status and read status for a given profile in a specific contract. + + :param target_profile_id: (required) + :type target_profile_id: str + :param contract_id: + :type contract_id: str + :param contract_uri: + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_request_status_for_profile_serialize( + target_profile_id=target_profile_id, + contract_id=contract_id, + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetRequestStatusForProfile200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def contracts_get_request_status_for_profile_with_http_info( + self, + target_profile_id: Optional[StrictStr], + contract_id: Optional[StrictStr] = None, + contract_uri: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractsGetRequestStatusForProfile200Response]: + """Get request status for a specific profile under a contract + + Returns the request status and read status for a given profile in a specific contract. + + :param target_profile_id: (required) + :type target_profile_id: str + :param contract_id: + :type contract_id: str + :param contract_uri: + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_request_status_for_profile_serialize( + target_profile_id=target_profile_id, + contract_id=contract_id, + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetRequestStatusForProfile200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def contracts_get_request_status_for_profile_without_preload_content( + self, + target_profile_id: Optional[StrictStr], + contract_id: Optional[StrictStr] = None, + contract_uri: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get request status for a specific profile under a contract + + Returns the request status and read status for a given profile in a specific contract. + + :param target_profile_id: (required) + :type target_profile_id: str + :param contract_id: + :type contract_id: str + :param contract_uri: + :type contract_uri: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._contracts_get_request_status_for_profile_serialize( + target_profile_id=target_profile_id, + contract_id=contract_id, + contract_uri=contract_uri, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractsGetRequestStatusForProfile200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _contracts_get_request_status_for_profile_serialize( + self, + target_profile_id, + contract_id, + contract_uri, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if contract_id is not None: + + _query_params.append(('contractId', contract_id)) + + if contract_uri is not None: + + _query_params.append(('contractUri', contract_uri)) + + if target_profile_id is not None: + + _query_params.append(('targetProfileId', target_profile_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type + # authentication setting _auth_settings: List[str] = [ @@ -2601,8 +4909,8 @@ def _contracts_get_consented_data_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/consent-flow-contract/data', + method='GET', + resource_path='/consent-flow-contracts/request-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2619,9 +4927,9 @@ def _contracts_get_consented_data_serialize( @validate_call - def contracts_get_consented_data_for_contract( + def contracts_get_terms_transaction_history( self, - contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2634,13 +4942,13 @@ def contracts_get_consented_data_for_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentedDataForContract200Response: - """Get the data that has been consented for a contract + ) -> ContractsGetTermsTransactionHistory200Response: + """Gets Transaction History - This route grabs all the data that has been consented for a contract + Gets the transaction history for a set of Consent Flow Contract Terms - :param contracts_get_consented_data_for_contract_request: (required) - :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param contracts_get_terms_transaction_history_request: (required) + :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2663,8 +4971,8 @@ def contracts_get_consented_data_for_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_contract_serialize( - contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _param = self._contracts_get_terms_transaction_history_serialize( + contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2672,7 +4980,7 @@ def contracts_get_consented_data_for_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetTermsTransactionHistory200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2690,9 +4998,9 @@ def contracts_get_consented_data_for_contract( @validate_call - def contracts_get_consented_data_for_contract_with_http_info( + def contracts_get_terms_transaction_history_with_http_info( self, - contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2705,13 +5013,13 @@ def contracts_get_consented_data_for_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentedDataForContract200Response]: - """Get the data that has been consented for a contract + ) -> ApiResponse[ContractsGetTermsTransactionHistory200Response]: + """Gets Transaction History - This route grabs all the data that has been consented for a contract + Gets the transaction history for a set of Consent Flow Contract Terms - :param contracts_get_consented_data_for_contract_request: (required) - :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param contracts_get_terms_transaction_history_request: (required) + :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2734,8 +5042,8 @@ def contracts_get_consented_data_for_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_contract_serialize( - contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _param = self._contracts_get_terms_transaction_history_serialize( + contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2743,7 +5051,7 @@ def contracts_get_consented_data_for_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetTermsTransactionHistory200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2761,9 +5069,9 @@ def contracts_get_consented_data_for_contract_with_http_info( @validate_call - def contracts_get_consented_data_for_contract_without_preload_content( + def contracts_get_terms_transaction_history_without_preload_content( self, - contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest, + contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2777,12 +5085,12 @@ def contracts_get_consented_data_for_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get the data that has been consented for a contract + """Gets Transaction History - This route grabs all the data that has been consented for a contract + Gets the transaction history for a set of Consent Flow Contract Terms - :param contracts_get_consented_data_for_contract_request: (required) - :type contracts_get_consented_data_for_contract_request: ContractsGetConsentedDataForContractRequest + :param contracts_get_terms_transaction_history_request: (required) + :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2805,8 +5113,8 @@ def contracts_get_consented_data_for_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_contract_serialize( - contracts_get_consented_data_for_contract_request=contracts_get_consented_data_for_contract_request, + _param = self._contracts_get_terms_transaction_history_serialize( + contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2814,7 +5122,7 @@ def contracts_get_consented_data_for_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForContract200Response", + '200': "ContractsGetTermsTransactionHistory200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2827,9 +5135,9 @@ def contracts_get_consented_data_for_contract_without_preload_content( return response_data.response - def _contracts_get_consented_data_for_contract_serialize( + def _contracts_get_terms_transaction_history_serialize( self, - contracts_get_consented_data_for_contract_request, + contracts_get_terms_transaction_history_request, _request_auth, _content_type, _headers, @@ -2855,8 +5163,8 @@ def _contracts_get_consented_data_for_contract_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_get_consented_data_for_contract_request is not None: - _body_params = contracts_get_consented_data_for_contract_request + if contracts_get_terms_transaction_history_request is not None: + _body_params = contracts_get_terms_transaction_history_request # set the HTTP header `Accept` @@ -2888,7 +5196,7 @@ def _contracts_get_consented_data_for_contract_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract/data-for-contract', + resource_path='/consent-flow-contract/consent/history', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2905,9 +5213,9 @@ def _contracts_get_consented_data_for_contract_serialize( @validate_call - def contracts_get_consented_data_for_did( + def contracts_mark_contract_request_as_seen( self, - contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2920,13 +5228,13 @@ def contracts_get_consented_data_for_did( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetConsentedDataForDid200Response: - """Get the data that has been consented by a did + ) -> bool: + """Marks a contract request as seen - This route grabs all the data that has been consented by a did + Updates the read status of a contract request to \"seen\" for the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_get_consented_data_for_did_request: (required) - :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param contracts_mark_contract_request_as_seen_request: (required) + :type contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2949,8 +5257,8 @@ def contracts_get_consented_data_for_did( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_did_serialize( - contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _param = self._contracts_mark_contract_request_as_seen_serialize( + contracts_mark_contract_request_as_seen_request=contracts_mark_contract_request_as_seen_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2958,7 +5266,7 @@ def contracts_get_consented_data_for_did( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForDid200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2976,9 +5284,9 @@ def contracts_get_consented_data_for_did( @validate_call - def contracts_get_consented_data_for_did_with_http_info( + def contracts_mark_contract_request_as_seen_with_http_info( self, - contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2991,13 +5299,13 @@ def contracts_get_consented_data_for_did_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetConsentedDataForDid200Response]: - """Get the data that has been consented by a did + ) -> ApiResponse[bool]: + """Marks a contract request as seen - This route grabs all the data that has been consented by a did + Updates the read status of a contract request to \"seen\" for the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_get_consented_data_for_did_request: (required) - :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param contracts_mark_contract_request_as_seen_request: (required) + :type contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3020,8 +5328,8 @@ def contracts_get_consented_data_for_did_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_did_serialize( - contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _param = self._contracts_mark_contract_request_as_seen_serialize( + contracts_mark_contract_request_as_seen_request=contracts_mark_contract_request_as_seen_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3029,7 +5337,7 @@ def contracts_get_consented_data_for_did_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForDid200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3047,9 +5355,9 @@ def contracts_get_consented_data_for_did_with_http_info( @validate_call - def contracts_get_consented_data_for_did_without_preload_content( + def contracts_mark_contract_request_as_seen_without_preload_content( self, - contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest, + contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3063,12 +5371,12 @@ def contracts_get_consented_data_for_did_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get the data that has been consented by a did + """Marks a contract request as seen - This route grabs all the data that has been consented by a did + Updates the read status of a contract request to \"seen\" for the specified target profile. Only contract writers are authorized to perform this action. - :param contracts_get_consented_data_for_did_request: (required) - :type contracts_get_consented_data_for_did_request: ContractsGetConsentedDataForDidRequest + :param contracts_mark_contract_request_as_seen_request: (required) + :type contracts_mark_contract_request_as_seen_request: ContractsMarkContractRequestAsSeenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3091,8 +5399,8 @@ def contracts_get_consented_data_for_did_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_consented_data_for_did_serialize( - contracts_get_consented_data_for_did_request=contracts_get_consented_data_for_did_request, + _param = self._contracts_mark_contract_request_as_seen_serialize( + contracts_mark_contract_request_as_seen_request=contracts_mark_contract_request_as_seen_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3100,7 +5408,7 @@ def contracts_get_consented_data_for_did_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetConsentedDataForDid200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3113,9 +5421,9 @@ def contracts_get_consented_data_for_did_without_preload_content( return response_data.response - def _contracts_get_consented_data_for_did_serialize( + def _contracts_mark_contract_request_as_seen_serialize( self, - contracts_get_consented_data_for_did_request, + contracts_mark_contract_request_as_seen_request, _request_auth, _content_type, _headers, @@ -3141,8 +5449,8 @@ def _contracts_get_consented_data_for_did_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_get_consented_data_for_did_request is not None: - _body_params = contracts_get_consented_data_for_did_request + if contracts_mark_contract_request_as_seen_request is not None: + _body_params = contracts_mark_contract_request_as_seen_request # set the HTTP header `Accept` @@ -3174,7 +5482,7 @@ def _contracts_get_consented_data_for_did_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract/data-for-did', + resource_path='/consent-flow-contracts/mark-request-as-seen', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3191,9 +5499,9 @@ def _contracts_get_consented_data_for_did_serialize( @validate_call - def contracts_get_credentials_for_contract( + def contracts_remove_auto_boosts_from_contract( self, - contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3206,13 +5514,13 @@ def contracts_get_credentials_for_contract( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetCredentialsForContract200Response: - """Get credentials issued via a contract + ) -> bool: + """Remove autoboosts from a contract - Gets all credentials that were issued via a contract + Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. - :param contracts_get_credentials_for_contract_request: (required) - :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param contracts_remove_auto_boosts_from_contract_request: (required) + :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3235,8 +5543,8 @@ def contracts_get_credentials_for_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_credentials_for_contract_serialize( - contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _param = self._contracts_remove_auto_boosts_from_contract_serialize( + contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3244,7 +5552,7 @@ def contracts_get_credentials_for_contract( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3262,9 +5570,9 @@ def contracts_get_credentials_for_contract( @validate_call - def contracts_get_credentials_for_contract_with_http_info( + def contracts_remove_auto_boosts_from_contract_with_http_info( self, - contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3277,13 +5585,13 @@ def contracts_get_credentials_for_contract_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetCredentialsForContract200Response]: - """Get credentials issued via a contract + ) -> ApiResponse[bool]: + """Remove autoboosts from a contract - Gets all credentials that were issued via a contract + Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. - :param contracts_get_credentials_for_contract_request: (required) - :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param contracts_remove_auto_boosts_from_contract_request: (required) + :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3306,8 +5614,8 @@ def contracts_get_credentials_for_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_credentials_for_contract_serialize( - contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _param = self._contracts_remove_auto_boosts_from_contract_serialize( + contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3315,7 +5623,7 @@ def contracts_get_credentials_for_contract_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3333,9 +5641,9 @@ def contracts_get_credentials_for_contract_with_http_info( @validate_call - def contracts_get_credentials_for_contract_without_preload_content( + def contracts_remove_auto_boosts_from_contract_without_preload_content( self, - contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest, + contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3349,12 +5657,12 @@ def contracts_get_credentials_for_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get credentials issued via a contract + """Remove autoboosts from a contract - Gets all credentials that were issued via a contract + Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. - :param contracts_get_credentials_for_contract_request: (required) - :type contracts_get_credentials_for_contract_request: ContractsGetCredentialsForContractRequest + :param contracts_remove_auto_boosts_from_contract_request: (required) + :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3377,8 +5685,8 @@ def contracts_get_credentials_for_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_credentials_for_contract_serialize( - contracts_get_credentials_for_contract_request=contracts_get_credentials_for_contract_request, + _param = self._contracts_remove_auto_boosts_from_contract_serialize( + contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3386,7 +5694,7 @@ def contracts_get_credentials_for_contract_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetCredentialsForContract200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3399,9 +5707,9 @@ def contracts_get_credentials_for_contract_without_preload_content( return response_data.response - def _contracts_get_credentials_for_contract_serialize( + def _contracts_remove_auto_boosts_from_contract_serialize( self, - contracts_get_credentials_for_contract_request, + contracts_remove_auto_boosts_from_contract_request, _request_auth, _content_type, _headers, @@ -3427,8 +5735,8 @@ def _contracts_get_credentials_for_contract_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_get_credentials_for_contract_request is not None: - _body_params = contracts_get_credentials_for_contract_request + if contracts_remove_auto_boosts_from_contract_request is not None: + _body_params = contracts_remove_auto_boosts_from_contract_request # set the HTTP header `Accept` @@ -3460,7 +5768,7 @@ def _contracts_get_credentials_for_contract_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract/credentials', + resource_path='/consent-flow-contracts/autoboosts/remove', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3477,9 +5785,9 @@ def _contracts_get_credentials_for_contract_serialize( @validate_call - def contracts_get_terms_transaction_history( + def contracts_send_ai_insight_share_request( self, - contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, + contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3492,13 +5800,13 @@ def contracts_get_terms_transaction_history( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ContractsGetTermsTransactionHistory200Response: - """Gets Transaction History + ) -> bool: + """AI Insights, consent flow share-notifcation request - Gets the transaction history for a set of Consent Flow Contract Terms + Sends the targeted user an AI insights share notification - :param contracts_get_terms_transaction_history_request: (required) - :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest + :param contracts_send_ai_insight_share_request_request: (required) + :type contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3521,8 +5829,8 @@ def contracts_get_terms_transaction_history( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_terms_transaction_history_serialize( - contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, + _param = self._contracts_send_ai_insight_share_request_serialize( + contracts_send_ai_insight_share_request_request=contracts_send_ai_insight_share_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3530,7 +5838,7 @@ def contracts_get_terms_transaction_history( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetTermsTransactionHistory200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3548,9 +5856,9 @@ def contracts_get_terms_transaction_history( @validate_call - def contracts_get_terms_transaction_history_with_http_info( + def contracts_send_ai_insight_share_request_with_http_info( self, - contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, + contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3563,13 +5871,13 @@ def contracts_get_terms_transaction_history_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ContractsGetTermsTransactionHistory200Response]: - """Gets Transaction History + ) -> ApiResponse[bool]: + """AI Insights, consent flow share-notifcation request - Gets the transaction history for a set of Consent Flow Contract Terms + Sends the targeted user an AI insights share notification - :param contracts_get_terms_transaction_history_request: (required) - :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest + :param contracts_send_ai_insight_share_request_request: (required) + :type contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3592,8 +5900,8 @@ def contracts_get_terms_transaction_history_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_terms_transaction_history_serialize( - contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, + _param = self._contracts_send_ai_insight_share_request_serialize( + contracts_send_ai_insight_share_request_request=contracts_send_ai_insight_share_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3601,7 +5909,7 @@ def contracts_get_terms_transaction_history_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetTermsTransactionHistory200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3619,9 +5927,9 @@ def contracts_get_terms_transaction_history_with_http_info( @validate_call - def contracts_get_terms_transaction_history_without_preload_content( + def contracts_send_ai_insight_share_request_without_preload_content( self, - contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest, + contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3635,12 +5943,12 @@ def contracts_get_terms_transaction_history_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Gets Transaction History + """AI Insights, consent flow share-notifcation request - Gets the transaction history for a set of Consent Flow Contract Terms + Sends the targeted user an AI insights share notification - :param contracts_get_terms_transaction_history_request: (required) - :type contracts_get_terms_transaction_history_request: ContractsGetTermsTransactionHistoryRequest + :param contracts_send_ai_insight_share_request_request: (required) + :type contracts_send_ai_insight_share_request_request: ContractsSendAiInsightShareRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3663,8 +5971,8 @@ def contracts_get_terms_transaction_history_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_get_terms_transaction_history_serialize( - contracts_get_terms_transaction_history_request=contracts_get_terms_transaction_history_request, + _param = self._contracts_send_ai_insight_share_request_serialize( + contracts_send_ai_insight_share_request_request=contracts_send_ai_insight_share_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3672,7 +5980,7 @@ def contracts_get_terms_transaction_history_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ContractsGetTermsTransactionHistory200Response", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3685,9 +5993,9 @@ def contracts_get_terms_transaction_history_without_preload_content( return response_data.response - def _contracts_get_terms_transaction_history_serialize( + def _contracts_send_ai_insight_share_request_serialize( self, - contracts_get_terms_transaction_history_request, + contracts_send_ai_insight_share_request_request, _request_auth, _content_type, _headers, @@ -3713,8 +6021,8 @@ def _contracts_get_terms_transaction_history_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_get_terms_transaction_history_request is not None: - _body_params = contracts_get_terms_transaction_history_request + if contracts_send_ai_insight_share_request_request is not None: + _body_params = contracts_send_ai_insight_share_request_request # set the HTTP header `Accept` @@ -3746,7 +6054,7 @@ def _contracts_get_terms_transaction_history_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contract/consent/history', + resource_path='/consent-flow-contracts/ai-insights/share-request', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3763,9 +6071,9 @@ def _contracts_get_terms_transaction_history_serialize( @validate_call - def contracts_remove_auto_boosts_from_contract( + def contracts_send_ai_insights_contract_request( self, - contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, + contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3779,12 +6087,12 @@ def contracts_remove_auto_boosts_from_contract( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: - """Remove autoboosts from a contract + """AI Insights, consent flow notifcation request - Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. + Sends the targeted user an AI insights consent flow request via a notification - :param contracts_remove_auto_boosts_from_contract_request: (required) - :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest + :param contracts_send_ai_insights_contract_request_request: (required) + :type contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3807,8 +6115,8 @@ def contracts_remove_auto_boosts_from_contract( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_remove_auto_boosts_from_contract_serialize( - contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, + _param = self._contracts_send_ai_insights_contract_request_serialize( + contracts_send_ai_insights_contract_request_request=contracts_send_ai_insights_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3834,9 +6142,9 @@ def contracts_remove_auto_boosts_from_contract( @validate_call - def contracts_remove_auto_boosts_from_contract_with_http_info( + def contracts_send_ai_insights_contract_request_with_http_info( self, - contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, + contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3850,12 +6158,12 @@ def contracts_remove_auto_boosts_from_contract_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: - """Remove autoboosts from a contract + """AI Insights, consent flow notifcation request - Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. + Sends the targeted user an AI insights consent flow request via a notification - :param contracts_remove_auto_boosts_from_contract_request: (required) - :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest + :param contracts_send_ai_insights_contract_request_request: (required) + :type contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3878,8 +6186,8 @@ def contracts_remove_auto_boosts_from_contract_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_remove_auto_boosts_from_contract_serialize( - contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, + _param = self._contracts_send_ai_insights_contract_request_serialize( + contracts_send_ai_insights_contract_request_request=contracts_send_ai_insights_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3905,9 +6213,9 @@ def contracts_remove_auto_boosts_from_contract_with_http_info( @validate_call - def contracts_remove_auto_boosts_from_contract_without_preload_content( + def contracts_send_ai_insights_contract_request_without_preload_content( self, - contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest, + contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3921,12 +6229,12 @@ def contracts_remove_auto_boosts_from_contract_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Remove autoboosts from a contract + """AI Insights, consent flow notifcation request - Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer. + Sends the targeted user an AI insights consent flow request via a notification - :param contracts_remove_auto_boosts_from_contract_request: (required) - :type contracts_remove_auto_boosts_from_contract_request: ContractsRemoveAutoBoostsFromContractRequest + :param contracts_send_ai_insights_contract_request_request: (required) + :type contracts_send_ai_insights_contract_request_request: ContractsSendAiInsightsContractRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3949,8 +6257,8 @@ def contracts_remove_auto_boosts_from_contract_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._contracts_remove_auto_boosts_from_contract_serialize( - contracts_remove_auto_boosts_from_contract_request=contracts_remove_auto_boosts_from_contract_request, + _param = self._contracts_send_ai_insights_contract_request_serialize( + contracts_send_ai_insights_contract_request_request=contracts_send_ai_insights_contract_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3971,9 +6279,9 @@ def contracts_remove_auto_boosts_from_contract_without_preload_content( return response_data.response - def _contracts_remove_auto_boosts_from_contract_serialize( + def _contracts_send_ai_insights_contract_request_serialize( self, - contracts_remove_auto_boosts_from_contract_request, + contracts_send_ai_insights_contract_request_request, _request_auth, _content_type, _headers, @@ -3999,8 +6307,8 @@ def _contracts_remove_auto_boosts_from_contract_serialize( # process the header parameters # process the form parameters # process the body parameter - if contracts_remove_auto_boosts_from_contract_request is not None: - _body_params = contracts_remove_auto_boosts_from_contract_request + if contracts_send_ai_insights_contract_request_request is not None: + _body_params = contracts_send_ai_insights_contract_request_request # set the HTTP header `Accept` @@ -4032,7 +6340,7 @@ def _contracts_remove_auto_boosts_from_contract_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/consent-flow-contracts/autoboosts/remove', + resource_path='/consent-flow-contracts/ai-insights/request', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4624,7 +6932,7 @@ def _contracts_update_consented_contract_terms_serialize( def contracts_verify_consent( self, uri: StrictStr, - profile_id: StrictStr, + profile_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4700,7 +7008,7 @@ def contracts_verify_consent( def contracts_verify_consent_with_http_info( self, uri: StrictStr, - profile_id: StrictStr, + profile_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4776,7 +7084,7 @@ def contracts_verify_consent_with_http_info( def contracts_verify_consent_without_preload_content( self, uri: StrictStr, - profile_id: StrictStr, + profile_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/credentials_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/credentials_api.py index cabe5f4e50..1e65f4b3e7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/credentials_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/credentials_api.py @@ -16,9 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictStr +from pydantic import StrictBool, StrictInt, StrictStr from typing import List, Optional -from typing_extensions import Annotated from openapi_client.models.credential_accept_credential_request import CredentialAcceptCredentialRequest from openapi_client.models.credential_received_credentials200_response_inner import CredentialReceivedCredentials200ResponseInner from openapi_client.models.credential_send_credential_request import CredentialSendCredentialRequest @@ -608,7 +607,7 @@ def _credential_delete_credential_serialize( @validate_call def credential_incoming_credentials( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -684,7 +683,7 @@ def credential_incoming_credentials( @validate_call def credential_incoming_credentials_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -760,7 +759,7 @@ def credential_incoming_credentials_with_http_info( @validate_call def credential_incoming_credentials_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -903,7 +902,7 @@ def _credential_incoming_credentials_serialize( @validate_call def credential_received_credentials( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -979,7 +978,7 @@ def credential_received_credentials( @validate_call def credential_received_credentials_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1055,7 +1054,7 @@ def credential_received_credentials_with_http_info( @validate_call def credential_received_credentials_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1499,7 +1498,7 @@ def _credential_send_credential_serialize( @validate_call def credential_sent_credentials( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1575,7 +1574,7 @@ def credential_sent_credentials( @validate_call def credential_sent_credentials_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1651,7 +1650,7 @@ def credential_sent_credentials_with_http_info( @validate_call def credential_sent_credentials_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/did_metadata_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/did_metadata_api.py index 3a270c36ed..693f89b819 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/did_metadata_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/did_metadata_api.py @@ -19,6 +19,7 @@ from pydantic import StrictBool, StrictStr from typing import List from openapi_client.models.did_metadata_add_did_metadata_request import DidMetadataAddDidMetadataRequest +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response from openapi_client.models.did_metadata_get_my_did_metadata200_response_inner import DidMetadataGetMyDidMetadata200ResponseInner from openapi_client.models.did_metadata_update_did_metadata_request import DidMetadataUpdateDidMetadataRequest @@ -618,7 +619,7 @@ def did_metadata_get_did_metadata( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DidMetadataAddDidMetadataRequest: + ) -> DidMetadataGetDidMetadata200Response: """Get DID Metadata Get DID Metadata @@ -656,7 +657,7 @@ def did_metadata_get_did_metadata( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DidMetadataAddDidMetadataRequest", + '200': "DidMetadataGetDidMetadata200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -690,7 +691,7 @@ def did_metadata_get_did_metadata_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DidMetadataAddDidMetadataRequest]: + ) -> ApiResponse[DidMetadataGetDidMetadata200Response]: """Get DID Metadata Get DID Metadata @@ -728,7 +729,7 @@ def did_metadata_get_did_metadata_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DidMetadataAddDidMetadataRequest", + '200': "DidMetadataGetDidMetadata200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -800,7 +801,7 @@ def did_metadata_get_did_metadata_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DidMetadataAddDidMetadataRequest", + '200': "DidMetadataGetDidMetadata200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/integrations_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/integrations_api.py new file mode 100644 index 0000000000..bbc5aaa82a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/integrations_api.py @@ -0,0 +1,2056 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Optional, Union +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class IntegrationsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def integrations_add_integration( + self, + integrations_add_integration_request: IntegrationsAddIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> str: + """Create Integration + + Create a new Integration for your profile + + :param integrations_add_integration_request: (required) + :type integrations_add_integration_request: IntegrationsAddIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_add_integration_serialize( + integrations_add_integration_request=integrations_add_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_add_integration_with_http_info( + self, + integrations_add_integration_request: IntegrationsAddIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[str]: + """Create Integration + + Create a new Integration for your profile + + :param integrations_add_integration_request: (required) + :type integrations_add_integration_request: IntegrationsAddIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_add_integration_serialize( + integrations_add_integration_request=integrations_add_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_add_integration_without_preload_content( + self, + integrations_add_integration_request: IntegrationsAddIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Integration + + Create a new Integration for your profile + + :param integrations_add_integration_request: (required) + :type integrations_add_integration_request: IntegrationsAddIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_add_integration_serialize( + integrations_add_integration_request=integrations_add_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_add_integration_serialize( + self, + integrations_add_integration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if integrations_add_integration_request is not None: + _body_params = integrations_add_integration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/integration/create', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_associate_integration_with_signing_authority( + self, + integration_id: Optional[StrictStr], + integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Associate Integration with Signing Authority + + Associate an Integration with a Signing Authority + + :param integration_id: (required) + :type integration_id: str + :param integrations_associate_integration_with_signing_authority_request: (required) + :type integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_associate_integration_with_signing_authority_serialize( + integration_id=integration_id, + integrations_associate_integration_with_signing_authority_request=integrations_associate_integration_with_signing_authority_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_associate_integration_with_signing_authority_with_http_info( + self, + integration_id: Optional[StrictStr], + integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Associate Integration with Signing Authority + + Associate an Integration with a Signing Authority + + :param integration_id: (required) + :type integration_id: str + :param integrations_associate_integration_with_signing_authority_request: (required) + :type integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_associate_integration_with_signing_authority_serialize( + integration_id=integration_id, + integrations_associate_integration_with_signing_authority_request=integrations_associate_integration_with_signing_authority_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_associate_integration_with_signing_authority_without_preload_content( + self, + integration_id: Optional[StrictStr], + integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Associate Integration with Signing Authority + + Associate an Integration with a Signing Authority + + :param integration_id: (required) + :type integration_id: str + :param integrations_associate_integration_with_signing_authority_request: (required) + :type integrations_associate_integration_with_signing_authority_request: IntegrationsAssociateIntegrationWithSigningAuthorityRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_associate_integration_with_signing_authority_serialize( + integration_id=integration_id, + integrations_associate_integration_with_signing_authority_request=integrations_associate_integration_with_signing_authority_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_associate_integration_with_signing_authority_serialize( + self, + integration_id, + integrations_associate_integration_with_signing_authority_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if integration_id is not None: + _path_params['integrationId'] = integration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if integrations_associate_integration_with_signing_authority_request is not None: + _body_params = integrations_associate_integration_with_signing_authority_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/integration/{integrationId}/associate-with-signing-authority', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_count_integrations( + self, + integrations_count_integrations_request: Optional[IntegrationsCountIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> float: + """Count My Integrations + + Get a count of your Integrations matching a query + + :param integrations_count_integrations_request: + :type integrations_count_integrations_request: IntegrationsCountIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_count_integrations_serialize( + integrations_count_integrations_request=integrations_count_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_count_integrations_with_http_info( + self, + integrations_count_integrations_request: Optional[IntegrationsCountIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[float]: + """Count My Integrations + + Get a count of your Integrations matching a query + + :param integrations_count_integrations_request: + :type integrations_count_integrations_request: IntegrationsCountIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_count_integrations_serialize( + integrations_count_integrations_request=integrations_count_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_count_integrations_without_preload_content( + self, + integrations_count_integrations_request: Optional[IntegrationsCountIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count My Integrations + + Get a count of your Integrations matching a query + + :param integrations_count_integrations_request: + :type integrations_count_integrations_request: IntegrationsCountIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_count_integrations_serialize( + integrations_count_integrations_request=integrations_count_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "float", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_count_integrations_serialize( + self, + integrations_count_integrations_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if integrations_count_integrations_request is not None: + _body_params = integrations_count_integrations_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/integrations/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_delete_integration( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Delete Integration + + Delete an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_delete_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_delete_integration_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Delete Integration + + Delete an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_delete_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_delete_integration_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Integration + + Delete an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_delete_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_delete_integration_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/integration/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_get_integration( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> IntegrationsGetIntegration200Response: + """Get Integration + + Get an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_get_integration_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[IntegrationsGetIntegration200Response]: + """Get Integration + + Get an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_get_integration_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Integration + + Get an Integration by id + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integration_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegration200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_get_integration_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/integration/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_get_integrations( + self, + integrations_get_integrations_request: Optional[IntegrationsGetIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> IntegrationsGetIntegrations200Response: + """Get My Integrations + + Get your Integrations with cursor-based pagination + + :param integrations_get_integrations_request: + :type integrations_get_integrations_request: IntegrationsGetIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integrations_serialize( + integrations_get_integrations_request=integrations_get_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegrations200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_get_integrations_with_http_info( + self, + integrations_get_integrations_request: Optional[IntegrationsGetIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[IntegrationsGetIntegrations200Response]: + """Get My Integrations + + Get your Integrations with cursor-based pagination + + :param integrations_get_integrations_request: + :type integrations_get_integrations_request: IntegrationsGetIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integrations_serialize( + integrations_get_integrations_request=integrations_get_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegrations200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_get_integrations_without_preload_content( + self, + integrations_get_integrations_request: Optional[IntegrationsGetIntegrationsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get My Integrations + + Get your Integrations with cursor-based pagination + + :param integrations_get_integrations_request: + :type integrations_get_integrations_request: IntegrationsGetIntegrationsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_get_integrations_serialize( + integrations_get_integrations_request=integrations_get_integrations_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IntegrationsGetIntegrations200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_get_integrations_serialize( + self, + integrations_get_integrations_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if integrations_get_integrations_request is not None: + _body_params = integrations_get_integrations_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/integrations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def integrations_update_integration( + self, + id: StrictStr, + integrations_update_integration_request: IntegrationsUpdateIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Update Integration + + Update an Integration by id + + :param id: (required) + :type id: str + :param integrations_update_integration_request: (required) + :type integrations_update_integration_request: IntegrationsUpdateIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_update_integration_serialize( + id=id, + integrations_update_integration_request=integrations_update_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def integrations_update_integration_with_http_info( + self, + id: StrictStr, + integrations_update_integration_request: IntegrationsUpdateIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Update Integration + + Update an Integration by id + + :param id: (required) + :type id: str + :param integrations_update_integration_request: (required) + :type integrations_update_integration_request: IntegrationsUpdateIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_update_integration_serialize( + id=id, + integrations_update_integration_request=integrations_update_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def integrations_update_integration_without_preload_content( + self, + id: StrictStr, + integrations_update_integration_request: IntegrationsUpdateIntegrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Integration + + Update an Integration by id + + :param id: (required) + :type id: str + :param integrations_update_integration_request: (required) + :type integrations_update_integration_request: IntegrationsUpdateIntegrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._integrations_update_integration_serialize( + id=id, + integrations_update_integration_request=integrations_update_integration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _integrations_update_integration_serialize( + self, + id, + integrations_update_integration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if integrations_update_integration_request is not None: + _body_params = integrations_update_integration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/integration/update/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/presentations_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/presentations_api.py index 3c8bacfd02..1f640f7dc7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/presentations_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/presentations_api.py @@ -16,9 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictStr +from pydantic import StrictBool, StrictInt, StrictStr from typing import List, Optional -from typing_extensions import Annotated from openapi_client.models.credential_received_credentials200_response_inner import CredentialReceivedCredentials200ResponseInner from openapi_client.models.presentation_accept_presentation_request import PresentationAcceptPresentationRequest from openapi_client.models.presentation_send_presentation_request import PresentationSendPresentationRequest @@ -608,7 +607,7 @@ def _presentation_delete_presentation_serialize( @validate_call def presentation_incoming_presentations( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -684,7 +683,7 @@ def presentation_incoming_presentations( @validate_call def presentation_incoming_presentations_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -760,7 +759,7 @@ def presentation_incoming_presentations_with_http_info( @validate_call def presentation_incoming_presentations_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -903,7 +902,7 @@ def _presentation_incoming_presentations_serialize( @validate_call def presentation_received_presentations( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -979,7 +978,7 @@ def presentation_received_presentations( @validate_call def presentation_received_presentations_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1055,7 +1054,7 @@ def presentation_received_presentations_with_http_info( @validate_call def presentation_received_presentations_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, var_from: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1499,7 +1498,7 @@ def _presentation_send_presentation_serialize( @validate_call def presentation_sent_presentations( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1575,7 +1574,7 @@ def presentation_sent_presentations( @validate_call def presentation_sent_presentations_with_http_info( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1651,7 +1650,7 @@ def presentation_sent_presentations_with_http_info( @validate_call def presentation_sent_presentations_without_preload_content( self, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + limit: Optional[StrictInt] = None, to: Optional[StrictStr] = None, _request_timeout: Union[ None, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/profile_managers_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/profile_managers_api.py index 64171a8c5f..666a34d5f7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/profile_managers_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/profile_managers_api.py @@ -20,12 +20,13 @@ from typing import Optional from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response from openapi_client.models.boost_get_children_profile_managers200_response import BoostGetChildrenProfileManagers200Response -from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner from openapi_client.models.boost_get_children_profile_managers_request import BoostGetChildrenProfileManagersRequest -from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager from openapi_client.models.profile_manager_create_child_profile_manager_request import ProfileManagerCreateChildProfileManagerRequest +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile from openapi_client.models.profile_manager_create_managed_profile_request import ProfileManagerCreateManagedProfileRequest from openapi_client.models.profile_manager_create_profile_manager_request import ProfileManagerCreateProfileManagerRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest from openapi_client.api_client import ApiClient, RequestSerialized from openapi_client.api_response import ApiResponse @@ -1192,7 +1193,7 @@ def _profile_manager_create_profile_manager_serialize( @validate_call def profile_manager_get_managed_profiles( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1210,8 +1211,8 @@ def profile_manager_get_managed_profiles( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1235,7 +1236,7 @@ def profile_manager_get_managed_profiles( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1263,7 +1264,7 @@ def profile_manager_get_managed_profiles( @validate_call def profile_manager_get_managed_profiles_with_http_info( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1281,8 +1282,8 @@ def profile_manager_get_managed_profiles_with_http_info( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1306,7 +1307,7 @@ def profile_manager_get_managed_profiles_with_http_info( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1334,7 +1335,7 @@ def profile_manager_get_managed_profiles_with_http_info( @validate_call def profile_manager_get_managed_profiles_without_preload_content( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1352,8 +1353,8 @@ def profile_manager_get_managed_profiles_without_preload_content( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1377,7 +1378,7 @@ def profile_manager_get_managed_profiles_without_preload_content( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1400,7 +1401,7 @@ def profile_manager_get_managed_profiles_without_preload_content( def _profile_manager_get_managed_profiles_serialize( self, - profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request, _request_auth, _content_type, _headers, @@ -1426,8 +1427,8 @@ def _profile_manager_get_managed_profiles_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_get_available_profiles_request is not None: - _body_params = profile_get_available_profiles_request + if profile_manager_get_managed_profiles_request is not None: + _body_params = profile_manager_get_managed_profiles_request # set the HTTP header `Accept` @@ -1478,7 +1479,7 @@ def _profile_manager_get_managed_profiles_serialize( @validate_call def profile_manager_get_other_profile_manager( self, - id: StrictStr, + id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1491,7 +1492,7 @@ def profile_manager_get_other_profile_manager( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetChildrenProfileManagers200ResponseRecordsInner: + ) -> ProfileGetAvailableProfiles200ResponseRecordsInnerManager: """Get profile manager information This route grabs the profile information of any profile manager, using their id @@ -1529,7 +1530,7 @@ def profile_manager_get_other_profile_manager( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1550,7 +1551,7 @@ def profile_manager_get_other_profile_manager( @validate_call def profile_manager_get_other_profile_manager_with_http_info( self, - id: StrictStr, + id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1563,7 +1564,7 @@ def profile_manager_get_other_profile_manager_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetChildrenProfileManagers200ResponseRecordsInner]: + ) -> ApiResponse[ProfileGetAvailableProfiles200ResponseRecordsInnerManager]: """Get profile manager information This route grabs the profile information of any profile manager, using their id @@ -1601,7 +1602,7 @@ def profile_manager_get_other_profile_manager_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1622,7 +1623,7 @@ def profile_manager_get_other_profile_manager_with_http_info( @validate_call def profile_manager_get_other_profile_manager_without_preload_content( self, - id: StrictStr, + id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1673,7 +1674,7 @@ def profile_manager_get_other_profile_manager_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -1766,7 +1767,7 @@ def profile_manager_get_profile_manager( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetChildrenProfileManagers200ResponseRecordsInner: + ) -> ProfileGetAvailableProfiles200ResponseRecordsInnerManager: """Get your profile manager profile information This route uses the request header to grab the profile manager profile of the current profile manager @@ -1801,7 +1802,7 @@ def profile_manager_get_profile_manager( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1832,7 +1833,7 @@ def profile_manager_get_profile_manager_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetChildrenProfileManagers200ResponseRecordsInner]: + ) -> ApiResponse[ProfileGetAvailableProfiles200ResponseRecordsInnerManager]: """Get your profile manager profile information This route uses the request header to grab the profile manager profile of the current profile manager @@ -1867,7 +1868,7 @@ def profile_manager_get_profile_manager_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1933,7 +1934,7 @@ def profile_manager_get_profile_manager_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetChildrenProfileManagers200ResponseRecordsInner", + '200': "ProfileGetAvailableProfiles200ResponseRecordsInnerManager", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2009,7 +2010,7 @@ def _profile_manager_get_profile_manager_serialize( @validate_call def profile_manager_update_profile_manager( self, - profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest, + profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2027,8 +2028,8 @@ def profile_manager_update_profile_manager( This route updates the profile of the current profile manager - :param profile_manager_create_profile_manager_request: (required) - :type profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest + :param profile_manager_create_child_profile_manager_request_profile: (required) + :type profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2052,7 +2053,7 @@ def profile_manager_update_profile_manager( """ # noqa: E501 _param = self._profile_manager_update_profile_manager_serialize( - profile_manager_create_profile_manager_request=profile_manager_create_profile_manager_request, + profile_manager_create_child_profile_manager_request_profile=profile_manager_create_child_profile_manager_request_profile, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2080,7 +2081,7 @@ def profile_manager_update_profile_manager( @validate_call def profile_manager_update_profile_manager_with_http_info( self, - profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest, + profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2098,8 +2099,8 @@ def profile_manager_update_profile_manager_with_http_info( This route updates the profile of the current profile manager - :param profile_manager_create_profile_manager_request: (required) - :type profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest + :param profile_manager_create_child_profile_manager_request_profile: (required) + :type profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2123,7 +2124,7 @@ def profile_manager_update_profile_manager_with_http_info( """ # noqa: E501 _param = self._profile_manager_update_profile_manager_serialize( - profile_manager_create_profile_manager_request=profile_manager_create_profile_manager_request, + profile_manager_create_child_profile_manager_request_profile=profile_manager_create_child_profile_manager_request_profile, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2151,7 +2152,7 @@ def profile_manager_update_profile_manager_with_http_info( @validate_call def profile_manager_update_profile_manager_without_preload_content( self, - profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest, + profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2169,8 +2170,8 @@ def profile_manager_update_profile_manager_without_preload_content( This route updates the profile of the current profile manager - :param profile_manager_create_profile_manager_request: (required) - :type profile_manager_create_profile_manager_request: ProfileManagerCreateProfileManagerRequest + :param profile_manager_create_child_profile_manager_request_profile: (required) + :type profile_manager_create_child_profile_manager_request_profile: ProfileManagerCreateChildProfileManagerRequestProfile :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2194,7 +2195,7 @@ def profile_manager_update_profile_manager_without_preload_content( """ # noqa: E501 _param = self._profile_manager_update_profile_manager_serialize( - profile_manager_create_profile_manager_request=profile_manager_create_profile_manager_request, + profile_manager_create_child_profile_manager_request_profile=profile_manager_create_child_profile_manager_request_profile, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2217,7 +2218,7 @@ def profile_manager_update_profile_manager_without_preload_content( def _profile_manager_update_profile_manager_serialize( self, - profile_manager_create_profile_manager_request, + profile_manager_create_child_profile_manager_request_profile, _request_auth, _content_type, _headers, @@ -2243,8 +2244,8 @@ def _profile_manager_update_profile_manager_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_manager_create_profile_manager_request is not None: - _body_params = profile_manager_create_profile_manager_request + if profile_manager_create_child_profile_manager_request_profile is not None: + _body_params = profile_manager_create_child_profile_manager_request_profile # set the HTTP header `Accept` diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/profiles_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/profiles_api.py index f58d09d745..14c46cb289 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/profiles_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/profiles_api.py @@ -16,21 +16,28 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr from typing import List, Optional, Union -from typing_extensions import Annotated from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest from openapi_client.models.profile_create_profile_request import ProfileCreateProfileRequest +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest from openapi_client.models.profile_generate_invite200_response import ProfileGenerateInvite200Response from openapi_client.models.profile_generate_invite_request import ProfileGenerateInviteRequest from openapi_client.models.profile_get_available_profiles200_response import ProfileGetAvailableProfiles200Response from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner from openapi_client.models.profile_manager_create_managed_profile_request import ProfileManagerCreateManagedProfileRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest from openapi_client.models.profile_register_signing_authority_request import ProfileRegisterSigningAuthorityRequest from openapi_client.models.profile_search_profiles200_response_inner import ProfileSearchProfiles200ResponseInner from openapi_client.models.profile_set_primary_signing_authority_request import ProfileSetPrimarySigningAuthorityRequest from openapi_client.models.profile_signing_authorities200_response_inner import ProfileSigningAuthorities200ResponseInner +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response from openapi_client.models.profile_update_profile_request import ProfileUpdateProfileRequest from openapi_client.api_client import ApiClient, RequestSerialized @@ -52,9 +59,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def profile_accept_connection_request( + def inbox_approve_guardian_request( self, - profile_id: StrictStr, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67,13 +74,13 @@ def profile_accept_connection_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Accept Connection Request + ) -> ContactMethodsSendChallenge200Response: + """Approve Guardian Request - This route uses the request header to accept a connection request from another user based on their profileId + Consumes a guardian approval token and marks the requesting user profile as approved. - :param profile_id: (required) - :type profile_id: str + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96,8 +103,8 @@ def profile_accept_connection_request( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_accept_connection_request_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105,7 +112,7 @@ def profile_accept_connection_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -123,9 +130,9 @@ def profile_accept_connection_request( @validate_call - def profile_accept_connection_request_with_http_info( + def inbox_approve_guardian_request_with_http_info( self, - profile_id: StrictStr, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -138,13 +145,13 @@ def profile_accept_connection_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Accept Connection Request + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Approve Guardian Request - This route uses the request header to accept a connection request from another user based on their profileId + Consumes a guardian approval token and marks the requesting user profile as approved. - :param profile_id: (required) - :type profile_id: str + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -167,8 +174,8 @@ def profile_accept_connection_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_accept_connection_request_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -176,7 +183,7 @@ def profile_accept_connection_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -194,9 +201,9 @@ def profile_accept_connection_request_with_http_info( @validate_call - def profile_accept_connection_request_without_preload_content( + def inbox_approve_guardian_request_without_preload_content( self, - profile_id: StrictStr, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -210,12 +217,12 @@ def profile_accept_connection_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Accept Connection Request + """Approve Guardian Request - This route uses the request header to accept a connection request from another user based on their profileId + Consumes a guardian approval token and marks the requesting user profile as approved. - :param profile_id: (required) - :type profile_id: str + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -238,8 +245,8 @@ def profile_accept_connection_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_accept_connection_request_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -247,7 +254,7 @@ def profile_accept_connection_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -260,9 +267,9 @@ def profile_accept_connection_request_without_preload_content( return response_data.response - def _profile_accept_connection_request_serialize( + def _inbox_approve_guardian_request_serialize( self, - profile_id, + inbox_approve_guardian_request_request, _request_auth, _content_type, _headers, @@ -284,12 +291,12 @@ def _profile_accept_connection_request_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if inbox_approve_guardian_request_request is not None: + _body_params = inbox_approve_guardian_request_request # set the HTTP header `Accept` @@ -300,6 +307,19 @@ def _profile_accept_connection_request_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -308,7 +328,7 @@ def _profile_accept_connection_request_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/{profileId}/accept-connection', + resource_path='/inbox/guardian-approval/approve', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -325,9 +345,9 @@ def _profile_accept_connection_request_serialize( @validate_call - def profile_block_profile( + def inbox_approve_guardian_request_by_path( self, - profile_id: StrictStr, + token: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -340,13 +360,13 @@ def profile_block_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Block another profile + ) -> ContactMethodsSendChallenge200Response: + """Approve Guardian Request (GET) - Block another user based on their profileId + GET endpoint to consume guardian approval token from URL path. - :param profile_id: (required) - :type profile_id: str + :param token: (required) + :type token: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -369,8 +389,8 @@ def profile_block_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_block_profile_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -378,10 +398,11 @@ def profile_block_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -396,9 +417,9 @@ def profile_block_profile( @validate_call - def profile_block_profile_with_http_info( + def inbox_approve_guardian_request_by_path_with_http_info( self, - profile_id: StrictStr, + token: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -411,13 +432,13 @@ def profile_block_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Block another profile + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Approve Guardian Request (GET) - Block another user based on their profileId + GET endpoint to consume guardian approval token from URL path. - :param profile_id: (required) - :type profile_id: str + :param token: (required) + :type token: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -440,8 +461,8 @@ def profile_block_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_block_profile_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -449,10 +470,11 @@ def profile_block_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -467,9 +489,9 @@ def profile_block_profile_with_http_info( @validate_call - def profile_block_profile_without_preload_content( + def inbox_approve_guardian_request_by_path_without_preload_content( self, - profile_id: StrictStr, + token: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -483,12 +505,12 @@ def profile_block_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Block another profile + """Approve Guardian Request (GET) - Block another user based on their profileId + GET endpoint to consume guardian approval token from URL path. - :param profile_id: (required) - :type profile_id: str + :param token: (required) + :type token: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -511,8 +533,8 @@ def profile_block_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_block_profile_serialize( - profile_id=profile_id, + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -520,10 +542,11 @@ def profile_block_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "ContactMethodsSendChallenge200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -533,9 +556,9 @@ def profile_block_profile_without_preload_content( return response_data.response - def _profile_block_profile_serialize( + def _inbox_approve_guardian_request_by_path_serialize( self, - profile_id, + token, _request_auth, _content_type, _headers, @@ -557,8 +580,8 @@ def _profile_block_profile_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id + if token is not None: + _path_params['token'] = token # process the query parameters # process the header parameters # process the form parameters @@ -580,8 +603,8 @@ def _profile_block_profile_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/profile/{profileId}/block', + method='GET', + resource_path='/inbox/guardian-approval/{token}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -598,8 +621,9 @@ def _profile_block_profile_serialize( @validate_call - def profile_blocked( + def inbox_send_guardian_approval_email( self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -612,11 +636,13 @@ def profile_blocked( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoostRecipients200ResponseInnerTo]: - """View blocked profiles + ) -> InboxSendGuardianApprovalEmail200Response: + """Send Guardian Approval Email - This route shows the current user's blocked profiles + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -639,7 +665,8 @@ def profile_blocked( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_blocked_serialize( + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -647,7 +674,8 @@ def profile_blocked( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -664,8 +692,9 @@ def profile_blocked( @validate_call - def profile_blocked_with_http_info( + def inbox_send_guardian_approval_email_with_http_info( self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -678,11 +707,13 @@ def profile_blocked_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInnerTo]]: - """View blocked profiles + ) -> ApiResponse[InboxSendGuardianApprovalEmail200Response]: + """Send Guardian Approval Email - This route shows the current user's blocked profiles + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -705,7 +736,8 @@ def profile_blocked_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_blocked_serialize( + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -713,7 +745,8 @@ def profile_blocked_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -730,8 +763,9 @@ def profile_blocked_with_http_info( @validate_call - def profile_blocked_without_preload_content( + def inbox_send_guardian_approval_email_without_preload_content( self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -745,10 +779,12 @@ def profile_blocked_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """View blocked profiles + """Send Guardian Approval Email - This route shows the current user's blocked profiles + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -771,7 +807,8 @@ def profile_blocked_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_blocked_serialize( + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -779,7 +816,8 @@ def profile_blocked_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -791,8 +829,9 @@ def profile_blocked_without_preload_content( return response_data.response - def _profile_blocked_serialize( + def _inbox_send_guardian_approval_email_serialize( self, + inbox_send_guardian_approval_email_request, _request_auth, _content_type, _headers, @@ -818,6 +857,8 @@ def _profile_blocked_serialize( # process the header parameters # process the form parameters # process the body parameter + if inbox_send_guardian_approval_email_request is not None: + _body_params = inbox_send_guardian_approval_email_request # set the HTTP header `Accept` @@ -828,6 +869,19 @@ def _profile_blocked_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -835,8 +889,8 @@ def _profile_blocked_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/profile/blocked', + method='POST', + resource_path='/inbox/guardian-approval/send', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -853,7 +907,7 @@ def _profile_blocked_serialize( @validate_call - def profile_cancel_connection_request( + def profile_accept_connection_request( self, profile_id: StrictStr, _request_timeout: Union[ @@ -869,9 +923,9 @@ def profile_cancel_connection_request( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: - """Cancel Connection Request + """Accept Connection Request - Cancels connection request with another profile + This route uses the request header to accept a connection request from another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -897,7 +951,7 @@ def profile_cancel_connection_request( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_cancel_connection_request_serialize( + _param = self._profile_accept_connection_request_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -924,7 +978,7 @@ def profile_cancel_connection_request( @validate_call - def profile_cancel_connection_request_with_http_info( + def profile_accept_connection_request_with_http_info( self, profile_id: StrictStr, _request_timeout: Union[ @@ -940,9 +994,9 @@ def profile_cancel_connection_request_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: - """Cancel Connection Request + """Accept Connection Request - Cancels connection request with another profile + This route uses the request header to accept a connection request from another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -968,7 +1022,7 @@ def profile_cancel_connection_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_cancel_connection_request_serialize( + _param = self._profile_accept_connection_request_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -995,7 +1049,7 @@ def profile_cancel_connection_request_with_http_info( @validate_call - def profile_cancel_connection_request_without_preload_content( + def profile_accept_connection_request_without_preload_content( self, profile_id: StrictStr, _request_timeout: Union[ @@ -1011,9 +1065,9 @@ def profile_cancel_connection_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Cancel Connection Request + """Accept Connection Request - Cancels connection request with another profile + This route uses the request header to accept a connection request from another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -1039,7 +1093,7 @@ def profile_cancel_connection_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_cancel_connection_request_serialize( + _param = self._profile_accept_connection_request_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1061,7 +1115,7 @@ def profile_cancel_connection_request_without_preload_content( return response_data.response - def _profile_cancel_connection_request_serialize( + def _profile_accept_connection_request_serialize( self, profile_id, _request_auth, @@ -1109,7 +1163,7 @@ def _profile_cancel_connection_request_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/{profileId}/cancel-connection-request', + resource_path='/profile/{profileId}/accept-connection', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1126,7 +1180,7 @@ def _profile_cancel_connection_request_serialize( @validate_call - def profile_connect_with( + def profile_block_profile( self, profile_id: StrictStr, _request_timeout: Union[ @@ -1142,9 +1196,9 @@ def profile_connect_with( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: - """Connect with another profile + """Block another profile - This route uses the request header to send a connection request to another user based on their profileId + Block another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -1170,7 +1224,7 @@ def profile_connect_with( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_serialize( + _param = self._profile_block_profile_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1197,7 +1251,7 @@ def profile_connect_with( @validate_call - def profile_connect_with_with_http_info( + def profile_block_profile_with_http_info( self, profile_id: StrictStr, _request_timeout: Union[ @@ -1213,9 +1267,9 @@ def profile_connect_with_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: - """Connect with another profile + """Block another profile - This route uses the request header to send a connection request to another user based on their profileId + Block another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -1241,7 +1295,7 @@ def profile_connect_with_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_serialize( + _param = self._profile_block_profile_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1268,7 +1322,7 @@ def profile_connect_with_with_http_info( @validate_call - def profile_connect_with_without_preload_content( + def profile_block_profile_without_preload_content( self, profile_id: StrictStr, _request_timeout: Union[ @@ -1284,9 +1338,9 @@ def profile_connect_with_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Connect with another profile + """Block another profile - This route uses the request header to send a connection request to another user based on their profileId + Block another user based on their profileId :param profile_id: (required) :type profile_id: str @@ -1312,7 +1366,7 @@ def profile_connect_with_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_serialize( + _param = self._profile_block_profile_serialize( profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1334,7 +1388,7 @@ def profile_connect_with_without_preload_content( return response_data.response - def _profile_connect_with_serialize( + def _profile_block_profile_serialize( self, profile_id, _request_auth, @@ -1382,7 +1436,7 @@ def _profile_connect_with_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/{profileId}/connect', + resource_path='/profile/{profileId}/block', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1399,10 +1453,8 @@ def _profile_connect_with_serialize( @validate_call - def profile_connect_with_invite( + def profile_blocked( self, - profile_id: StrictStr, - challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1415,15 +1467,11 @@ def profile_connect_with_invite( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Connect using an invitation + ) -> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """View blocked profiles - Connects with another profile using an invitation challenge + This route shows the current user's blocked profiles - :param profile_id: (required) - :type profile_id: str - :param challenge: (required) - :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1446,9 +1494,7 @@ def profile_connect_with_invite( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_invite_serialize( - profile_id=profile_id, - challenge=challenge, + _param = self._profile_blocked_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1456,8 +1502,7 @@ def profile_connect_with_invite( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1474,10 +1519,8 @@ def profile_connect_with_invite( @validate_call - def profile_connect_with_invite_with_http_info( + def profile_blocked_with_http_info( self, - profile_id: StrictStr, - challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1490,15 +1533,11 @@ def profile_connect_with_invite_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Connect using an invitation + ) -> ApiResponse[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]]: + """View blocked profiles - Connects with another profile using an invitation challenge + This route shows the current user's blocked profiles - :param profile_id: (required) - :type profile_id: str - :param challenge: (required) - :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1521,9 +1560,7 @@ def profile_connect_with_invite_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_invite_serialize( - profile_id=profile_id, - challenge=challenge, + _param = self._profile_blocked_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1531,8 +1568,7 @@ def profile_connect_with_invite_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1549,10 +1585,8 @@ def profile_connect_with_invite_with_http_info( @validate_call - def profile_connect_with_invite_without_preload_content( + def profile_blocked_without_preload_content( self, - profile_id: StrictStr, - challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1566,14 +1600,10 @@ def profile_connect_with_invite_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Connect using an invitation + """View blocked profiles - Connects with another profile using an invitation challenge + This route shows the current user's blocked profiles - :param profile_id: (required) - :type profile_id: str - :param challenge: (required) - :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1596,9 +1626,7 @@ def profile_connect_with_invite_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_connect_with_invite_serialize( - profile_id=profile_id, - challenge=challenge, + _param = self._profile_blocked_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1606,8 +1634,7 @@ def profile_connect_with_invite_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1619,10 +1646,8 @@ def profile_connect_with_invite_without_preload_content( return response_data.response - def _profile_connect_with_invite_serialize( + def _profile_blocked_serialize( self, - profile_id, - challenge, _request_auth, _content_type, _headers, @@ -1644,10 +1669,6 @@ def _profile_connect_with_invite_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id - if challenge is not None: - _path_params['challenge'] = challenge # process the query parameters # process the header parameters # process the form parameters @@ -1669,8 +1690,8 @@ def _profile_connect_with_invite_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/profile/{profileId}/connect/{challenge}', + method='GET', + resource_path='/profile/blocked', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1687,8 +1708,9 @@ def _profile_connect_with_invite_serialize( @validate_call - def profile_connection_requests( + def profile_cancel_connection_request( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1701,11 +1723,13 @@ def profile_connection_requests( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoostRecipients200ResponseInnerTo]: - """(Deprecated) View connection requests + ) -> bool: + """Cancel Connection Request - This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead + Cancels connection request with another profile + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1727,9 +1751,9 @@ def profile_connection_requests( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_connection_requests_serialize( + _param = self._profile_cancel_connection_request_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1737,7 +1761,8 @@ def profile_connection_requests( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1754,8 +1779,9 @@ def profile_connection_requests( @validate_call - def profile_connection_requests_with_http_info( + def profile_cancel_connection_request_with_http_info( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1768,11 +1794,13 @@ def profile_connection_requests_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInnerTo]]: - """(Deprecated) View connection requests + ) -> ApiResponse[bool]: + """Cancel Connection Request - This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead + Cancels connection request with another profile + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1794,9 +1822,9 @@ def profile_connection_requests_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_connection_requests_serialize( + _param = self._profile_cancel_connection_request_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1804,7 +1832,8 @@ def profile_connection_requests_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1821,8 +1850,9 @@ def profile_connection_requests_with_http_info( @validate_call - def profile_connection_requests_without_preload_content( + def profile_cancel_connection_request_without_preload_content( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1836,10 +1866,12 @@ def profile_connection_requests_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) View connection requests + """Cancel Connection Request - This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead + Cancels connection request with another profile + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1861,9 +1893,9 @@ def profile_connection_requests_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_connection_requests_serialize( + _param = self._profile_cancel_connection_request_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1871,7 +1903,8 @@ def profile_connection_requests_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -1883,8 +1916,9 @@ def profile_connection_requests_without_preload_content( return response_data.response - def _profile_connection_requests_serialize( + def _profile_cancel_connection_request_serialize( self, + profile_id, _request_auth, _content_type, _headers, @@ -1906,6 +1940,8 @@ def _profile_connection_requests_serialize( _body_params: Optional[bytes] = None # process the path parameters + if profile_id is not None: + _path_params['profileId'] = profile_id # process the query parameters # process the header parameters # process the form parameters @@ -1927,8 +1963,8 @@ def _profile_connection_requests_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/profile/connection-requests', + method='POST', + resource_path='/profile/{profileId}/cancel-connection-request', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1945,8 +1981,9 @@ def _profile_connection_requests_serialize( @validate_call - def profile_connections( + def profile_connect_with( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1959,11 +1996,13 @@ def profile_connections( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoostRecipients200ResponseInnerTo]: - """(Deprecated) View connections + ) -> bool: + """Connect with another profile - This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! + This route uses the request header to send a connection request to another user based on their profileId + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1985,9 +2024,9 @@ def profile_connections( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_connections_serialize( + _param = self._profile_connect_with_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1995,7 +2034,8 @@ def profile_connections( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2012,8 +2052,9 @@ def profile_connections( @validate_call - def profile_connections_with_http_info( + def profile_connect_with_with_http_info( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2026,11 +2067,13 @@ def profile_connections_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInnerTo]]: - """(Deprecated) View connections + ) -> ApiResponse[bool]: + """Connect with another profile - This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! + This route uses the request header to send a connection request to another user based on their profileId + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2052,9 +2095,9 @@ def profile_connections_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_connections_serialize( + _param = self._profile_connect_with_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2062,7 +2105,8 @@ def profile_connections_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2079,8 +2123,9 @@ def profile_connections_with_http_info( @validate_call - def profile_connections_without_preload_content( + def profile_connect_with_without_preload_content( self, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2094,10 +2139,12 @@ def profile_connections_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """(Deprecated) View connections + """Connect with another profile - This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! + This route uses the request header to send a connection request to another user based on their profileId + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2119,9 +2166,9 @@ def profile_connections_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_connections_serialize( + _param = self._profile_connect_with_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2129,7 +2176,8 @@ def profile_connections_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "bool", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2141,8 +2189,9 @@ def profile_connections_without_preload_content( return response_data.response - def _profile_connections_serialize( + def _profile_connect_with_serialize( self, + profile_id, _request_auth, _content_type, _headers, @@ -2164,6 +2213,8 @@ def _profile_connections_serialize( _body_params: Optional[bytes] = None # process the path parameters + if profile_id is not None: + _path_params['profileId'] = profile_id # process the query parameters # process the header parameters # process the form parameters @@ -2185,8 +2236,8 @@ def _profile_connections_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/profile/connections', + method='POST', + resource_path='/profile/{profileId}/connect', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2203,9 +2254,10 @@ def _profile_connections_serialize( @validate_call - def profile_create_managed_service_profile( + def profile_connect_with_invite( self, - profile_create_profile_request: ProfileCreateProfileRequest, + profile_id: StrictStr, + challenge: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2218,13 +2270,14 @@ def profile_create_managed_service_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Create a managed service profile + ) -> bool: + """Connect using an invitation - Creates a managed service profile - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest + :param profile_id: (required) + :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2247,8 +2300,9 @@ def profile_create_managed_service_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_create_managed_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connect_with_invite_serialize( + profile_id=profile_id, + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2256,7 +2310,7 @@ def profile_create_managed_service_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2274,9 +2328,10 @@ def profile_create_managed_service_profile( @validate_call - def profile_create_managed_service_profile_with_http_info( + def profile_connect_with_invite_with_http_info( self, - profile_create_profile_request: ProfileCreateProfileRequest, + profile_id: StrictStr, + challenge: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2289,13 +2344,14 @@ def profile_create_managed_service_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Create a managed service profile + ) -> ApiResponse[bool]: + """Connect using an invitation - Creates a managed service profile - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest + :param profile_id: (required) + :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2318,8 +2374,9 @@ def profile_create_managed_service_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_create_managed_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connect_with_invite_serialize( + profile_id=profile_id, + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2327,7 +2384,7 @@ def profile_create_managed_service_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2345,9 +2402,10 @@ def profile_create_managed_service_profile_with_http_info( @validate_call - def profile_create_managed_service_profile_without_preload_content( + def profile_connect_with_invite_without_preload_content( self, - profile_create_profile_request: ProfileCreateProfileRequest, + profile_id: StrictStr, + challenge: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2361,12 +2419,13 @@ def profile_create_managed_service_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a managed service profile + """Connect using an invitation - Creates a managed service profile - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest + :param profile_id: (required) + :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2389,8 +2448,9 @@ def profile_create_managed_service_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_create_managed_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connect_with_invite_serialize( + profile_id=profile_id, + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2398,7 +2458,7 @@ def profile_create_managed_service_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -2411,9 +2471,10 @@ def profile_create_managed_service_profile_without_preload_content( return response_data.response - def _profile_create_managed_service_profile_serialize( + def _profile_connect_with_invite_serialize( self, - profile_create_profile_request, + profile_id, + challenge, _request_auth, _content_type, _headers, @@ -2435,12 +2496,14 @@ def _profile_create_managed_service_profile_serialize( _body_params: Optional[bytes] = None # process the path parameters + if profile_id is not None: + _path_params['profileId'] = profile_id + if challenge is not None: + _path_params['challenge'] = challenge # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if profile_create_profile_request is not None: - _body_params = profile_create_profile_request # set the HTTP header `Accept` @@ -2451,19 +2514,6 @@ def _profile_create_managed_service_profile_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2472,7 +2522,7 @@ def _profile_create_managed_service_profile_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/create-managed-service', + resource_path='/profile/{profileId}/connect/{challenge}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2489,9 +2539,8 @@ def _profile_create_managed_service_profile_serialize( @validate_call - def profile_create_profile( + def profile_connection_requests( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2504,13 +2553,11 @@ def profile_create_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Create a profile + ) -> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """(Deprecated) View connection requests - Creates a profile for a user + This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2532,9 +2579,9 @@ def profile_create_profile( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_create_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connection_requests_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2542,8 +2589,7 @@ def profile_create_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2560,9 +2606,8 @@ def profile_create_profile( @validate_call - def profile_create_profile_with_http_info( + def profile_connection_requests_with_http_info( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2575,13 +2620,11 @@ def profile_create_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Create a profile + ) -> ApiResponse[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]]: + """(Deprecated) View connection requests - Creates a profile for a user + This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2603,9 +2646,9 @@ def profile_create_profile_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_create_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connection_requests_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2613,8 +2656,7 @@ def profile_create_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2631,9 +2673,8 @@ def profile_create_profile_with_http_info( @validate_call - def profile_create_profile_without_preload_content( + def profile_connection_requests_without_preload_content( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2647,12 +2688,10 @@ def profile_create_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a profile + """(Deprecated) View connection requests - Creates a profile for a user + This route shows the current user's connection requests. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnectionRequests instead - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2674,9 +2713,9 @@ def profile_create_profile_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connection-requests is deprecated.", DeprecationWarning) - _param = self._profile_create_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connection_requests_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2684,8 +2723,7 @@ def profile_create_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2697,9 +2735,8 @@ def profile_create_profile_without_preload_content( return response_data.response - def _profile_create_profile_serialize( + def _profile_connection_requests_serialize( self, - profile_create_profile_request, _request_auth, _content_type, _headers, @@ -2725,8 +2762,6 @@ def _profile_create_profile_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_create_profile_request is not None: - _body_params = profile_create_profile_request # set the HTTP header `Accept` @@ -2737,19 +2772,6 @@ def _profile_create_profile_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2757,8 +2779,8 @@ def _profile_create_profile_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/profile/create', + method='GET', + resource_path='/profile/connection-requests', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2775,9 +2797,8 @@ def _profile_create_profile_serialize( @validate_call - def profile_create_service_profile( + def profile_connections( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2790,13 +2811,11 @@ def profile_create_service_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Create a service profile + ) -> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """(Deprecated) View connections - Creates a service profile + This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2818,9 +2837,9 @@ def profile_create_service_profile( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_create_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connections_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2828,8 +2847,7 @@ def profile_create_service_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2846,9 +2864,8 @@ def profile_create_service_profile( @validate_call - def profile_create_service_profile_with_http_info( + def profile_connections_with_http_info( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2861,13 +2878,11 @@ def profile_create_service_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Create a service profile + ) -> ApiResponse[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]]: + """(Deprecated) View connections - Creates a service profile + This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2889,9 +2904,9 @@ def profile_create_service_profile_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_create_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connections_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2899,8 +2914,7 @@ def profile_create_service_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2917,9 +2931,8 @@ def profile_create_service_profile_with_http_info( @validate_call - def profile_create_service_profile_without_preload_content( + def profile_connections_without_preload_content( self, - profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2933,12 +2946,10 @@ def profile_create_service_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a service profile + """(Deprecated) View connections - Creates a service profile + This route shows the current user's connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedConnections instead! - :param profile_create_profile_request: (required) - :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2960,9 +2971,9 @@ def profile_create_service_profile_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 + warnings.warn("GET /profile/connections is deprecated.", DeprecationWarning) - _param = self._profile_create_service_profile_serialize( - profile_create_profile_request=profile_create_profile_request, + _param = self._profile_connections_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2970,8 +2981,7 @@ def profile_create_service_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '400': "ErrorBADREQUEST", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -2983,9 +2993,8 @@ def profile_create_service_profile_without_preload_content( return response_data.response - def _profile_create_service_profile_serialize( + def _profile_connections_serialize( self, - profile_create_profile_request, _request_auth, _content_type, _headers, @@ -3011,8 +3020,6 @@ def _profile_create_service_profile_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_create_profile_request is not None: - _body_params = profile_create_profile_request # set the HTTP header `Accept` @@ -3023,19 +3030,6 @@ def _profile_create_service_profile_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3043,8 +3037,8 @@ def _profile_create_service_profile_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/profile/create-service', + method='GET', + resource_path='/profile/connections', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3061,8 +3055,9 @@ def _profile_create_service_profile_serialize( @validate_call - def profile_delete_profile( + def profile_create_managed_service_profile( self, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3075,11 +3070,13 @@ def profile_delete_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Delete your profile + ) -> str: + """Create a managed service profile - This route deletes the profile of the current user + Creates a managed service profile + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3102,7 +3099,8 @@ def profile_delete_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_delete_profile_serialize( + _param = self._profile_create_managed_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3110,7 +3108,8 @@ def profile_delete_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -3127,8 +3126,9 @@ def profile_delete_profile( @validate_call - def profile_delete_profile_with_http_info( + def profile_create_managed_service_profile_with_http_info( self, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3141,11 +3141,13 @@ def profile_delete_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Delete your profile + ) -> ApiResponse[str]: + """Create a managed service profile - This route deletes the profile of the current user + Creates a managed service profile + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3168,7 +3170,8 @@ def profile_delete_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_delete_profile_serialize( + _param = self._profile_create_managed_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3176,7 +3179,8 @@ def profile_delete_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -3193,8 +3197,9 @@ def profile_delete_profile_with_http_info( @validate_call - def profile_delete_profile_without_preload_content( + def profile_create_managed_service_profile_without_preload_content( self, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3208,10 +3213,12 @@ def profile_delete_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete your profile + """Create a managed service profile - This route deletes the profile of the current user + Creates a managed service profile + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3234,7 +3241,8 @@ def profile_delete_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_delete_profile_serialize( + _param = self._profile_create_managed_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3242,7 +3250,8 @@ def profile_delete_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", + '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -3254,8 +3263,9 @@ def profile_delete_profile_without_preload_content( return response_data.response - def _profile_delete_profile_serialize( + def _profile_create_managed_service_profile_serialize( self, + profile_create_service_profile_request, _request_auth, _content_type, _headers, @@ -3281,6 +3291,8 @@ def _profile_delete_profile_serialize( # process the header parameters # process the form parameters # process the body parameter + if profile_create_service_profile_request is not None: + _body_params = profile_create_service_profile_request # set the HTTP header `Accept` @@ -3291,6 +3303,19 @@ def _profile_delete_profile_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3298,8 +3323,8 @@ def _profile_delete_profile_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/profile', + method='POST', + resource_path='/profile/create-managed-service', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3316,9 +3341,9 @@ def _profile_delete_profile_serialize( @validate_call - def profile_disconnect_with( + def profile_create_profile( self, - profile_id: StrictStr, + profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3331,13 +3356,13 @@ def profile_disconnect_with( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bool: - """Disconnect with another profile + ) -> str: + """Create a profile - This route uses the request header to disconnect with another user based on their profileId + Creates a profile for a user - :param profile_id: (required) - :type profile_id: str + :param profile_create_profile_request: (required) + :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3360,8 +3385,8 @@ def profile_disconnect_with( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_disconnect_with_serialize( - profile_id=profile_id, + _param = self._profile_create_profile_serialize( + profile_create_profile_request=profile_create_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3369,7 +3394,7 @@ def profile_disconnect_with( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3387,9 +3412,9 @@ def profile_disconnect_with( @validate_call - def profile_disconnect_with_with_http_info( + def profile_create_profile_with_http_info( self, - profile_id: StrictStr, + profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3402,13 +3427,13 @@ def profile_disconnect_with_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bool]: - """Disconnect with another profile + ) -> ApiResponse[str]: + """Create a profile - This route uses the request header to disconnect with another user based on their profileId + Creates a profile for a user - :param profile_id: (required) - :type profile_id: str + :param profile_create_profile_request: (required) + :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3431,8 +3456,8 @@ def profile_disconnect_with_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_disconnect_with_serialize( - profile_id=profile_id, + _param = self._profile_create_profile_serialize( + profile_create_profile_request=profile_create_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3440,7 +3465,7 @@ def profile_disconnect_with_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3458,9 +3483,9 @@ def profile_disconnect_with_with_http_info( @validate_call - def profile_disconnect_with_without_preload_content( + def profile_create_profile_without_preload_content( self, - profile_id: StrictStr, + profile_create_profile_request: ProfileCreateProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3474,12 +3499,12 @@ def profile_disconnect_with_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Disconnect with another profile + """Create a profile - This route uses the request header to disconnect with another user based on their profileId + Creates a profile for a user - :param profile_id: (required) - :type profile_id: str + :param profile_create_profile_request: (required) + :type profile_create_profile_request: ProfileCreateProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3502,8 +3527,8 @@ def profile_disconnect_with_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_disconnect_with_serialize( - profile_id=profile_id, + _param = self._profile_create_profile_serialize( + profile_create_profile_request=profile_create_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3511,7 +3536,7 @@ def profile_disconnect_with_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bool", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3524,9 +3549,9 @@ def profile_disconnect_with_without_preload_content( return response_data.response - def _profile_disconnect_with_serialize( + def _profile_create_profile_serialize( self, - profile_id, + profile_create_profile_request, _request_auth, _content_type, _headers, @@ -3548,12 +3573,12 @@ def _profile_disconnect_with_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if profile_create_profile_request is not None: + _body_params = profile_create_profile_request # set the HTTP header `Accept` @@ -3564,6 +3589,19 @@ def _profile_disconnect_with_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3572,7 +3610,7 @@ def _profile_disconnect_with_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/{profileId}/disconnect', + resource_path='/profile/create', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3589,9 +3627,9 @@ def _profile_disconnect_with_serialize( @validate_call - def profile_generate_invite( + def profile_create_service_profile( self, - profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3604,13 +3642,13 @@ def profile_generate_invite( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileGenerateInvite200Response: - """Generate a connection invitation + ) -> str: + """Create a service profile - This route creates a one-time challenge that an unknown profile can use to connect with this account + Creates a service profile - :param profile_generate_invite_request: - :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3633,8 +3671,8 @@ def profile_generate_invite( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_generate_invite_serialize( - profile_generate_invite_request=profile_generate_invite_request, + _param = self._profile_create_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3642,7 +3680,7 @@ def profile_generate_invite( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGenerateInvite200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3660,9 +3698,9 @@ def profile_generate_invite( @validate_call - def profile_generate_invite_with_http_info( + def profile_create_service_profile_with_http_info( self, - profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3675,13 +3713,13 @@ def profile_generate_invite_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileGenerateInvite200Response]: - """Generate a connection invitation + ) -> ApiResponse[str]: + """Create a service profile - This route creates a one-time challenge that an unknown profile can use to connect with this account + Creates a service profile - :param profile_generate_invite_request: - :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3704,8 +3742,8 @@ def profile_generate_invite_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_generate_invite_serialize( - profile_generate_invite_request=profile_generate_invite_request, + _param = self._profile_create_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3713,7 +3751,7 @@ def profile_generate_invite_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGenerateInvite200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3731,9 +3769,9 @@ def profile_generate_invite_with_http_info( @validate_call - def profile_generate_invite_without_preload_content( + def profile_create_service_profile_without_preload_content( self, - profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + profile_create_service_profile_request: ProfileCreateServiceProfileRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3747,12 +3785,12 @@ def profile_generate_invite_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Generate a connection invitation + """Create a service profile - This route creates a one-time challenge that an unknown profile can use to connect with this account + Creates a service profile - :param profile_generate_invite_request: - :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param profile_create_service_profile_request: (required) + :type profile_create_service_profile_request: ProfileCreateServiceProfileRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3775,8 +3813,8 @@ def profile_generate_invite_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_generate_invite_serialize( - profile_generate_invite_request=profile_generate_invite_request, + _param = self._profile_create_service_profile_serialize( + profile_create_service_profile_request=profile_create_service_profile_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3784,7 +3822,7 @@ def profile_generate_invite_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGenerateInvite200Response", + '200': "str", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -3797,9 +3835,9 @@ def profile_generate_invite_without_preload_content( return response_data.response - def _profile_generate_invite_serialize( + def _profile_create_service_profile_serialize( self, - profile_generate_invite_request, + profile_create_service_profile_request, _request_auth, _content_type, _headers, @@ -3825,8 +3863,8 @@ def _profile_generate_invite_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_generate_invite_request is not None: - _body_params = profile_generate_invite_request + if profile_create_service_profile_request is not None: + _body_params = profile_create_service_profile_request # set the HTTP header `Accept` @@ -3858,7 +3896,7 @@ def _profile_generate_invite_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/profile/generate-invite', + resource_path='/profile/create-service', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3875,9 +3913,1280 @@ def _profile_generate_invite_serialize( @validate_call - def profile_get_available_profiles( + def profile_delete_profile( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Delete your profile + + This route deletes the profile of the current user + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_delete_profile_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def profile_delete_profile_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Delete your profile + + This route deletes the profile of the current user + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_delete_profile_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def profile_delete_profile_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete your profile + + This route deletes the profile of the current user + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_delete_profile_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _profile_delete_profile_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/profile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def profile_disconnect_with( + self, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bool: + """Disconnect with another profile + + This route uses the request header to disconnect with another user based on their profileId + + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_disconnect_with_serialize( + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def profile_disconnect_with_with_http_info( + self, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bool]: + """Disconnect with another profile + + This route uses the request header to disconnect with another user based on their profileId + + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_disconnect_with_serialize( + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def profile_disconnect_with_without_preload_content( + self, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disconnect with another profile + + This route uses the request header to disconnect with another user based on their profileId + + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_disconnect_with_serialize( + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bool", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _profile_disconnect_with_serialize( + self, + profile_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if profile_id is not None: + _path_params['profileId'] = profile_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/{profileId}/disconnect', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def profile_generate_invite( + self, + profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ProfileGenerateInvite200Response: + """Generate a connection invitation + + Generate a connection invitation challenge. By default, invites are single-use; set maxUses > 1 for multi-use, or maxUses = 0 for unlimited. Expiration is in seconds (default 30 days); set expiration = 0 for no expiration. + + :param profile_generate_invite_request: + :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_generate_invite_serialize( + profile_generate_invite_request=profile_generate_invite_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGenerateInvite200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def profile_generate_invite_with_http_info( + self, + profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ProfileGenerateInvite200Response]: + """Generate a connection invitation + + Generate a connection invitation challenge. By default, invites are single-use; set maxUses > 1 for multi-use, or maxUses = 0 for unlimited. Expiration is in seconds (default 30 days); set expiration = 0 for no expiration. + + :param profile_generate_invite_request: + :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_generate_invite_serialize( + profile_generate_invite_request=profile_generate_invite_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGenerateInvite200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def profile_generate_invite_without_preload_content( + self, + profile_generate_invite_request: Optional[ProfileGenerateInviteRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Generate a connection invitation + + Generate a connection invitation challenge. By default, invites are single-use; set maxUses > 1 for multi-use, or maxUses = 0 for unlimited. Expiration is in seconds (default 30 days); set expiration = 0 for no expiration. + + :param profile_generate_invite_request: + :type profile_generate_invite_request: ProfileGenerateInviteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_generate_invite_serialize( + profile_generate_invite_request=profile_generate_invite_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGenerateInvite200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _profile_generate_invite_serialize( + self, + profile_generate_invite_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if profile_generate_invite_request is not None: + _body_params = profile_generate_invite_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/generate-invite', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def profile_get_available_profiles( + self, + profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ProfileGetAvailableProfiles200Response: + """Available Profiles + + This route gets all of your available profiles. That is, profiles you directly or indirectly manage + + :param profile_get_available_profiles_request: + :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_available_profiles_serialize( + profile_get_available_profiles_request=profile_get_available_profiles_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGetAvailableProfiles200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def profile_get_available_profiles_with_http_info( + self, + profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ProfileGetAvailableProfiles200Response]: + """Available Profiles + + This route gets all of your available profiles. That is, profiles you directly or indirectly manage + + :param profile_get_available_profiles_request: + :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_available_profiles_serialize( + profile_get_available_profiles_request=profile_get_available_profiles_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGetAvailableProfiles200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def profile_get_available_profiles_without_preload_content( + self, + profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Available Profiles + + This route gets all of your available profiles. That is, profiles you directly or indirectly manage + + :param profile_get_available_profiles_request: + :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_available_profiles_serialize( + profile_get_available_profiles_request=profile_get_available_profiles_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProfileGetAvailableProfiles200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _profile_get_available_profiles_serialize( + self, + profile_get_available_profiles_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if profile_get_available_profiles_request is not None: + _body_params = profile_get_available_profiles_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/profile/available-profiles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def profile_get_managed_service_profiles( + self, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + cursor: Optional[StrictStr] = None, + sort: Optional[StrictStr] = None, + id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoostAdmins200Response: + """Managed Service Profiles + + This route gets all of your managed service profiles + + :param limit: + :type limit: float + :param cursor: + :type cursor: str + :param sort: + :type sort: str + :param id: + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_managed_service_profiles_serialize( + limit=limit, + cursor=cursor, + sort=sort, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostAdmins200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def profile_get_managed_service_profiles_with_http_info( + self, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + cursor: Optional[StrictStr] = None, + sort: Optional[StrictStr] = None, + id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoostAdmins200Response]: + """Managed Service Profiles + + This route gets all of your managed service profiles + + :param limit: + :type limit: float + :param cursor: + :type cursor: str + :param sort: + :type sort: str + :param id: + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_managed_service_profiles_serialize( + limit=limit, + cursor=cursor, + sort=sort, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostAdmins200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def profile_get_managed_service_profiles_without_preload_content( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + limit: Optional[Union[StrictFloat, StrictInt]] = None, + cursor: Optional[StrictStr] = None, + sort: Optional[StrictStr] = None, + id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3890,13 +5199,19 @@ def profile_get_available_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileGetAvailableProfiles200Response: - """Available Profiles + ) -> RESTResponseType: + """Managed Service Profiles - This route gets all of your available profiles. That is, profiles you directly or indirectly manage + This route gets all of your managed service profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param limit: + :type limit: float + :param cursor: + :type cursor: str + :param sort: + :type sort: str + :param id: + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3919,8 +5234,160 @@ def profile_get_available_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_available_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + _param = self._profile_get_managed_service_profiles_serialize( + limit=limit, + cursor=cursor, + sort=sort, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostAdmins200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _profile_get_managed_service_profiles_serialize( + self, + limit, + cursor, + sort, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if id is not None: + + _query_params.append(('id', id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/profile/managed-services', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def profile_get_other_profile( + self, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo: + """Get profile information + + This route grabs the profile information of any user, using their profileId + + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._profile_get_other_profile_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3928,10 +5395,11 @@ def profile_get_available_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAvailableProfiles200Response", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -3946,9 +5414,9 @@ def profile_get_available_profiles( @validate_call - def profile_get_available_profiles_with_http_info( + def profile_get_other_profile_with_http_info( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3961,13 +5429,13 @@ def profile_get_available_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileGetAvailableProfiles200Response]: - """Available Profiles + ) -> ApiResponse[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """Get profile information - This route gets all of your available profiles. That is, profiles you directly or indirectly manage + This route grabs the profile information of any user, using their profileId - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3990,8 +5458,8 @@ def profile_get_available_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_available_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + _param = self._profile_get_other_profile_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3999,10 +5467,11 @@ def profile_get_available_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAvailableProfiles200Response", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4017,9 +5486,9 @@ def profile_get_available_profiles_with_http_info( @validate_call - def profile_get_available_profiles_without_preload_content( + def profile_get_other_profile_without_preload_content( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4033,12 +5502,12 @@ def profile_get_available_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Available Profiles + """Get profile information - This route gets all of your available profiles. That is, profiles you directly or indirectly manage + This route grabs the profile information of any user, using their profileId - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_id: (required) + :type profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4061,8 +5530,8 @@ def profile_get_available_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_available_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + _param = self._profile_get_other_profile_serialize( + profile_id=profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4070,10 +5539,11 @@ def profile_get_available_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileGetAvailableProfiles200Response", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4083,9 +5553,9 @@ def profile_get_available_profiles_without_preload_content( return response_data.response - def _profile_get_available_profiles_serialize( + def _profile_get_other_profile_serialize( self, - profile_get_available_profiles_request, + profile_id, _request_auth, _content_type, _headers, @@ -4107,12 +5577,12 @@ def _profile_get_available_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if profile_id is not None: + _path_params['profileId'] = profile_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if profile_get_available_profiles_request is not None: - _body_params = profile_get_available_profiles_request # set the HTTP header `Accept` @@ -4123,19 +5593,6 @@ def _profile_get_available_profiles_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4143,8 +5600,8 @@ def _profile_get_available_profiles_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/profile/available-profiles', + method='GET', + resource_path='/profile/{profileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4161,12 +5618,8 @@ def _profile_get_available_profiles_serialize( @validate_call - def profile_get_managed_service_profiles( + def profile_get_profile( self, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - cursor: Optional[StrictStr] = None, - sort: Optional[StrictStr] = None, - id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4179,19 +5632,11 @@ def profile_get_managed_service_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoostAdmins200Response: - """Managed Service Profiles + ) -> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo: + """Get your profile information - This route gets all of your managed service profiles + This route uses the request header to grab the profile of the current user - :param limit: - :type limit: float - :param cursor: - :type cursor: str - :param sort: - :type sort: str - :param id: - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4214,11 +5659,7 @@ def profile_get_managed_service_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_managed_service_profiles_serialize( - limit=limit, - cursor=cursor, - sort=sort, - id=id, + _param = self._profile_get_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4226,11 +5667,9 @@ def profile_get_managed_service_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", - '400': "ErrorBADREQUEST", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4245,12 +5684,8 @@ def profile_get_managed_service_profiles( @validate_call - def profile_get_managed_service_profiles_with_http_info( + def profile_get_profile_with_http_info( self, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - cursor: Optional[StrictStr] = None, - sort: Optional[StrictStr] = None, - id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4263,19 +5698,11 @@ def profile_get_managed_service_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoostAdmins200Response]: - """Managed Service Profiles + ) -> ApiResponse[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """Get your profile information - This route gets all of your managed service profiles + This route uses the request header to grab the profile of the current user - :param limit: - :type limit: float - :param cursor: - :type cursor: str - :param sort: - :type sort: str - :param id: - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4298,11 +5725,7 @@ def profile_get_managed_service_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_managed_service_profiles_serialize( - limit=limit, - cursor=cursor, - sort=sort, - id=id, + _param = self._profile_get_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4310,11 +5733,9 @@ def profile_get_managed_service_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", - '400': "ErrorBADREQUEST", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4329,12 +5750,8 @@ def profile_get_managed_service_profiles_with_http_info( @validate_call - def profile_get_managed_service_profiles_without_preload_content( + def profile_get_profile_without_preload_content( self, - limit: Optional[Union[StrictFloat, StrictInt]] = None, - cursor: Optional[StrictStr] = None, - sort: Optional[StrictStr] = None, - id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4348,18 +5765,10 @@ def profile_get_managed_service_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Managed Service Profiles + """Get your profile information - This route gets all of your managed service profiles + This route uses the request header to grab the profile of the current user - :param limit: - :type limit: float - :param cursor: - :type cursor: str - :param sort: - :type sort: str - :param id: - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4382,11 +5791,7 @@ def profile_get_managed_service_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_managed_service_profiles_serialize( - limit=limit, - cursor=cursor, - sort=sort, - id=id, + _param = self._profile_get_profile_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4394,11 +5799,9 @@ def profile_get_managed_service_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostAdmins200Response", - '400': "ErrorBADREQUEST", + '200': "BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4408,12 +5811,8 @@ def profile_get_managed_service_profiles_without_preload_content( return response_data.response - def _profile_get_managed_service_profiles_serialize( + def _profile_get_profile_serialize( self, - limit, - cursor, - sort, - id, _request_auth, _content_type, _headers, @@ -4436,22 +5835,6 @@ def _profile_get_managed_service_profiles_serialize( # process the path parameters # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if cursor is not None: - - _query_params.append(('cursor', cursor)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters # process the form parameters # process the body parameter @@ -4473,7 +5856,7 @@ def _profile_get_managed_service_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/profile/managed-services', + resource_path='/profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4490,9 +5873,9 @@ def _profile_get_managed_service_profiles_serialize( @validate_call - def profile_get_other_profile( + def profile_invalidate_invite( self, - profile_id: StrictStr, + challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4505,13 +5888,13 @@ def profile_get_other_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoostRecipients200ResponseInnerTo: - """Get profile information + ) -> bool: + """Invalidate an invitation - This route grabs the profile information of any user, using their profileId + Invalidate a specific connection invitation by its challenge string. Idempotent: returns true even if the invite was already invalid or missing. - :param profile_id: (required) - :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4534,8 +5917,8 @@ def profile_get_other_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_other_profile_serialize( - profile_id=profile_id, + _param = self._profile_invalidate_invite_serialize( + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4543,11 +5926,10 @@ def profile_get_other_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4562,9 +5944,9 @@ def profile_get_other_profile( @validate_call - def profile_get_other_profile_with_http_info( + def profile_invalidate_invite_with_http_info( self, - profile_id: StrictStr, + challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4577,13 +5959,13 @@ def profile_get_other_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoostRecipients200ResponseInnerTo]: - """Get profile information + ) -> ApiResponse[bool]: + """Invalidate an invitation - This route grabs the profile information of any user, using their profileId + Invalidate a specific connection invitation by its challenge string. Idempotent: returns true even if the invite was already invalid or missing. - :param profile_id: (required) - :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4606,8 +5988,8 @@ def profile_get_other_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_other_profile_serialize( - profile_id=profile_id, + _param = self._profile_invalidate_invite_serialize( + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4615,11 +5997,10 @@ def profile_get_other_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4634,9 +6015,9 @@ def profile_get_other_profile_with_http_info( @validate_call - def profile_get_other_profile_without_preload_content( + def profile_invalidate_invite_without_preload_content( self, - profile_id: StrictStr, + challenge: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4650,12 +6031,12 @@ def profile_get_other_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get profile information + """Invalidate an invitation - This route grabs the profile information of any user, using their profileId + Invalidate a specific connection invitation by its challenge string. Idempotent: returns true even if the invite was already invalid or missing. - :param profile_id: (required) - :type profile_id: str + :param challenge: (required) + :type challenge: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4678,8 +6059,8 @@ def profile_get_other_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_other_profile_serialize( - profile_id=profile_id, + _param = self._profile_invalidate_invite_serialize( + challenge=challenge, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4687,11 +6068,10 @@ def profile_get_other_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "bool", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", - '404': "ErrorNOTFOUND", '500': "ErrorINTERNALSERVERERROR", } response_data = self.api_client.call_api( @@ -4701,9 +6081,9 @@ def profile_get_other_profile_without_preload_content( return response_data.response - def _profile_get_other_profile_serialize( + def _profile_invalidate_invite_serialize( self, - profile_id, + challenge, _request_auth, _content_type, _headers, @@ -4725,8 +6105,8 @@ def _profile_get_other_profile_serialize( _body_params: Optional[bytes] = None # process the path parameters - if profile_id is not None: - _path_params['profileId'] = profile_id + if challenge is not None: + _path_params['challenge'] = challenge # process the query parameters # process the header parameters # process the form parameters @@ -4748,8 +6128,8 @@ def _profile_get_other_profile_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/profile/{profileId}', + method='POST', + resource_path='/profile/invite/{challenge}/invalidate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4766,7 +6146,7 @@ def _profile_get_other_profile_serialize( @validate_call - def profile_get_profile( + def profile_list_invites( self, _request_timeout: Union[ None, @@ -4780,10 +6160,10 @@ def profile_get_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BoostGetBoostRecipients200ResponseInnerTo: - """Get your profile information + ) -> List[ProfileListInvites200ResponseInner]: + """List valid connection invitations - This route uses the request header to grab the profile of the current user + List all valid connection invitation links you've created. Each item includes: challenge, expiresIn (seconds or null), usesRemaining (number or null), and maxUses (number or null). Exhausted invites are omitted. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4807,7 +6187,7 @@ def profile_get_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_profile_serialize( + _param = self._profile_list_invites_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4815,7 +6195,7 @@ def profile_get_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "List[ProfileListInvites200ResponseInner]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -4832,7 +6212,7 @@ def profile_get_profile( @validate_call - def profile_get_profile_with_http_info( + def profile_list_invites_with_http_info( self, _request_timeout: Union[ None, @@ -4846,10 +6226,10 @@ def profile_get_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BoostGetBoostRecipients200ResponseInnerTo]: - """Get your profile information + ) -> ApiResponse[List[ProfileListInvites200ResponseInner]]: + """List valid connection invitations - This route uses the request header to grab the profile of the current user + List all valid connection invitation links you've created. Each item includes: challenge, expiresIn (seconds or null), usesRemaining (number or null), and maxUses (number or null). Exhausted invites are omitted. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4873,7 +6253,7 @@ def profile_get_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_profile_serialize( + _param = self._profile_list_invites_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4881,7 +6261,7 @@ def profile_get_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "List[ProfileListInvites200ResponseInner]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -4898,7 +6278,7 @@ def profile_get_profile_with_http_info( @validate_call - def profile_get_profile_without_preload_content( + def profile_list_invites_without_preload_content( self, _request_timeout: Union[ None, @@ -4913,9 +6293,9 @@ def profile_get_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get your profile information + """List valid connection invitations - This route uses the request header to grab the profile of the current user + List all valid connection invitation links you've created. Each item includes: challenge, expiresIn (seconds or null), usesRemaining (number or null), and maxUses (number or null). Exhausted invites are omitted. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4939,7 +6319,7 @@ def profile_get_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._profile_get_profile_serialize( + _param = self._profile_list_invites_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4947,7 +6327,7 @@ def profile_get_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BoostGetBoostRecipients200ResponseInnerTo", + '200': "List[ProfileListInvites200ResponseInner]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -4959,7 +6339,7 @@ def profile_get_profile_without_preload_content( return response_data.response - def _profile_get_profile_serialize( + def _profile_list_invites_serialize( self, _request_auth, _content_type, @@ -5004,7 +6384,7 @@ def _profile_get_profile_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/profile', + resource_path='/profile/invites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5309,7 +6689,7 @@ def _profile_manager_create_managed_profile_serialize( @validate_call def profile_manager_get_managed_profiles( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5327,8 +6707,8 @@ def profile_manager_get_managed_profiles( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5352,7 +6732,7 @@ def profile_manager_get_managed_profiles( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5380,7 +6760,7 @@ def profile_manager_get_managed_profiles( @validate_call def profile_manager_get_managed_profiles_with_http_info( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5398,8 +6778,8 @@ def profile_manager_get_managed_profiles_with_http_info( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5423,7 +6803,7 @@ def profile_manager_get_managed_profiles_with_http_info( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5451,7 +6831,7 @@ def profile_manager_get_managed_profiles_with_http_info( @validate_call def profile_manager_get_managed_profiles_without_preload_content( self, - profile_get_available_profiles_request: Optional[ProfileGetAvailableProfilesRequest] = None, + profile_manager_get_managed_profiles_request: Optional[ProfileManagerGetManagedProfilesRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5469,8 +6849,8 @@ def profile_manager_get_managed_profiles_without_preload_content( This route gets all of your managed profiles - :param profile_get_available_profiles_request: - :type profile_get_available_profiles_request: ProfileGetAvailableProfilesRequest + :param profile_manager_get_managed_profiles_request: + :type profile_manager_get_managed_profiles_request: ProfileManagerGetManagedProfilesRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5494,7 +6874,7 @@ def profile_manager_get_managed_profiles_without_preload_content( """ # noqa: E501 _param = self._profile_manager_get_managed_profiles_serialize( - profile_get_available_profiles_request=profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request=profile_manager_get_managed_profiles_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5517,7 +6897,7 @@ def profile_manager_get_managed_profiles_without_preload_content( def _profile_manager_get_managed_profiles_serialize( self, - profile_get_available_profiles_request, + profile_manager_get_managed_profiles_request, _request_auth, _content_type, _headers, @@ -5543,8 +6923,8 @@ def _profile_manager_get_managed_profiles_serialize( # process the header parameters # process the form parameters # process the body parameter - if profile_get_available_profiles_request is not None: - _body_params = profile_get_available_profiles_request + if profile_manager_get_managed_profiles_request is not None: + _body_params = profile_manager_get_managed_profiles_request # set the HTTP header `Accept` @@ -6543,7 +7923,7 @@ def profile_pending_connections( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BoostGetBoostRecipients200ResponseInnerTo]: + ) -> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: """(Deprecated) View pending connections This route shows the current user's pending connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedPendingConnections instead @@ -6579,7 +7959,7 @@ def profile_pending_connections( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -6610,7 +7990,7 @@ def profile_pending_connections_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BoostGetBoostRecipients200ResponseInnerTo]]: + ) -> ApiResponse[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]]: """(Deprecated) View pending connections This route shows the current user's pending connections. Warning! This route is deprecated and currently has a hard limit of returning only the first 50 connections. Please use paginatedPendingConnections instead @@ -6646,7 +8026,7 @@ def profile_pending_connections_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -6713,7 +8093,7 @@ def profile_pending_connections_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BoostGetBoostRecipients200ResponseInnerTo]", + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -6801,7 +8181,7 @@ def profile_primary_signing_authority( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileSigningAuthorities200ResponseInner: + ) -> ProfileSigningAuthority200Response: """Get primary Signing Authority for user This route is used to get the primary signing authority that can sign credentials on the current user's behalf @@ -6836,7 +8216,7 @@ def profile_primary_signing_authority( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -6867,7 +8247,7 @@ def profile_primary_signing_authority_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileSigningAuthorities200ResponseInner]: + ) -> ApiResponse[ProfileSigningAuthority200Response]: """Get primary Signing Authority for user This route is used to get the primary signing authority that can sign credentials on the current user's behalf @@ -6902,7 +8282,7 @@ def profile_primary_signing_authority_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -6968,7 +8348,7 @@ def profile_primary_signing_authority_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", '500': "ErrorINTERNALSERVERERROR", @@ -7330,8 +8710,8 @@ def _profile_register_signing_authority_serialize( @validate_call def profile_search_profiles( self, - input: StrictStr, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + input: Optional[StrictStr], + limit: Optional[StrictInt] = None, include_self: Optional[StrictBool] = None, include_connection_status: Optional[StrictBool] = None, include_service_profiles: Optional[StrictBool] = None, @@ -7418,8 +8798,8 @@ def profile_search_profiles( @validate_call def profile_search_profiles_with_http_info( self, - input: StrictStr, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + input: Optional[StrictStr], + limit: Optional[StrictInt] = None, include_self: Optional[StrictBool] = None, include_connection_status: Optional[StrictBool] = None, include_service_profiles: Optional[StrictBool] = None, @@ -7506,8 +8886,8 @@ def profile_search_profiles_with_http_info( @validate_call def profile_search_profiles_without_preload_content( self, - input: StrictStr, - limit: Optional[Annotated[int, Field(lt=100, strict=True, gt=0)]] = None, + input: Optional[StrictStr], + limit: Optional[StrictInt] = None, include_self: Optional[StrictBool] = None, include_connection_status: Optional[StrictBool] = None, include_service_profiles: Optional[StrictBool] = None, @@ -8215,8 +9595,8 @@ def _profile_signing_authorities_serialize( @validate_call def profile_signing_authority( self, - endpoint: StrictStr, - name: StrictStr, + endpoint: Optional[StrictStr], + name: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8229,7 +9609,7 @@ def profile_signing_authority( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProfileSigningAuthorities200ResponseInner: + ) -> ProfileSigningAuthority200Response: """Get Signing Authority for user This route is used to get a named signing authority that can sign credentials on the current user's behalf @@ -8270,7 +9650,7 @@ def profile_signing_authority( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -8291,8 +9671,8 @@ def profile_signing_authority( @validate_call def profile_signing_authority_with_http_info( self, - endpoint: StrictStr, - name: StrictStr, + endpoint: Optional[StrictStr], + name: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8305,7 +9685,7 @@ def profile_signing_authority_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProfileSigningAuthorities200ResponseInner]: + ) -> ApiResponse[ProfileSigningAuthority200Response]: """Get Signing Authority for user This route is used to get a named signing authority that can sign credentials on the current user's behalf @@ -8346,7 +9726,7 @@ def profile_signing_authority_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", @@ -8367,8 +9747,8 @@ def profile_signing_authority_with_http_info( @validate_call def profile_signing_authority_without_preload_content( self, - endpoint: StrictStr, - name: StrictStr, + endpoint: Optional[StrictStr], + name: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8422,7 +9802,7 @@ def profile_signing_authority_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ProfileSigningAuthorities200ResponseInner", + '200': "ProfileSigningAuthority200Response", '400': "ErrorBADREQUEST", '401': "ErrorUNAUTHORIZED", '403': "ErrorFORBIDDEN", diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/send_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/send_api.py new file mode 100644 index 0000000000..e5cb4eab08 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/send_api.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from openapi_client.models.boost_send200_response import BoostSend200Response +from openapi_client.models.boost_send_request import BoostSendRequest + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class SendApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def boost_send( + self, + boost_send_request: BoostSendRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostSend200Response: + """Send data to a recipient + + Sends data to a recipient. For boosts: creates a boost if needed, auto-issues a credential from its template, and sends it. If a contractUri is provided and the recipient has consent with write permission for the boost category, the credential is sent through the contract; otherwise it is sent normally. + + :param boost_send_request: (required) + :type boost_send_request: BoostSendRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_send_serialize( + boost_send_request=boost_send_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSend200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def boost_send_with_http_info( + self, + boost_send_request: BoostSendRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostSend200Response]: + """Send data to a recipient + + Sends data to a recipient. For boosts: creates a boost if needed, auto-issues a credential from its template, and sends it. If a contractUri is provided and the recipient has consent with write permission for the boost category, the credential is sent through the contract; otherwise it is sent normally. + + :param boost_send_request: (required) + :type boost_send_request: BoostSendRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_send_serialize( + boost_send_request=boost_send_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSend200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def boost_send_without_preload_content( + self, + boost_send_request: BoostSendRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Send data to a recipient + + Sends data to a recipient. For boosts: creates a boost if needed, auto-issues a credential from its template, and sends it. If a contractUri is provided and the recipient has consent with write permission for the boost category, the credential is sent through the contract; otherwise it is sent normally. + + :param boost_send_request: (required) + :type boost_send_request: BoostSendRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._boost_send_serialize( + boost_send_request=boost_send_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSend200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _boost_send_serialize( + self, + boost_send_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_send_request is not None: + _body_params = boost_send_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/send', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/skills_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/skills_api.py new file mode 100644 index 0000000000..7ed79438f2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/skills_api.py @@ -0,0 +1,8351 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.boost_get_boosts_request import BoostGetBoostsRequest +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response +from openapi_client.models.skills_create200_response import SkillsCreate200Response +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest +from openapi_client.models.skills_create_request import SkillsCreateRequest +from openapi_client.models.skills_delete200_response import SkillsDelete200Response +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response +from openapi_client.models.skills_update_request import SkillsUpdateRequest + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class SkillsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def skill_frameworks_add_framework_admin( + self, + framework_id: StrictStr, + skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksAddFrameworkAdmin200Response: + """Add framework admin + + Adds another profile as a manager of the framework. Requires existing manager access. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_add_framework_admin_request: (required) + :type skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_add_framework_admin_serialize( + framework_id=framework_id, + skill_frameworks_add_framework_admin_request=skill_frameworks_add_framework_admin_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksAddFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_add_framework_admin_with_http_info( + self, + framework_id: StrictStr, + skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksAddFrameworkAdmin200Response]: + """Add framework admin + + Adds another profile as a manager of the framework. Requires existing manager access. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_add_framework_admin_request: (required) + :type skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_add_framework_admin_serialize( + framework_id=framework_id, + skill_frameworks_add_framework_admin_request=skill_frameworks_add_framework_admin_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksAddFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_add_framework_admin_without_preload_content( + self, + framework_id: StrictStr, + skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add framework admin + + Adds another profile as a manager of the framework. Requires existing manager access. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_add_framework_admin_request: (required) + :type skill_frameworks_add_framework_admin_request: SkillFrameworksAddFrameworkAdminRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_add_framework_admin_serialize( + framework_id=framework_id, + skill_frameworks_add_framework_admin_request=skill_frameworks_add_framework_admin_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksAddFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_add_framework_admin_serialize( + self, + framework_id, + skill_frameworks_add_framework_admin_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_add_framework_admin_request is not None: + _body_params = skill_frameworks_add_framework_admin_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/{frameworkId}/admins', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_count_boosts_that_use_framework( + self, + id: StrictStr, + boost_get_boosts_request: BoostGetBoostsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksCountBoostsThatUseFramework200Response: + """Count boosts that use a framework + + Returns the total count of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param boost_get_boosts_request: (required) + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_count_boosts_that_use_framework_serialize( + id=id, + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksCountBoostsThatUseFramework200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_count_boosts_that_use_framework_with_http_info( + self, + id: StrictStr, + boost_get_boosts_request: BoostGetBoostsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksCountBoostsThatUseFramework200Response]: + """Count boosts that use a framework + + Returns the total count of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param boost_get_boosts_request: (required) + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_count_boosts_that_use_framework_serialize( + id=id, + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksCountBoostsThatUseFramework200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_count_boosts_that_use_framework_without_preload_content( + self, + id: StrictStr, + boost_get_boosts_request: BoostGetBoostsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count boosts that use a framework + + Returns the total count of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param boost_get_boosts_request: (required) + :type boost_get_boosts_request: BoostGetBoostsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_count_boosts_that_use_framework_serialize( + id=id, + boost_get_boosts_request=boost_get_boosts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksCountBoostsThatUseFramework200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_count_boosts_that_use_framework_serialize( + self, + id, + boost_get_boosts_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if boost_get_boosts_request is not None: + _body_params = boost_get_boosts_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/{id}/boosts/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_create( + self, + skill_frameworks_create_request: SkillFrameworksCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoostFrameworks200ResponseRecordsInner: + """Link Skill Framework + + Links an existing provider framework to the caller and mirrors minimal metadata locally + + :param skill_frameworks_create_request: (required) + :type skill_frameworks_create_request: SkillFrameworksCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_serialize( + skill_frameworks_create_request=skill_frameworks_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_create_with_http_info( + self, + skill_frameworks_create_request: SkillFrameworksCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoostFrameworks200ResponseRecordsInner]: + """Link Skill Framework + + Links an existing provider framework to the caller and mirrors minimal metadata locally + + :param skill_frameworks_create_request: (required) + :type skill_frameworks_create_request: SkillFrameworksCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_serialize( + skill_frameworks_create_request=skill_frameworks_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_create_without_preload_content( + self, + skill_frameworks_create_request: SkillFrameworksCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Link Skill Framework + + Links an existing provider framework to the caller and mirrors minimal metadata locally + + :param skill_frameworks_create_request: (required) + :type skill_frameworks_create_request: SkillFrameworksCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_serialize( + skill_frameworks_create_request=skill_frameworks_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_create_serialize( + self, + skill_frameworks_create_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_create_request is not None: + _body_params = skill_frameworks_create_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_create_managed( + self, + skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoostFrameworks200ResponseRecordsInner: + """Create and manage a custom skill framework + + Creates a new skill framework directly in the LearnCard Network and assigns the caller as a manager. + + :param skill_frameworks_create_managed_request: (required) + :type skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_serialize( + skill_frameworks_create_managed_request=skill_frameworks_create_managed_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_create_managed_with_http_info( + self, + skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoostFrameworks200ResponseRecordsInner]: + """Create and manage a custom skill framework + + Creates a new skill framework directly in the LearnCard Network and assigns the caller as a manager. + + :param skill_frameworks_create_managed_request: (required) + :type skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_serialize( + skill_frameworks_create_managed_request=skill_frameworks_create_managed_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_create_managed_without_preload_content( + self, + skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create and manage a custom skill framework + + Creates a new skill framework directly in the LearnCard Network and assigns the caller as a manager. + + :param skill_frameworks_create_managed_request: (required) + :type skill_frameworks_create_managed_request: SkillFrameworksCreateManagedRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_serialize( + skill_frameworks_create_managed_request=skill_frameworks_create_managed_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_create_managed_serialize( + self, + skill_frameworks_create_managed_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_create_managed_request is not None: + _body_params = skill_frameworks_create_managed_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/custom', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_create_managed_batch( + self, + skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[BoostGetBoostFrameworks200ResponseRecordsInner]: + """Create multiple custom skill frameworks + + Creates multiple custom frameworks (optionally with initial skills) and assigns the caller as their manager. + + :param skill_frameworks_create_managed_batch_request: (required) + :type skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_batch_serialize( + skill_frameworks_create_managed_batch_request=skill_frameworks_create_managed_batch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_create_managed_batch_with_http_info( + self, + skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetBoostFrameworks200ResponseRecordsInner]]: + """Create multiple custom skill frameworks + + Creates multiple custom frameworks (optionally with initial skills) and assigns the caller as their manager. + + :param skill_frameworks_create_managed_batch_request: (required) + :type skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_batch_serialize( + skill_frameworks_create_managed_batch_request=skill_frameworks_create_managed_batch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_create_managed_batch_without_preload_content( + self, + skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create multiple custom skill frameworks + + Creates multiple custom frameworks (optionally with initial skills) and assigns the caller as their manager. + + :param skill_frameworks_create_managed_batch_request: (required) + :type skill_frameworks_create_managed_batch_request: SkillFrameworksCreateManagedBatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_create_managed_batch_serialize( + skill_frameworks_create_managed_batch_request=skill_frameworks_create_managed_batch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_create_managed_batch_serialize( + self, + skill_frameworks_create_managed_batch_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_create_managed_batch_request is not None: + _body_params = skill_frameworks_create_managed_batch_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/custom/batch', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_delete( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksRemoveFrameworkAdmin200Response: + """Delete a managed skill framework + + Deletes a framework and its associated skills. Only available to managers of the framework. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_delete_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_delete_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksRemoveFrameworkAdmin200Response]: + """Delete a managed skill framework + + Deletes a framework and its associated skills. Only available to managers of the framework. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_delete_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_delete_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a managed skill framework + + Deletes a framework and its associated skills. Only available to managers of the framework. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_delete_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_delete_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/skills/frameworks/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_get_boosts_that_use_framework( + self, + id: StrictStr, + skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetPaginatedBoosts200Response: + """Get boosts that use a framework + + Returns paginated list of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param skill_frameworks_get_boosts_that_use_framework_request: (required) + :type skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_boosts_that_use_framework_serialize( + id=id, + skill_frameworks_get_boosts_that_use_framework_request=skill_frameworks_get_boosts_that_use_framework_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_get_boosts_that_use_framework_with_http_info( + self, + id: StrictStr, + skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetPaginatedBoosts200Response]: + """Get boosts that use a framework + + Returns paginated list of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param skill_frameworks_get_boosts_that_use_framework_request: (required) + :type skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_boosts_that_use_framework_serialize( + id=id, + skill_frameworks_get_boosts_that_use_framework_request=skill_frameworks_get_boosts_that_use_framework_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_get_boosts_that_use_framework_without_preload_content( + self, + id: StrictStr, + skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get boosts that use a framework + + Returns paginated list of boosts that use this skill framework via USES_FRAMEWORK relationship. Supports filtering with $regex, $in, and $or operators. + + :param id: (required) + :type id: str + :param skill_frameworks_get_boosts_that_use_framework_request: (required) + :type skill_frameworks_get_boosts_that_use_framework_request: SkillFrameworksGetBoostsThatUseFrameworkRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_boosts_that_use_framework_serialize( + id=id, + skill_frameworks_get_boosts_that_use_framework_request=skill_frameworks_get_boosts_that_use_framework_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetPaginatedBoosts200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_get_boosts_that_use_framework_serialize( + self, + id, + skill_frameworks_get_boosts_that_use_framework_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_get_boosts_that_use_framework_request is not None: + _body_params = skill_frameworks_get_boosts_that_use_framework_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/{id}/boosts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_get_by_id( + self, + id: StrictStr, + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksGetById200Response: + """Get Skill Framework with skills + + Returns a framework and its skills from the configured provider (hierarchical tree) + + :param id: (required) + :type id: str + :param limit: + :type limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_by_id_serialize( + id=id, + limit=limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksGetById200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_get_by_id_with_http_info( + self, + id: StrictStr, + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksGetById200Response]: + """Get Skill Framework with skills + + Returns a framework and its skills from the configured provider (hierarchical tree) + + :param id: (required) + :type id: str + :param limit: + :type limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_by_id_serialize( + id=id, + limit=limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksGetById200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_get_by_id_without_preload_content( + self, + id: StrictStr, + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Skill Framework with skills + + Returns a framework and its skills from the configured provider (hierarchical tree) + + :param id: (required) + :type id: str + :param limit: + :type limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_get_by_id_serialize( + id=id, + limit=limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksGetById200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_get_by_id_serialize( + self, + id, + limit, + children_limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if children_limit is not None: + + _query_params.append(('childrenLimit', children_limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_list_framework_admins( + self, + framework_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]: + """List framework admins + + Returns the profiles that manage the given framework. Requires manager access. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_framework_admins_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_list_framework_admins_with_http_info( + self, + framework_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]]: + """List framework admins + + Returns the profiles that manage the given framework. Requires manager access. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_framework_admins_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_list_framework_admins_without_preload_content( + self, + framework_id: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List framework admins + + Returns the profiles that manage the given framework. Requires manager access. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_framework_admins_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_list_framework_admins_serialize( + self, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks/{frameworkId}/admins', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_list_mine( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[BoostGetBoostFrameworks200ResponseRecordsInner]: + """List Skill Frameworks I manage + + Lists frameworks directly managed by the caller + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_mine_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_list_mine_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[BoostGetBoostFrameworks200ResponseRecordsInner]]: + """List Skill Frameworks I manage + + Lists frameworks directly managed by the caller + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_mine_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_list_mine_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Skill Frameworks I manage + + Lists frameworks directly managed by the caller + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_list_mine_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[BoostGetBoostFrameworks200ResponseRecordsInner]", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_list_mine_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_remove_framework_admin( + self, + framework_id: StrictStr, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksRemoveFrameworkAdmin200Response: + """Remove framework admin + + Removes a manager from the framework. Requires manager access and at least one manager must remain. + + :param framework_id: (required) + :type framework_id: str + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_remove_framework_admin_serialize( + framework_id=framework_id, + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_remove_framework_admin_with_http_info( + self, + framework_id: StrictStr, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksRemoveFrameworkAdmin200Response]: + """Remove framework admin + + Removes a manager from the framework. Requires manager access and at least one manager must remain. + + :param framework_id: (required) + :type framework_id: str + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_remove_framework_admin_serialize( + framework_id=framework_id, + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_remove_framework_admin_without_preload_content( + self, + framework_id: StrictStr, + profile_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove framework admin + + Removes a manager from the framework. Requires manager access and at least one manager must remain. + + :param framework_id: (required) + :type framework_id: str + :param profile_id: (required) + :type profile_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_remove_framework_admin_serialize( + framework_id=framework_id, + profile_id=profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_remove_framework_admin_serialize( + self, + framework_id, + profile_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + if profile_id is not None: + _path_params['profileId'] = profile_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/skills/frameworks/{frameworkId}/admins/{profileId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_replace_skills( + self, + framework_id: StrictStr, + skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksReplaceSkills200Response: + """Replace all skills in a framework + + Replaces the entire skill tree of a framework. Skills with matching IDs are updated if changed, skills not in the input are deleted, and new skills are created. Returns statistics about changes made. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_replace_skills_request: (required) + :type skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_replace_skills_serialize( + framework_id=framework_id, + skill_frameworks_replace_skills_request=skill_frameworks_replace_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksReplaceSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_replace_skills_with_http_info( + self, + framework_id: StrictStr, + skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksReplaceSkills200Response]: + """Replace all skills in a framework + + Replaces the entire skill tree of a framework. Skills with matching IDs are updated if changed, skills not in the input are deleted, and new skills are created. Returns statistics about changes made. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_replace_skills_request: (required) + :type skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_replace_skills_serialize( + framework_id=framework_id, + skill_frameworks_replace_skills_request=skill_frameworks_replace_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksReplaceSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_replace_skills_without_preload_content( + self, + framework_id: StrictStr, + skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Replace all skills in a framework + + Replaces the entire skill tree of a framework. Skills with matching IDs are updated if changed, skills not in the input are deleted, and new skills are created. Returns statistics about changes made. + + :param framework_id: (required) + :type framework_id: str + :param skill_frameworks_replace_skills_request: (required) + :type skill_frameworks_replace_skills_request: SkillFrameworksReplaceSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_replace_skills_serialize( + framework_id=framework_id, + skill_frameworks_replace_skills_request=skill_frameworks_replace_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksReplaceSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_replace_skills_serialize( + self, + framework_id, + skill_frameworks_replace_skills_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_replace_skills_request is not None: + _body_params = skill_frameworks_replace_skills_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/{frameworkId}/replace', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skill_frameworks_update( + self, + id: StrictStr, + skill_frameworks_update_request: SkillFrameworksUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostGetBoostFrameworks200ResponseRecordsInner: + """Update a managed skill framework + + Updates metadata for a framework managed by the caller. + + :param id: (required) + :type id: str + :param skill_frameworks_update_request: (required) + :type skill_frameworks_update_request: SkillFrameworksUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_update_serialize( + id=id, + skill_frameworks_update_request=skill_frameworks_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skill_frameworks_update_with_http_info( + self, + id: StrictStr, + skill_frameworks_update_request: SkillFrameworksUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostGetBoostFrameworks200ResponseRecordsInner]: + """Update a managed skill framework + + Updates metadata for a framework managed by the caller. + + :param id: (required) + :type id: str + :param skill_frameworks_update_request: (required) + :type skill_frameworks_update_request: SkillFrameworksUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_update_serialize( + id=id, + skill_frameworks_update_request=skill_frameworks_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skill_frameworks_update_without_preload_content( + self, + id: StrictStr, + skill_frameworks_update_request: SkillFrameworksUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update a managed skill framework + + Updates metadata for a framework managed by the caller. + + :param id: (required) + :type id: str + :param skill_frameworks_update_request: (required) + :type skill_frameworks_update_request: SkillFrameworksUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skill_frameworks_update_serialize( + id=id, + skill_frameworks_update_request=skill_frameworks_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostGetBoostFrameworks200ResponseRecordsInner", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skill_frameworks_update_serialize( + self, + id, + skill_frameworks_update_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skill_frameworks_update_request is not None: + _body_params = skill_frameworks_update_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/skills/frameworks/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_add_skill_tag( + self, + id: StrictStr, + skills_add_skill_tag_request: SkillsAddSkillTagRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[SkillsAddSkillTag200ResponseInner]: + """Add a tag to a skill + + Creates the tag by slug if missing and attaches it to the skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param skills_add_skill_tag_request: (required) + :type skills_add_skill_tag_request: SkillsAddSkillTagRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_add_skill_tag_serialize( + id=id, + skills_add_skill_tag_request=skills_add_skill_tag_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsAddSkillTag200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_add_skill_tag_with_http_info( + self, + id: StrictStr, + skills_add_skill_tag_request: SkillsAddSkillTagRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[SkillsAddSkillTag200ResponseInner]]: + """Add a tag to a skill + + Creates the tag by slug if missing and attaches it to the skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param skills_add_skill_tag_request: (required) + :type skills_add_skill_tag_request: SkillsAddSkillTagRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_add_skill_tag_serialize( + id=id, + skills_add_skill_tag_request=skills_add_skill_tag_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsAddSkillTag200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_add_skill_tag_without_preload_content( + self, + id: StrictStr, + skills_add_skill_tag_request: SkillsAddSkillTagRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add a tag to a skill + + Creates the tag by slug if missing and attaches it to the skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param skills_add_skill_tag_request: (required) + :type skills_add_skill_tag_request: SkillsAddSkillTagRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_add_skill_tag_serialize( + id=id, + skills_add_skill_tag_request=skills_add_skill_tag_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsAddSkillTag200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_add_skill_tag_serialize( + self, + id, + skills_add_skill_tag_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skills_add_skill_tag_request is not None: + _body_params = skills_add_skill_tag_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/{id}/tags', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_count_skills( + self, + framework_id: StrictStr, + skill_id: Optional[StrictStr] = None, + recursive: Optional[StrictBool] = None, + only_count_competencies: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsCountSkills200Response: + """Count skills in a framework + + Counts skills in a framework. If skillId is provided, counts children of that skill. If recursive is true, counts all descendants. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param skill_id: + :type skill_id: str + :param recursive: + :type recursive: bool + :param only_count_competencies: + :type only_count_competencies: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_count_skills_serialize( + framework_id=framework_id, + skill_id=skill_id, + recursive=recursive, + only_count_competencies=only_count_competencies, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCountSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_count_skills_with_http_info( + self, + framework_id: StrictStr, + skill_id: Optional[StrictStr] = None, + recursive: Optional[StrictBool] = None, + only_count_competencies: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsCountSkills200Response]: + """Count skills in a framework + + Counts skills in a framework. If skillId is provided, counts children of that skill. If recursive is true, counts all descendants. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param skill_id: + :type skill_id: str + :param recursive: + :type recursive: bool + :param only_count_competencies: + :type only_count_competencies: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_count_skills_serialize( + framework_id=framework_id, + skill_id=skill_id, + recursive=recursive, + only_count_competencies=only_count_competencies, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCountSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_count_skills_without_preload_content( + self, + framework_id: StrictStr, + skill_id: Optional[StrictStr] = None, + recursive: Optional[StrictBool] = None, + only_count_competencies: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Count skills in a framework + + Counts skills in a framework. If skillId is provided, counts children of that skill. If recursive is true, counts all descendants. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param skill_id: + :type skill_id: str + :param recursive: + :type recursive: bool + :param only_count_competencies: + :type only_count_competencies: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_count_skills_serialize( + framework_id=framework_id, + skill_id=skill_id, + recursive=recursive, + only_count_competencies=only_count_competencies, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCountSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_count_skills_serialize( + self, + framework_id, + skill_id, + recursive, + only_count_competencies, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + # process the query parameters + if skill_id is not None: + + _query_params.append(('skillId', skill_id)) + + if recursive is not None: + + _query_params.append(('recursive', recursive)) + + if only_count_competencies is not None: + + _query_params.append(('onlyCountCompetencies', only_count_competencies)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks/{frameworkId}/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_create( + self, + skills_create_request: SkillsCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsCreate200Response: + """Create a skill + + Creates a new skill within a framework managed by the caller. + + :param skills_create_request: (required) + :type skills_create_request: SkillsCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_serialize( + skills_create_request=skills_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCreate200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_create_with_http_info( + self, + skills_create_request: SkillsCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsCreate200Response]: + """Create a skill + + Creates a new skill within a framework managed by the caller. + + :param skills_create_request: (required) + :type skills_create_request: SkillsCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_serialize( + skills_create_request=skills_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCreate200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_create_without_preload_content( + self, + skills_create_request: SkillsCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a skill + + Creates a new skill within a framework managed by the caller. + + :param skills_create_request: (required) + :type skills_create_request: SkillsCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_serialize( + skills_create_request=skills_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsCreate200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_create_serialize( + self, + skills_create_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skills_create_request is not None: + _body_params = skills_create_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_create_many( + self, + skills_create_many_request: SkillsCreateManyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[SkillsCreate200Response]: + """Create many skills + + Creates multiple skills within a framework managed by the caller in a single request. Optionally specify parentId to add all root-level skills as children of an existing skill. + + :param skills_create_many_request: (required) + :type skills_create_many_request: SkillsCreateManyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_many_serialize( + skills_create_many_request=skills_create_many_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsCreate200Response]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_create_many_with_http_info( + self, + skills_create_many_request: SkillsCreateManyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[SkillsCreate200Response]]: + """Create many skills + + Creates multiple skills within a framework managed by the caller in a single request. Optionally specify parentId to add all root-level skills as children of an existing skill. + + :param skills_create_many_request: (required) + :type skills_create_many_request: SkillsCreateManyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_many_serialize( + skills_create_many_request=skills_create_many_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsCreate200Response]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_create_many_without_preload_content( + self, + skills_create_many_request: SkillsCreateManyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create many skills + + Creates multiple skills within a framework managed by the caller in a single request. Optionally specify parentId to add all root-level skills as children of an existing skill. + + :param skills_create_many_request: (required) + :type skills_create_many_request: SkillsCreateManyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_create_many_serialize( + skills_create_many_request=skills_create_many_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsCreate200Response]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_create_many_serialize( + self, + skills_create_many_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skills_create_many_request is not None: + _body_params = skills_create_many_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/batch', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_delete( + self, + id: StrictStr, + framework_id: StrictStr, + strategy: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsDelete200Response: + """Delete a skill + + Deletes a skill from a framework managed by the caller. Strategy options: \"reparent\" (default) moves children to the deleted skill's parent (or makes them root nodes if no parent), \"recursive\" deletes the skill and all its descendants. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param strategy: + :type strategy: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_delete_serialize( + id=id, + framework_id=framework_id, + strategy=strategy, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsDelete200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_delete_with_http_info( + self, + id: StrictStr, + framework_id: StrictStr, + strategy: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsDelete200Response]: + """Delete a skill + + Deletes a skill from a framework managed by the caller. Strategy options: \"reparent\" (default) moves children to the deleted skill's parent (or makes them root nodes if no parent), \"recursive\" deletes the skill and all its descendants. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param strategy: + :type strategy: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_delete_serialize( + id=id, + framework_id=framework_id, + strategy=strategy, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsDelete200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_delete_without_preload_content( + self, + id: StrictStr, + framework_id: StrictStr, + strategy: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a skill + + Deletes a skill from a framework managed by the caller. Strategy options: \"reparent\" (default) moves children to the deleted skill's parent (or makes them root nodes if no parent), \"recursive\" deletes the skill and all its descendants. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param strategy: + :type strategy: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_delete_serialize( + id=id, + framework_id=framework_id, + strategy=strategy, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsDelete200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_delete_serialize( + self, + id, + framework_id, + strategy, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + if strategy is not None: + + _query_params.append(('strategy', strategy)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/skills/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_get_framework_skill_tree( + self, + id: StrictStr, + roots_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetFrameworkSkillTree200Response: + """Get framework skill tree (roots + first children) + + Returns a paginated list of root skills for a framework and, for each root, the first page of its children. Use the per-node children endpoint to load more. + + :param id: (required) + :type id: str + :param roots_limit: + :type roots_limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_framework_skill_tree_serialize( + id=id, + roots_limit=roots_limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_get_framework_skill_tree_with_http_info( + self, + id: StrictStr, + roots_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetFrameworkSkillTree200Response]: + """Get framework skill tree (roots + first children) + + Returns a paginated list of root skills for a framework and, for each root, the first page of its children. Use the per-node children endpoint to load more. + + :param id: (required) + :type id: str + :param roots_limit: + :type roots_limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_framework_skill_tree_serialize( + id=id, + roots_limit=roots_limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_get_framework_skill_tree_without_preload_content( + self, + id: StrictStr, + roots_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + children_limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get framework skill tree (roots + first children) + + Returns a paginated list of root skills for a framework and, for each root, the first page of its children. Use the per-node children endpoint to load more. + + :param id: (required) + :type id: str + :param roots_limit: + :type roots_limit: int + :param children_limit: + :type children_limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_framework_skill_tree_serialize( + id=id, + roots_limit=roots_limit, + children_limit=children_limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_get_framework_skill_tree_serialize( + self, + id, + roots_limit, + children_limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if roots_limit is not None: + + _query_params.append(('rootsLimit', roots_limit)) + + if children_limit is not None: + + _query_params.append(('childrenLimit', children_limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks/{id}/tree', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_get_full_skill_tree( + self, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetFullSkillTree200Response: + """Get complete skill tree for a framework + + Returns all skills in the framework as a fully nested recursive tree structure. Warning: This can be a heavy query for large frameworks. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_full_skill_tree_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFullSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_get_full_skill_tree_with_http_info( + self, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetFullSkillTree200Response]: + """Get complete skill tree for a framework + + Returns all skills in the framework as a fully nested recursive tree structure. Warning: This can be a heavy query for large frameworks. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_full_skill_tree_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFullSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_get_full_skill_tree_without_preload_content( + self, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get complete skill tree for a framework + + Returns all skills in the framework as a fully nested recursive tree structure. Warning: This can be a heavy query for large frameworks. Requires managing the framework. + + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_full_skill_tree_serialize( + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFullSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_get_full_skill_tree_serialize( + self, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if framework_id is not None: + _path_params['frameworkId'] = framework_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/frameworks/{frameworkId}/tree/full', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_get_skill( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetSkill200Response: + """Get a skill by ID + + Retrieves a skill by its ID within a specific framework. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_get_skill_with_http_info( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetSkill200Response]: + """Get a skill by ID + + Retrieves a skill by its ID within a specific framework. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_get_skill_without_preload_content( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get a skill by ID + + Retrieves a skill by its ID within a specific framework. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_get_skill_serialize( + self, + id, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_get_skill_children_tree( + self, + id: StrictStr, + framework_id: Optional[StrictStr], + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetFrameworkSkillTree200Response: + """Get children for a skill (framework-scoped, paginated) + + Returns the first page (or subsequent pages) of children for a given skill within a framework. Each child includes hasChildren and an empty children array. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_children_tree_serialize( + id=id, + framework_id=framework_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_get_skill_children_tree_with_http_info( + self, + id: StrictStr, + framework_id: Optional[StrictStr], + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetFrameworkSkillTree200Response]: + """Get children for a skill (framework-scoped, paginated) + + Returns the first page (or subsequent pages) of children for a given skill within a framework. Each child includes hasChildren and an empty children array. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_children_tree_serialize( + id=id, + framework_id=framework_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_get_skill_children_tree_without_preload_content( + self, + id: StrictStr, + framework_id: Optional[StrictStr], + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None, + cursor: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get children for a skill (framework-scoped, paginated) + + Returns the first page (or subsequent pages) of children for a given skill within a framework. Each child includes hasChildren and an empty children array. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param limit: + :type limit: int + :param cursor: + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_children_tree_serialize( + id=id, + framework_id=framework_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetFrameworkSkillTree200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_get_skill_children_tree_serialize( + self, + id, + framework_id, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/{id}/children', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_get_skill_path( + self, + skill_id: Optional[StrictStr], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetSkillPath200Response: + """Get breadcrumb path for a skill + + Returns the skill and all its ancestors up to the root skill in the framework. Useful for rendering breadcrumbs. Results are ordered from the skill itself up to the root (reverse hierarchical order). + + :param skill_id: (required) + :type skill_id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_path_serialize( + skill_id=skill_id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkillPath200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_get_skill_path_with_http_info( + self, + skill_id: Optional[StrictStr], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetSkillPath200Response]: + """Get breadcrumb path for a skill + + Returns the skill and all its ancestors up to the root skill in the framework. Useful for rendering breadcrumbs. Results are ordered from the skill itself up to the root (reverse hierarchical order). + + :param skill_id: (required) + :type skill_id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_path_serialize( + skill_id=skill_id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkillPath200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_get_skill_path_without_preload_content( + self, + skill_id: Optional[StrictStr], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get breadcrumb path for a skill + + Returns the skill and all its ancestors up to the root skill in the framework. Useful for rendering breadcrumbs. Results are ordered from the skill itself up to the root (reverse hierarchical order). + + :param skill_id: (required) + :type skill_id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_get_skill_path_serialize( + skill_id=skill_id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkillPath200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_get_skill_path_serialize( + self, + skill_id, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if skill_id is not None: + _path_params['skillId'] = skill_id + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/{skillId}/path', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_list_skill_tags( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[SkillsListSkillTags200ResponseInner]: + """List tags for a skill + + Lists all tags attached to a skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_list_skill_tags_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsListSkillTags200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_list_skill_tags_with_http_info( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[SkillsListSkillTags200ResponseInner]]: + """List tags for a skill + + Lists all tags attached to a skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_list_skill_tags_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsListSkillTags200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_list_skill_tags_without_preload_content( + self, + id: StrictStr, + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List tags for a skill + + Lists all tags attached to a skill. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_list_skill_tags_serialize( + id=id, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[SkillsListSkillTags200ResponseInner]", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_list_skill_tags_serialize( + self, + id, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/skills/{id}/tags', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_remove_skill_tag( + self, + id: StrictStr, + slug: Annotated[str, Field(min_length=1, strict=True)], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillFrameworksRemoveFrameworkAdmin200Response: + """Remove a tag from a skill + + Removes the HAS_TAG relationship from the skill to the tag. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param slug: (required) + :type slug: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_remove_skill_tag_serialize( + id=id, + slug=slug, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_remove_skill_tag_with_http_info( + self, + id: StrictStr, + slug: Annotated[str, Field(min_length=1, strict=True)], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillFrameworksRemoveFrameworkAdmin200Response]: + """Remove a tag from a skill + + Removes the HAS_TAG relationship from the skill to the tag. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param slug: (required) + :type slug: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_remove_skill_tag_serialize( + id=id, + slug=slug, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_remove_skill_tag_without_preload_content( + self, + id: StrictStr, + slug: Annotated[str, Field(min_length=1, strict=True)], + framework_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove a tag from a skill + + Removes the HAS_TAG relationship from the skill to the tag. Requires managing a framework containing the skill. + + :param id: (required) + :type id: str + :param slug: (required) + :type slug: str + :param framework_id: (required) + :type framework_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_remove_skill_tag_serialize( + id=id, + slug=slug, + framework_id=framework_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillFrameworksRemoveFrameworkAdmin200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_remove_skill_tag_serialize( + self, + id, + slug, + framework_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if slug is not None: + _path_params['slug'] = slug + # process the query parameters + if framework_id is not None: + + _query_params.append(('frameworkId', framework_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/skills/{id}/tags/{slug}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_search_framework_skills( + self, + skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BoostSearchSkillsAvailableForBoost200Response: + """Search skills in a framework + + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Requires framework management. + + :param skills_search_framework_skills_request: (required) + :type skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_search_framework_skills_serialize( + skills_search_framework_skills_request=skills_search_framework_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSearchSkillsAvailableForBoost200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_search_framework_skills_with_http_info( + self, + skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BoostSearchSkillsAvailableForBoost200Response]: + """Search skills in a framework + + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Requires framework management. + + :param skills_search_framework_skills_request: (required) + :type skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_search_framework_skills_serialize( + skills_search_framework_skills_request=skills_search_framework_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSearchSkillsAvailableForBoost200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_search_framework_skills_without_preload_content( + self, + skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Search skills in a framework + + Returns a flattened, paginated list of skills matching the search query. Supports $regex and $in operators. Requires framework management. + + :param skills_search_framework_skills_request: (required) + :type skills_search_framework_skills_request: SkillsSearchFrameworkSkillsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_search_framework_skills_serialize( + skills_search_framework_skills_request=skills_search_framework_skills_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BoostSearchSkillsAvailableForBoost200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_search_framework_skills_serialize( + self, + skills_search_framework_skills_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skills_search_framework_skills_request is not None: + _body_params = skills_search_framework_skills_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/framework/search', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_sync_framework_skills( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsSyncFrameworkSkills200Response: + """Sync Framework Skills + + Fetch skills from the configured provider and upsert them locally, linking to the framework and creating parent relationships + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_sync_framework_skills_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsSyncFrameworkSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_sync_framework_skills_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsSyncFrameworkSkills200Response]: + """Sync Framework Skills + + Fetch skills from the configured provider and upsert them locally, linking to the framework and creating parent relationships + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_sync_framework_skills_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsSyncFrameworkSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_sync_framework_skills_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Sync Framework Skills + + Fetch skills from the configured provider and upsert them locally, linking to the framework and creating parent relationships + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_sync_framework_skills_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsSyncFrameworkSkills200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_sync_framework_skills_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/skills/frameworks/{id}/sync', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def skills_update( + self, + id: StrictStr, + skills_update_request: SkillsUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SkillsGetSkill200Response: + """Update a skill + + Updates a skill within a framework managed by the caller. + + :param id: (required) + :type id: str + :param skills_update_request: (required) + :type skills_update_request: SkillsUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_update_serialize( + id=id, + skills_update_request=skills_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def skills_update_with_http_info( + self, + id: StrictStr, + skills_update_request: SkillsUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SkillsGetSkill200Response]: + """Update a skill + + Updates a skill within a framework managed by the caller. + + :param id: (required) + :type id: str + :param skills_update_request: (required) + :type skills_update_request: SkillsUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_update_serialize( + id=id, + skills_update_request=skills_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def skills_update_without_preload_content( + self, + id: StrictStr, + skills_update_request: SkillsUpdateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update a skill + + Updates a skill within a framework managed by the caller. + + :param id: (required) + :type id: str + :param skills_update_request: (required) + :type skills_update_request: SkillsUpdateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._skills_update_serialize( + id=id, + skills_update_request=skills_update_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SkillsGetSkill200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _skills_update_serialize( + self, + id, + skills_update_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if skills_update_request is not None: + _body_params = skills_update_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/skills/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/universal_inbox_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/universal_inbox_api.py index 53d686d274..999dc043a3 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/universal_inbox_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/universal_inbox_api.py @@ -17,12 +17,19 @@ from typing_extensions import Annotated from pydantic import StrictStr -from typing import Optional +from typing import Any, Dict, Optional +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest +from openapi_client.models.inbox_claim200_response import InboxClaim200Response +from openapi_client.models.inbox_claim_request import InboxClaimRequest +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response from openapi_client.models.inbox_get_my_issued_credentials200_response import InboxGetMyIssuedCredentials200Response from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner import InboxGetMyIssuedCredentials200ResponseRecordsInner from openapi_client.models.inbox_get_my_issued_credentials_request import InboxGetMyIssuedCredentialsRequest from openapi_client.models.inbox_issue200_response import InboxIssue200Response from openapi_client.models.inbox_issue_request import InboxIssueRequest +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest from openapi_client.api_client import ApiClient, RequestSerialized from openapi_client.api_response import ApiResponse @@ -42,10 +49,1144 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def inbox_approve_guardian_request( + self, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContactMethodsSendChallenge200Response: + """Approve Guardian Request + + Consumes a guardian approval token and marks the requesting user profile as approved. + + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def inbox_approve_guardian_request_with_http_info( + self, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Approve Guardian Request + + Consumes a guardian approval token and marks the requesting user profile as approved. + + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def inbox_approve_guardian_request_without_preload_content( + self, + inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Approve Guardian Request + + Consumes a guardian approval token and marks the requesting user profile as approved. + + :param inbox_approve_guardian_request_request: (required) + :type inbox_approve_guardian_request_request: InboxApproveGuardianRequestRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_serialize( + inbox_approve_guardian_request_request=inbox_approve_guardian_request_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _inbox_approve_guardian_request_serialize( + self, + inbox_approve_guardian_request_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if inbox_approve_guardian_request_request is not None: + _body_params = inbox_approve_guardian_request_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/inbox/guardian-approval/approve', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def inbox_approve_guardian_request_by_path( + self, + token: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContactMethodsSendChallenge200Response: + """Approve Guardian Request (GET) + + GET endpoint to consume guardian approval token from URL path. + + :param token: (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def inbox_approve_guardian_request_by_path_with_http_info( + self, + token: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContactMethodsSendChallenge200Response]: + """Approve Guardian Request (GET) + + GET endpoint to consume guardian approval token from URL path. + + :param token: (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def inbox_approve_guardian_request_by_path_without_preload_content( + self, + token: Optional[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Approve Guardian Request (GET) + + GET endpoint to consume guardian approval token from URL path. + + :param token: (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_approve_guardian_request_by_path_serialize( + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContactMethodsSendChallenge200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '404': "ErrorNOTFOUND", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _inbox_approve_guardian_request_by_path_serialize( + self, + token, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token is not None: + _path_params['token'] = token + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/inbox/guardian-approval/{token}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def inbox_claim( + self, + inbox_claim_request: InboxClaimRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> InboxClaim200Response: + """Claim Universal Inbox Credential + + Claim a credential from the inbox + + :param inbox_claim_request: (required) + :type inbox_claim_request: InboxClaimRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_claim_serialize( + inbox_claim_request=inbox_claim_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxClaim200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def inbox_claim_with_http_info( + self, + inbox_claim_request: InboxClaimRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[InboxClaim200Response]: + """Claim Universal Inbox Credential + + Claim a credential from the inbox + + :param inbox_claim_request: (required) + :type inbox_claim_request: InboxClaimRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_claim_serialize( + inbox_claim_request=inbox_claim_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxClaim200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def inbox_claim_without_preload_content( + self, + inbox_claim_request: InboxClaimRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Claim Universal Inbox Credential + + Claim a credential from the inbox + + :param inbox_claim_request: (required) + :type inbox_claim_request: InboxClaimRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_claim_serialize( + inbox_claim_request=inbox_claim_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxClaim200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _inbox_claim_serialize( + self, + inbox_claim_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if inbox_claim_request is not None: + _body_params = inbox_claim_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/inbox/claim', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def inbox_finalize( + self, + body: Optional[Dict[str, Any]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> InboxFinalize200Response: + """Finalize Universal Inbox Credentials + + Sign and issue all pending inbox credentials for verified contact methods of the authenticated profile + + :param body: + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_finalize_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxFinalize200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def inbox_finalize_with_http_info( + self, + body: Optional[Dict[str, Any]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[InboxFinalize200Response]: + """Finalize Universal Inbox Credentials + + Sign and issue all pending inbox credentials for verified contact methods of the authenticated profile + + :param body: + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_finalize_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxFinalize200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def inbox_finalize_without_preload_content( + self, + body: Optional[Dict[str, Any]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Finalize Universal Inbox Credentials + + Sign and issue all pending inbox credentials for verified contact methods of the authenticated profile + + :param body: + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_finalize_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxFinalize200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _inbox_finalize_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/inbox/finalize', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def inbox_get_inbox_credential( self, - credential_id: StrictStr, + credential_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117,7 +1258,7 @@ def inbox_get_inbox_credential( @validate_call def inbox_get_inbox_credential_with_http_info( self, - credential_id: StrictStr, + credential_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -189,7 +1330,7 @@ def inbox_get_inbox_credential_with_http_info( @validate_call def inbox_get_inbox_credential_without_preload_content( self, - credential_id: StrictStr, + credential_id: Optional[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -888,3 +2029,289 @@ def _inbox_issue_serialize( ) + + + @validate_call + def inbox_send_guardian_approval_email( + self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> InboxSendGuardianApprovalEmail200Response: + """Send Guardian Approval Email + + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def inbox_send_guardian_approval_email_with_http_info( + self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[InboxSendGuardianApprovalEmail200Response]: + """Send Guardian Approval Email + + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def inbox_send_guardian_approval_email_without_preload_content( + self, + inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Send Guardian Approval Email + + Generates a one-time approval token and emails a link to the guardian. When the link is consumed, the requester's profile will be marked as approved. + + :param inbox_send_guardian_approval_email_request: (required) + :type inbox_send_guardian_approval_email_request: InboxSendGuardianApprovalEmailRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._inbox_send_guardian_approval_email_serialize( + inbox_send_guardian_approval_email_request=inbox_send_guardian_approval_email_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "InboxSendGuardianApprovalEmail200Response", + '400': "ErrorBADREQUEST", + '401': "ErrorUNAUTHORIZED", + '403': "ErrorFORBIDDEN", + '500': "ErrorINTERNALSERVERERROR", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _inbox_send_guardian_approval_email_serialize( + self, + inbox_send_guardian_approval_email_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if inbox_send_guardian_approval_email_request is not None: + _body_params = inbox_send_guardian_approval_email_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Authorization' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/inbox/guardian-approval/send', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/utilities_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/utilities_api.py index 3d1f2aba87..d208dc61da 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/utilities_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/utilities_api.py @@ -41,7 +41,7 @@ def __init__(self, api_client=None) -> None: @validate_call def utilities_get_challenges( self, - amount: Optional[Annotated[int, Field(le=100, strict=True, gt=0)]] = None, + amount: Optional[Annotated[int, Field(le=100, strict=True)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113,7 +113,7 @@ def utilities_get_challenges( @validate_call def utilities_get_challenges_with_http_info( self, - amount: Optional[Annotated[int, Field(le=100, strict=True, gt=0)]] = None, + amount: Optional[Annotated[int, Field(le=100, strict=True)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -185,7 +185,7 @@ def utilities_get_challenges_with_http_info( @validate_call def utilities_get_challenges_without_preload_content( self, - amount: Optional[Annotated[int, Field(le=100, strict=True, gt=0)]] = None, + amount: Optional[Annotated[int, Field(le=100, strict=True)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/vcapi_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/vcapi_api.py index 76cdde554b..3e947f103c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/vcapi_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/vcapi_api.py @@ -17,6 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr +from typing import Optional from openapi_client.models.workflows_participate_in_exchange200_response import WorkflowsParticipateInExchange200Response from openapi_client.models.workflows_participate_in_exchange_request import WorkflowsParticipateInExchangeRequest @@ -41,8 +42,8 @@ def __init__(self, api_client=None) -> None: @validate_call def workflows_participate_in_exchange( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, @@ -120,8 +121,8 @@ def workflows_participate_in_exchange( @validate_call def workflows_participate_in_exchange_with_http_info( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, @@ -199,8 +200,8 @@ def workflows_participate_in_exchange_with_http_info( @validate_call def workflows_participate_in_exchange_without_preload_content( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api/workflows_api.py b/packages/open-api-lcn-clients/python-client/openapi_client/api/workflows_api.py index 43c254b006..a8e2092231 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api/workflows_api.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api/workflows_api.py @@ -17,6 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr +from typing import Optional from openapi_client.models.workflows_participate_in_exchange200_response import WorkflowsParticipateInExchange200Response from openapi_client.models.workflows_participate_in_exchange_request import WorkflowsParticipateInExchangeRequest @@ -41,8 +42,8 @@ def __init__(self, api_client=None) -> None: @validate_call def workflows_participate_in_exchange( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, @@ -120,8 +121,8 @@ def workflows_participate_in_exchange( @validate_call def workflows_participate_in_exchange_with_http_info( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, @@ -199,8 +200,8 @@ def workflows_participate_in_exchange_with_http_info( @validate_call def workflows_participate_in_exchange_without_preload_content( self, - local_workflow_id: StrictStr, - local_exchange_id: StrictStr, + local_workflow_id: Optional[StrictStr], + local_exchange_id: Optional[StrictStr], workflows_participate_in_exchange_request: WorkflowsParticipateInExchangeRequest, _request_timeout: Union[ None, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/api_client.py b/packages/open-api-lcn-clients/python-client/openapi_client/api_client.py index a56474e24b..b499ec9639 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/api_client.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/api_client.py @@ -21,6 +21,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -311,7 +312,7 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader('content-type') + content_type = response_data.headers.get('content-type') if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" @@ -328,7 +329,7 @@ def response_deserialize( return ApiResponse( status_code = response_data.status, data = return_data, - headers = response_data.getheaders(), + headers = response_data.headers, raw_data = response_data.data ) @@ -356,6 +357,8 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -408,7 +411,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: @@ -457,13 +460,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) @@ -698,7 +701,7 @@ def __deserialize_file(self, response): os.close(fd) os.remove(path) - content_disposition = response.getheader("Content-Disposition") + content_disposition = response.headers.get("Content-Disposition") if content_disposition: m = re.search( r'filename=[\'"]?([^\'"\s]+)[\'"]?', diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/configuration.py b/packages/open-api-lcn-clients/python-client/openapi_client/configuration.py index 62002aac94..a85674f45b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/configuration.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/configuration.py @@ -163,6 +163,8 @@ class Configuration: :param retries: Number of retries for API requests. :param ca_cert_data: verify the peer using concatenated CA certificate data in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. :Example: """ @@ -185,6 +187,8 @@ def __init__( ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, *, debug: Optional[bool] = None, ) -> None: @@ -266,10 +270,10 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ self.assert_hostname = None @@ -482,6 +486,7 @@ def get_basic_auth_token(self) -> Optional[str]: password = "" if self.password is not None: password = self.password + return urllib3.util.make_headers( basic_auth=username + ':' + password ).get('authorization') @@ -558,6 +563,7 @@ def get_host_from_settings( variable_name, variable['default_value']) if 'enum_values' in variable \ + and variable['enum_values'] \ and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/exceptions.py b/packages/open-api-lcn-clients/python-client/openapi_client/exceptions.py index 311787750b..fd1c6144f9 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/exceptions.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/exceptions.py @@ -128,7 +128,7 @@ def __init__( self.body = http_resp.data.decode('utf-8') except Exception: pass - self.headers = http_resp.getheaders() + self.headers = http_resp.headers @classmethod def from_response( @@ -169,8 +169,11 @@ def __str__(self): error_message += "HTTP response headers: {0}\n".format( self.headers) - if self.data or self.body: - error_message += "HTTP response body: {0}\n".format(self.data or self.body) + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + if self.data: + error_message += "HTTP response data: {0}\n".format(self.data) return error_message diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/__init__.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/__init__.py index 94ee9a213e..64e4775b48 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/__init__.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/__init__.py @@ -12,8 +12,21 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest +from openapi_client.models.app_store_create_listing_request_listing import AppStoreCreateListingRequestListing +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response +from openapi_client.models.app_store_get_installed_apps200_response_records_inner import AppStoreGetInstalledApps200ResponseRecordsInner +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest +from openapi_client.models.app_store_update_listing_request_updates import AppStoreUpdateListingRequestUpdates from openapi_client.models.auth_grants_add_auth_grant_request import AuthGrantsAddAuthGrantRequest from openapi_client.models.auth_grants_get_auth_grant200_response import AuthGrantsGetAuthGrant200Response from openapi_client.models.auth_grants_get_auth_grants200_response_inner import AuthGrantsGetAuthGrants200ResponseInner @@ -22,7 +35,12 @@ from openapi_client.models.auth_grants_update_auth_grant_request import AuthGrantsUpdateAuthGrantRequest from openapi_client.models.auth_grants_update_auth_grant_request_updates import AuthGrantsUpdateAuthGrantRequestUpdates from openapi_client.models.boost_add_boost_admin_request import BoostAddBoostAdminRequest +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest +from openapi_client.models.boost_align_boost_skills_request_skills_inner import BoostAlignBoostSkillsRequestSkillsInner +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest from openapi_client.models.boost_count_boost_children_request import BoostCountBoostChildrenRequest +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest from openapi_client.models.boost_count_boost_siblings_request import BoostCountBoostSiblingsRequest from openapi_client.models.boost_count_familial_boosts_request import BoostCountFamilialBoostsRequest from openapi_client.models.boost_create_boost_request import BoostCreateBoostRequest @@ -30,28 +48,47 @@ from openapi_client.models.boost_create_boost_request_credential import BoostCreateBoostRequestCredential from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf from openapi_client.models.boost_create_child_boost_request import BoostCreateChildBoostRequest +from openapi_client.models.boost_create_child_boost_request_boost import BoostCreateChildBoostRequestBoost +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest from openapi_client.models.boost_generate_claim_link200_response import BoostGenerateClaimLink200Response from openapi_client.models.boost_generate_claim_link_request import BoostGenerateClaimLinkRequest from openapi_client.models.boost_generate_claim_link_request_claim_link_sa import BoostGenerateClaimLinkRequestClaimLinkSA from openapi_client.models.boost_generate_claim_link_request_options import BoostGenerateClaimLinkRequestOptions from openapi_client.models.boost_get_boost200_response import BoostGetBoost200Response +from openapi_client.models.boost_get_boost200_response_boost import BoostGetBoost200ResponseBoost +from openapi_client.models.boost_get_boost200_response_boost_issuer import BoostGetBoost200ResponseBoostIssuer +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of import BoostGetBoost200ResponseBoostIssuerAnyOf +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address import BoostGetBoost200ResponseBoostIssuerAnyOfAddress +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address_geo import BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image import BoostGetBoost200ResponseBoostIssuerAnyOfImage +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image_any_of import BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner import BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from openapi_client.models.boost_get_boost200_response_claim_permissions import BoostGetBoost200ResponseClaimPermissions +from openapi_client.models.boost_get_boost200_response_default_permissions import BoostGetBoost200ResponseDefaultPermissions from openapi_client.models.boost_get_boost_admins200_response import BoostGetBoostAdmins200Response from openapi_client.models.boost_get_boost_admins_request import BoostGetBoostAdminsRequest +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner from openapi_client.models.boost_get_boost_children_request import BoostGetBoostChildrenRequest +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest +from openapi_client.models.boost_get_boost_frameworks_request_query import BoostGetBoostFrameworksRequestQuery +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of import BoostGetBoostFrameworksRequestQueryAnyOf +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from openapi_client.models.boost_get_boost_siblings_request import BoostGetBoostSiblingsRequest from openapi_client.models.boost_get_boosts200_response_inner import BoostGetBoosts200ResponseInner from openapi_client.models.boost_get_boosts_request import BoostGetBoostsRequest from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery -from openapi_client.models.boost_get_boosts_request_query_status import BoostGetBoostsRequestQueryStatus -from openapi_client.models.boost_get_boosts_request_query_status_any_of import BoostGetBoostsRequestQueryStatusAnyOf -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri -from openapi_client.models.boost_get_boosts_request_query_uri_any_of import BoostGetBoostsRequestQueryUriAnyOf -from openapi_client.models.boost_get_boosts_request_query_uri_any_of1 import BoostGetBoostsRequestQueryUriAnyOf1 -from openapi_client.models.boost_get_boosts_request_query_uri_any_of_any_of import BoostGetBoostsRequestQueryUriAnyOfAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of import BoostGetBoostsRequestQueryAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status import BoostGetBoostsRequestQueryAnyOfOrInnerStatus +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status_any_of import BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from openapi_client.models.boost_get_children_profile_managers200_response import BoostGetChildrenProfileManagers200Response from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner from openapi_client.models.boost_get_children_profile_managers_request import BoostGetChildrenProfileManagersRequest @@ -59,12 +96,47 @@ from openapi_client.models.boost_get_connected_boost_recipients_request import BoostGetConnectedBoostRecipientsRequest from openapi_client.models.boost_get_familial_boosts_request import BoostGetFamilialBoostsRequest from openapi_client.models.boost_get_paginated_boost_recipients200_response import BoostGetPaginatedBoostRecipients200Response +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner import BoostGetPaginatedBoostRecipients200ResponseRecordsInner +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from openapi_client.models.boost_get_paginated_boost_recipients_request import BoostGetPaginatedBoostRecipientsRequest from openapi_client.models.boost_get_paginated_boost_recipients_request_query import BoostGetPaginatedBoostRecipientsRequestQuery +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response_records_inner import BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request_number_of_generations import BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations from openapi_client.models.boost_get_paginated_boosts200_response import BoostGetPaginatedBoosts200Response from openapi_client.models.boost_get_paginated_boosts200_response_records_inner import BoostGetPaginatedBoosts200ResponseRecordsInner from openapi_client.models.boost_get_paginated_boosts_request import BoostGetPaginatedBoostsRequest +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_framework import BoostGetSkillsAvailableForBoost200ResponseInnerFramework +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_skills_inner import BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from openapi_client.models.boost_make_boost_parent_request import BoostMakeBoostParentRequest +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response +from openapi_client.models.boost_search_skills_available_for_boost200_response_records_inner import BoostSearchSkillsAvailableForBoost200ResponseRecordsInner +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest +from openapi_client.models.boost_search_skills_available_for_boost_request_query import BoostSearchSkillsAvailableForBoostRequestQuery +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf +from openapi_client.models.boost_send200_response import BoostSend200Response from openapi_client.models.boost_send_boost_request import BoostSendBoostRequest from openapi_client.models.boost_send_boost_request_credential import BoostSendBoostRequestCredential from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf @@ -75,12 +147,14 @@ from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema import BoostSendBoostRequestCredentialAnyOfCredentialSchema from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status_any_of import BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject import BoostSendBoostRequestCredentialAnyOfCredentialSubject from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_evidence import BoostSendBoostRequestCredentialAnyOfEvidence from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_issuer import BoostSendBoostRequestCredentialAnyOfIssuer from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of import BoostSendBoostRequestCredentialAnyOfIssuerAnyOf from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress @@ -93,44 +167,91 @@ from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType from openapi_client.models.boost_send_boost_request_credential_any_of_proof import BoostSendBoostRequestCredentialAnyOfProof from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of import BoostSendBoostRequestCredentialAnyOfProofAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service import BoostSendBoostRequestCredentialAnyOfRefreshService from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse -from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use_any_of import BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from openapi_client.models.boost_send_boost_request_options import BoostSendBoostRequestOptions from openapi_client.models.boost_send_boost_via_signing_authority_request import BoostSendBoostViaSigningAuthorityRequest from openapi_client.models.boost_send_boost_via_signing_authority_request_signing_authority import BoostSendBoostViaSigningAuthorityRequestSigningAuthority +from openapi_client.models.boost_send_request import BoostSendRequest +from openapi_client.models.boost_send_request_template import BoostSendRequestTemplate +from openapi_client.models.boost_send_request_template_claim_permissions import BoostSendRequestTemplateClaimPermissions +from openapi_client.models.boost_send_request_template_credential import BoostSendRequestTemplateCredential +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of1 import BoostSendRequestTemplateCredentialAnyOf1 +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.boost_send_request_template_default_permissions import BoostSendRequestTemplateDefaultPermissions +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner from openapi_client.models.boost_update_boost_permissions_request import BoostUpdateBoostPermissionsRequest from openapi_client.models.boost_update_boost_permissions_request_updates import BoostUpdateBoostPermissionsRequestUpdates from openapi_client.models.boost_update_boost_request import BoostUpdateBoostRequest from openapi_client.models.boost_update_boost_request_updates import BoostUpdateBoostRequestUpdates +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest +from openapi_client.models.boost_update_other_boost_permissions_request_updates import BoostUpdateOtherBoostPermissionsRequestUpdates from openapi_client.models.claim_hook_create_claim_hook_request import ClaimHookCreateClaimHookRequest from openapi_client.models.claim_hook_create_claim_hook_request_hook import ClaimHookCreateClaimHookRequestHook from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of import ClaimHookCreateClaimHookRequestHookOneOf from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1 import ClaimHookCreateClaimHookRequestHookOneOf1 from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1_data import ClaimHookCreateClaimHookRequestHookOneOf1Data +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2 import ClaimHookCreateClaimHookRequestHookOneOf2 +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2_data import ClaimHookCreateClaimHookRequestHookOneOf2Data from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_data import ClaimHookCreateClaimHookRequestHookOneOfData from openapi_client.models.claim_hook_delete_claim_hook_request import ClaimHookDeleteClaimHookRequest from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response import ClaimHookGetClaimHooksForBoost200Response from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner import ClaimHookGetClaimHooksForBoost200ResponseRecordsInner +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request import ClaimHookGetClaimHooksForBoostRequest from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query import ClaimHookGetClaimHooksForBoostRequestQuery from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data import ClaimHookGetClaimHooksForBoostRequestQueryData from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data_permissions import ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions from openapi_client.models.contact_methods_add_contact_method200_response import ContactMethodsAddContactMethod200Response from openapi_client.models.contact_methods_add_contact_method_request import ContactMethodsAddContactMethodRequest +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest +from openapi_client.models.contact_methods_create_contact_method_session_request_contact_method import ContactMethodsCreateContactMethodSessionRequestContactMethod from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner import ContactMethodsGetMyContactMethods200ResponseInner from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner_one_of import ContactMethodsGetMyContactMethods200ResponseInnerOneOf from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner_one_of1 import ContactMethodsGetMyContactMethods200ResponseInnerOneOf1 -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest +from openapi_client.models.contact_methods_send_challenge_request_configuration import ContactMethodsSendChallengeRequestConfiguration from openapi_client.models.contact_methods_set_primary_contact_method_request import ContactMethodsSetPrimaryContactMethodRequest -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response from openapi_client.models.contact_methods_verify_contact_method_request import ContactMethodsVerifyContactMethodRequest +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method import ContactMethodsVerifyWithCredential200ResponseContactMethod +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of1 import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest from openapi_client.models.contracts_add_auto_boosts_to_contract_request import ContractsAddAutoBoostsToContractRequest +from openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner import ContractsAddAutoBoostsToContractRequestAutoboostsInner +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response from openapi_client.models.contracts_consent_to_contract_request import ContractsConsentToContractRequest from openapi_client.models.contracts_consent_to_contract_request_terms import ContractsConsentToContractRequestTerms from openapi_client.models.contracts_consent_to_contract_request_terms_read import ContractsConsentToContractRequestTermsRead from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials import ContractsConsentToContractRequestTermsReadCredentials +from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value import ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from openapi_client.models.contracts_consent_to_contract_request_terms_write import ContractsConsentToContractRequestTermsWrite from openapi_client.models.contracts_consent_to_contract_request_terms_write_credentials import ContractsConsentToContractRequestTermsWriteCredentials from openapi_client.models.contracts_create_consent_flow_contract_request import ContractsCreateConsentFlowContractRequest @@ -139,9 +260,15 @@ from openapi_client.models.contracts_create_consent_flow_contract_request_contract import ContractsCreateConsentFlowContractRequestContract from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read import ContractsCreateConsentFlowContractRequestContractRead from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials import ContractsCreateConsentFlowContractRequestContractReadCredentials +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from openapi_client.models.contracts_create_consent_flow_contract_request_contract_write import ContractsCreateConsentFlowContractRequestContractWrite +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner_contract import ContractsGetAllContractRequestsForProfile200ResponseInnerContract from openapi_client.models.contracts_get_all_credentials_for_terms_request import ContractsGetAllCredentialsForTermsRequest from openapi_client.models.contracts_get_consent_flow_contract200_response import ContractsGetConsentFlowContract200Response +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead from openapi_client.models.contracts_get_consent_flow_contracts200_response import ContractsGetConsentFlowContracts200Response from openapi_client.models.contracts_get_consent_flow_contracts200_response_records_inner import ContractsGetConsentFlowContracts200ResponseRecordsInner from openapi_client.models.contracts_get_consent_flow_contracts_request import ContractsGetConsentFlowContractsRequest @@ -152,11 +279,18 @@ from openapi_client.models.contracts_get_consent_flow_contracts_request_query_write import ContractsGetConsentFlowContractsRequestQueryWrite from openapi_client.models.contracts_get_consented_contracts200_response import ContractsGetConsentedContracts200Response from openapi_client.models.contracts_get_consented_contracts200_response_records_inner import ContractsGetConsentedContracts200ResponseRecordsInner +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms import ContractsGetConsentedContracts200ResponseRecordsInnerTerms +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from openapi_client.models.contracts_get_consented_contracts_request import ContractsGetConsentedContractsRequest from openapi_client.models.contracts_get_consented_contracts_request_query import ContractsGetConsentedContractsRequestQuery from openapi_client.models.contracts_get_consented_contracts_request_query_read import ContractsGetConsentedContractsRequestQueryRead from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials import ContractsGetConsentedContractsRequestQueryReadCredentials +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from openapi_client.models.contracts_get_consented_contracts_request_query_write import ContractsGetConsentedContractsRequestQueryWrite +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response +from openapi_client.models.contracts_get_consented_data200_response_records_inner import ContractsGetConsentedData200ResponseRecordsInner from openapi_client.models.contracts_get_consented_data_for_contract200_response import ContractsGetConsentedDataForContract200Response from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner import ContractsGetConsentedDataForContract200ResponseRecordsInner from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner_credentials import ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials @@ -169,11 +303,16 @@ from openapi_client.models.contracts_get_consented_data_for_did_request import ContractsGetConsentedDataForDidRequest from openapi_client.models.contracts_get_consented_data_for_did_request_query import ContractsGetConsentedDataForDidRequestQuery from openapi_client.models.contracts_get_consented_data_request import ContractsGetConsentedDataRequest +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner from openapi_client.models.contracts_get_credentials_for_contract200_response import ContractsGetCredentialsForContract200Response from openapi_client.models.contracts_get_credentials_for_contract200_response_records_inner import ContractsGetCredentialsForContract200ResponseRecordsInner from openapi_client.models.contracts_get_credentials_for_contract_request import ContractsGetCredentialsForContractRequest +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response from openapi_client.models.contracts_get_terms_transaction_history200_response import ContractsGetTermsTransactionHistory200Response from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner import ContractsGetTermsTransactionHistory200ResponseRecordsInner +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from openapi_client.models.contracts_get_terms_transaction_history_request import ContractsGetTermsTransactionHistoryRequest from openapi_client.models.contracts_get_terms_transaction_history_request_query import ContractsGetTermsTransactionHistoryRequestQuery from openapi_client.models.contracts_get_terms_transaction_history_request_query_action import ContractsGetTermsTransactionHistoryRequestQueryAction @@ -182,36 +321,79 @@ from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1 from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf from openapi_client.models.contracts_get_terms_transaction_history_request_query_date_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1 +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at import ContractsGetTermsTransactionHistoryRequestQueryExpiresAt +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms import ContractsGetTermsTransactionHistoryRequestQueryTerms +from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read import ContractsGetTermsTransactionHistoryRequestQueryTermsRead +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest from openapi_client.models.contracts_remove_auto_boosts_from_contract_request import ContractsRemoveAutoBoostsFromContractRequest +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest from openapi_client.models.contracts_sync_credentials_to_contract_request import ContractsSyncCredentialsToContractRequest from openapi_client.models.contracts_update_consented_contract_terms_request import ContractsUpdateConsentedContractTermsRequest +from openapi_client.models.contracts_update_consented_contract_terms_request_terms import ContractsUpdateConsentedContractTermsRequestTerms +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read import ContractsUpdateConsentedContractTermsRequestTermsRead +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials import ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from openapi_client.models.contracts_write_credential_to_contract_request import ContractsWriteCredentialToContractRequest +from openapi_client.models.contracts_write_credential_to_contract_request_credential import ContractsWriteCredentialToContractRequestCredential from openapi_client.models.contracts_write_credential_to_contract_via_signing_authority_request import ContractsWriteCredentialToContractViaSigningAuthorityRequest from openapi_client.models.credential_accept_credential_request import CredentialAcceptCredentialRequest +from openapi_client.models.credential_accept_credential_request_options import CredentialAcceptCredentialRequestOptions from openapi_client.models.credential_received_credentials200_response_inner import CredentialReceivedCredentials200ResponseInner from openapi_client.models.credential_send_credential_request import CredentialSendCredentialRequest from openapi_client.models.credential_send_credential_request_credential import CredentialSendCredentialRequestCredential from openapi_client.models.credential_send_credential_request_credential_any_of import CredentialSendCredentialRequestCredentialAnyOf +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header_epk import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from openapi_client.models.did_metadata_add_did_metadata_request import DidMetadataAddDidMetadataRequest +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from openapi_client.models.did_metadata_add_did_metadata_request_service_inner import DidMetadataAddDidMetadataRequestServiceInner -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner_service_endpoint import DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner import DidMetadataAddDidMetadataRequestVerificationMethodInner from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner_any_of import DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner import DidMetadataGetDidMetadata200ResponseVerificationMethodInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from openapi_client.models.did_metadata_get_my_did_metadata200_response_inner import DidMetadataGetMyDidMetadata200ResponseInner from openapi_client.models.did_metadata_update_did_metadata_request import DidMetadataUpdateDidMetadataRequest +from openapi_client.models.did_metadata_update_did_metadata_request_updates import DidMetadataUpdateDidMetadataRequestUpdates from openapi_client.models.error_badrequest import ErrorBADREQUEST +from openapi_client.models.error_badrequest_issues_inner import ErrorBADREQUESTIssuesInner from openapi_client.models.error_forbidden import ErrorFORBIDDEN from openapi_client.models.error_internalservererror import ErrorINTERNALSERVERERROR from openapi_client.models.error_notfound import ErrorNOTFOUND from openapi_client.models.error_unauthorized import ErrorUNAUTHORIZED +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest +from openapi_client.models.inbox_claim200_response import InboxClaim200Response +from openapi_client.models.inbox_claim200_response_inbox_credential import InboxClaim200ResponseInboxCredential +from openapi_client.models.inbox_claim200_response_inbox_credential_signing_authority import InboxClaim200ResponseInboxCredentialSigningAuthority +from openapi_client.models.inbox_claim_request import InboxClaimRequest +from openapi_client.models.inbox_claim_request_configuration import InboxClaimRequestConfiguration +from openapi_client.models.inbox_claim_request_credential import InboxClaimRequestCredential +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response from openapi_client.models.inbox_get_my_issued_credentials200_response import InboxGetMyIssuedCredentials200Response from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner import InboxGetMyIssuedCredentials200ResponseRecordsInner +from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner_signing_authority import InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from openapi_client.models.inbox_get_my_issued_credentials_request import InboxGetMyIssuedCredentialsRequest from openapi_client.models.inbox_get_my_issued_credentials_request_query import InboxGetMyIssuedCredentialsRequestQuery +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient import InboxGetMyIssuedCredentialsRequestRecipient +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient_one_of import InboxGetMyIssuedCredentialsRequestRecipientOneOf from openapi_client.models.inbox_issue200_response import InboxIssue200Response from openapi_client.models.inbox_issue200_response_recipient import InboxIssue200ResponseRecipient +from openapi_client.models.inbox_issue200_response_recipient_one_of import InboxIssue200ResponseRecipientOneOf +from openapi_client.models.inbox_issue200_response_recipient_one_of1 import InboxIssue200ResponseRecipientOneOf1 from openapi_client.models.inbox_issue_request import InboxIssueRequest from openapi_client.models.inbox_issue_request_configuration import InboxIssueRequestConfiguration from openapi_client.models.inbox_issue_request_configuration_delivery import InboxIssueRequestConfigurationDelivery @@ -226,27 +408,85 @@ from openapi_client.models.inbox_issue_request_recipient import InboxIssueRequestRecipient from openapi_client.models.inbox_issue_request_recipient_one_of import InboxIssueRequestRecipientOneOf from openapi_client.models.inbox_issue_request_recipient_one_of1 import InboxIssueRequestRecipientOneOf1 +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest +from openapi_client.models.inbox_send_guardian_approval_email_request_template import InboxSendGuardianApprovalEmailRequestTemplate +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response +from openapi_client.models.integrations_get_integrations200_response_records_inner import IntegrationsGetIntegrations200ResponseRecordsInner +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest +from openapi_client.models.integrations_update_integration_request_updates import IntegrationsUpdateIntegrationRequestUpdates from openapi_client.models.presentation_accept_presentation_request import PresentationAcceptPresentationRequest from openapi_client.models.presentation_send_presentation_request import PresentationSendPresentationRequest from openapi_client.models.presentation_send_presentation_request_presentation import PresentationSendPresentationRequestPresentation from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf from openapi_client.models.presentation_send_presentation_request_presentation_any_of_verifiable_credential import PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential from openapi_client.models.profile_create_profile_request import ProfileCreateProfileRequest +from openapi_client.models.profile_create_profile_request_display import ProfileCreateProfileRequestDisplay +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay from openapi_client.models.profile_generate_invite200_response import ProfileGenerateInvite200Response from openapi_client.models.profile_generate_invite_request import ProfileGenerateInviteRequest from openapi_client.models.profile_get_available_profiles200_response import ProfileGetAvailableProfiles200Response from openapi_client.models.profile_get_available_profiles200_response_records_inner import ProfileGetAvailableProfiles200ResponseRecordsInner +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager from openapi_client.models.profile_get_available_profiles_request import ProfileGetAvailableProfilesRequest +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner from openapi_client.models.profile_manager_create_child_profile_manager_request import ProfileManagerCreateChildProfileManagerRequest +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile from openapi_client.models.profile_manager_create_managed_profile_request import ProfileManagerCreateManagedProfileRequest from openapi_client.models.profile_manager_create_profile_manager_request import ProfileManagerCreateProfileManagerRequest +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest from openapi_client.models.profile_register_signing_authority_request import ProfileRegisterSigningAuthorityRequest from openapi_client.models.profile_search_profiles200_response_inner import ProfileSearchProfiles200ResponseInner from openapi_client.models.profile_set_primary_signing_authority_request import ProfileSetPrimarySigningAuthorityRequest from openapi_client.models.profile_signing_authorities200_response_inner import ProfileSigningAuthorities200ResponseInner from openapi_client.models.profile_signing_authorities200_response_inner_relationship import ProfileSigningAuthorities200ResponseInnerRelationship from openapi_client.models.profile_signing_authorities200_response_inner_signing_authority import ProfileSigningAuthorities200ResponseInnerSigningAuthority +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response +from openapi_client.models.profile_signing_authority200_response_relationship import ProfileSigningAuthority200ResponseRelationship +from openapi_client.models.profile_signing_authority200_response_signing_authority import ProfileSigningAuthority200ResponseSigningAuthority from openapi_client.models.profile_update_profile_request import ProfileUpdateProfileRequest +from openapi_client.models.schema0 import Schema0 +from openapi_client.models.schema1 import Schema1 +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest +from openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner import SkillFrameworksCreateManagedBatchRequestFrameworksInner +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response +from openapi_client.models.skill_frameworks_get_by_id200_response_skills import SkillFrameworksGetById200ResponseSkills +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest +from openapi_client.models.skills_add_skill_tag_request_tag import SkillsAddSkillTagRequestTag +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response +from openapi_client.models.skills_create200_response import SkillsCreate200Response +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest +from openapi_client.models.skills_create_request import SkillsCreateRequest +from openapi_client.models.skills_delete200_response import SkillsDelete200Response +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest +from openapi_client.models.skills_search_framework_skills_request_query import SkillsSearchFrameworkSkillsRequestQuery +from openapi_client.models.skills_search_framework_skills_request_query_any_of import SkillsSearchFrameworkSkillsRequestQueryAnyOf +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response +from openapi_client.models.skills_update_request import SkillsUpdateRequest from openapi_client.models.storage_resolve200_response import StorageResolve200Response from openapi_client.models.storage_resolve200_response_any_of import StorageResolve200ResponseAnyOf from openapi_client.models.storage_resolve200_response_any_of1 import StorageResolve200ResponseAnyOf1 @@ -256,15 +496,37 @@ from openapi_client.models.storage_resolve200_response_any_of1_write import StorageResolve200ResponseAnyOf1Write from openapi_client.models.storage_resolve200_response_any_of1_write_credentials import StorageResolve200ResponseAnyOf1WriteCredentials from openapi_client.models.storage_resolve200_response_any_of_any_of import StorageResolve200ResponseAnyOfAnyOf -from openapi_client.models.storage_resolve200_response_any_of_any_of_read import StorageResolve200ResponseAnyOfAnyOfRead -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue -from openapi_client.models.storage_resolve200_response_any_of_any_of_write import StorageResolve200ResponseAnyOfAnyOfWrite +from openapi_client.models.storage_resolve200_response_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read import StorageResolve200ResponseAnyOfAnyOf1Read +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials import StorageResolve200ResponseAnyOfAnyOf1ReadCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from openapi_client.models.storage_store_request import StorageStoreRequest from openapi_client.models.storage_store_request_item import StorageStoreRequestItem from openapi_client.models.storage_store_request_item_any_of import StorageStoreRequestItemAnyOf +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf from openapi_client.models.workflows_participate_in_exchange200_response import WorkflowsParticipateInExchange200Response from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInnerCredentialQueryInner from openapi_client.models.workflows_participate_in_exchange_request import WorkflowsParticipateInExchangeRequest + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_get_all_listings_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_get_all_listings_request.py new file mode 100644 index 0000000000..93924f3ebc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_get_all_listings_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreAdminGetAllListingsRequest(BaseModel): + """ + AppStoreAdminGetAllListingsRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = None + cursor: Optional[StrictStr] = None + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["limit", "cursor", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreAdminGetAllListingsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreAdminGetAllListingsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "cursor": obj.get("cursor"), + "status": obj.get("status") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_listing_status_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_listing_status_request.py new file mode 100644 index 0000000000..865478b17c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_listing_status_request.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreAdminUpdateListingStatusRequest(BaseModel): + """ + AppStoreAdminUpdateListingStatusRequest + """ # noqa: E501 + status: StrictStr + __properties: ClassVar[List[str]] = ["status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreAdminUpdateListingStatusRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreAdminUpdateListingStatusRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_promotion_level_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_promotion_level_request.py new file mode 100644 index 0000000000..38926a61e4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_admin_update_promotion_level_request.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreAdminUpdatePromotionLevelRequest(BaseModel): + """ + AppStoreAdminUpdatePromotionLevelRequest + """ # noqa: E501 + promotion_level: StrictStr = Field(alias="promotionLevel") + __properties: ClassVar[List[str]] = ["promotionLevel"] + + @field_validator('promotion_level') + def promotion_level_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED']): + raise ValueError("must be one of enum values ('FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreAdminUpdatePromotionLevelRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreAdminUpdatePromotionLevelRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "promotionLevel": obj.get("promotionLevel") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_browse_listed_apps_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_browse_listed_apps_request.py new file mode 100644 index 0000000000..74640fb471 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_browse_listed_apps_request.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreBrowseListedAppsRequest(BaseModel): + """ + AppStoreBrowseListedAppsRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = None + cursor: Optional[StrictStr] = None + category: Optional[StrictStr] = None + promotion_level: Optional[StrictStr] = Field(default=None, alias="promotionLevel") + __properties: ClassVar[List[str]] = ["limit", "cursor", "category", "promotionLevel"] + + @field_validator('promotion_level') + def promotion_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED']): + raise ValueError("must be one of enum values ('FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreBrowseListedAppsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreBrowseListedAppsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "cursor": obj.get("cursor"), + "category": obj.get("category"), + "promotionLevel": obj.get("promotionLevel") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request.py new file mode 100644 index 0000000000..344efad527 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.app_store_create_listing_request_listing import AppStoreCreateListingRequestListing +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreCreateListingRequest(BaseModel): + """ + AppStoreCreateListingRequest + """ # noqa: E501 + integration_id: Optional[StrictStr] = Field(alias="integrationId") + listing: AppStoreCreateListingRequestListing + __properties: ClassVar[List[str]] = ["integrationId", "listing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreCreateListingRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of listing + if self.listing: + _dict['listing'] = self.listing.to_dict() + # set to None if integration_id (nullable) is None + # and model_fields_set contains the field + if self.integration_id is None and "integration_id" in self.model_fields_set: + _dict['integrationId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreCreateListingRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "integrationId": obj.get("integrationId"), + "listing": AppStoreCreateListingRequestListing.from_dict(obj["listing"]) if obj.get("listing") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request_listing.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request_listing.py new file mode 100644 index 0000000000..b28390b39f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_create_listing_request_listing.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreCreateListingRequestListing(BaseModel): + """ + AppStoreCreateListingRequestListing + """ # noqa: E501 + display_name: Annotated[str, Field(min_length=1, strict=True, max_length=100)] + tagline: Annotated[str, Field(min_length=1, strict=True, max_length=200)] + full_description: Optional[StrictStr] + icon_url: StrictStr + launch_type: StrictStr + launch_config_json: Optional[StrictStr] + category: Optional[Annotated[str, Field(strict=True, max_length=50)]] = None + promo_video_url: Optional[StrictStr] = None + ios_app_store_id: Optional[Annotated[str, Field(strict=True, max_length=20)]] = None + android_app_store_id: Optional[Annotated[str, Field(strict=True, max_length=100)]] = None + privacy_policy_url: Optional[StrictStr] = None + terms_url: Optional[StrictStr] = None + highlights: Optional[Annotated[List[Annotated[str, Field(strict=True, max_length=200)]], Field(max_length=10)]] = None + screenshots: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = None + hero_background_color: Optional[Annotated[str, Field(strict=True)]] = None + __properties: ClassVar[List[str]] = ["display_name", "tagline", "full_description", "icon_url", "launch_type", "launch_config_json", "category", "promo_video_url", "ios_app_store_id", "android_app_store_id", "privacy_policy_url", "terms_url", "highlights", "screenshots", "hero_background_color"] + + @field_validator('launch_type') + def launch_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR']): + raise ValueError("must be one of enum values ('EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR')") + return value + + @field_validator('hero_background_color') + def hero_background_color_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^#[0-9A-Fa-f]{6}$", value): + raise ValueError(r"must validate the regular expression /^#[0-9A-Fa-f]{6}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreCreateListingRequestListing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if full_description (nullable) is None + # and model_fields_set contains the field + if self.full_description is None and "full_description" in self.model_fields_set: + _dict['full_description'] = None + + # set to None if launch_config_json (nullable) is None + # and model_fields_set contains the field + if self.launch_config_json is None and "launch_config_json" in self.model_fields_set: + _dict['launch_config_json'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreCreateListingRequestListing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "display_name": obj.get("display_name"), + "tagline": obj.get("tagline"), + "full_description": obj.get("full_description"), + "icon_url": obj.get("icon_url"), + "launch_type": obj.get("launch_type"), + "launch_config_json": obj.get("launch_config_json"), + "category": obj.get("category"), + "promo_video_url": obj.get("promo_video_url"), + "ios_app_store_id": obj.get("ios_app_store_id"), + "android_app_store_id": obj.get("android_app_store_id"), + "privacy_policy_url": obj.get("privacy_policy_url"), + "terms_url": obj.get("terms_url"), + "highlights": obj.get("highlights"), + "screenshots": obj.get("screenshots"), + "hero_background_color": obj.get("hero_background_color") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response.py new file mode 100644 index 0000000000..1d0693ed01 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.app_store_get_installed_apps200_response_records_inner import AppStoreGetInstalledApps200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetInstalledApps200Response(BaseModel): + """ + AppStoreGetInstalledApps200Response + """ # noqa: E501 + has_more: StrictBool = Field(alias="hasMore") + cursor: Optional[StrictStr] = None + records: List[AppStoreGetInstalledApps200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["hasMore", "cursor", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetInstalledApps200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetInstalledApps200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hasMore": obj.get("hasMore"), + "cursor": obj.get("cursor"), + "records": [AppStoreGetInstalledApps200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response_records_inner.py new file mode 100644 index 0000000000..6a3c4dd998 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_installed_apps200_response_records_inner.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetInstalledApps200ResponseRecordsInner(BaseModel): + """ + AppStoreGetInstalledApps200ResponseRecordsInner + """ # noqa: E501 + listing_id: Optional[StrictStr] + display_name: Optional[StrictStr] + tagline: Optional[StrictStr] + full_description: Optional[StrictStr] + icon_url: Optional[StrictStr] + app_listing_status: StrictStr + launch_type: StrictStr + launch_config_json: Optional[StrictStr] + category: Optional[StrictStr] = None + promo_video_url: Optional[StrictStr] = None + promotion_level: Optional[StrictStr] = None + ios_app_store_id: Optional[StrictStr] = None + android_app_store_id: Optional[StrictStr] = None + privacy_policy_url: Optional[StrictStr] = None + terms_url: Optional[StrictStr] = None + hero_background_color: Optional[StrictStr] = None + highlights: Optional[List[StrictStr]] = None + screenshots: Optional[List[StrictStr]] = None + installed_at: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["listing_id", "display_name", "tagline", "full_description", "icon_url", "app_listing_status", "launch_type", "launch_config_json", "category", "promo_video_url", "promotion_level", "ios_app_store_id", "android_app_store_id", "privacy_policy_url", "terms_url", "hero_background_color", "highlights", "screenshots", "installed_at"] + + @field_validator('app_listing_status') + def app_listing_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED')") + return value + + @field_validator('launch_type') + def launch_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR']): + raise ValueError("must be one of enum values ('EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR')") + return value + + @field_validator('promotion_level') + def promotion_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED']): + raise ValueError("must be one of enum values ('FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetInstalledApps200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if listing_id (nullable) is None + # and model_fields_set contains the field + if self.listing_id is None and "listing_id" in self.model_fields_set: + _dict['listing_id'] = None + + # set to None if display_name (nullable) is None + # and model_fields_set contains the field + if self.display_name is None and "display_name" in self.model_fields_set: + _dict['display_name'] = None + + # set to None if tagline (nullable) is None + # and model_fields_set contains the field + if self.tagline is None and "tagline" in self.model_fields_set: + _dict['tagline'] = None + + # set to None if full_description (nullable) is None + # and model_fields_set contains the field + if self.full_description is None and "full_description" in self.model_fields_set: + _dict['full_description'] = None + + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['icon_url'] = None + + # set to None if launch_config_json (nullable) is None + # and model_fields_set contains the field + if self.launch_config_json is None and "launch_config_json" in self.model_fields_set: + _dict['launch_config_json'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if promo_video_url (nullable) is None + # and model_fields_set contains the field + if self.promo_video_url is None and "promo_video_url" in self.model_fields_set: + _dict['promo_video_url'] = None + + # set to None if ios_app_store_id (nullable) is None + # and model_fields_set contains the field + if self.ios_app_store_id is None and "ios_app_store_id" in self.model_fields_set: + _dict['ios_app_store_id'] = None + + # set to None if android_app_store_id (nullable) is None + # and model_fields_set contains the field + if self.android_app_store_id is None and "android_app_store_id" in self.model_fields_set: + _dict['android_app_store_id'] = None + + # set to None if privacy_policy_url (nullable) is None + # and model_fields_set contains the field + if self.privacy_policy_url is None and "privacy_policy_url" in self.model_fields_set: + _dict['privacy_policy_url'] = None + + # set to None if terms_url (nullable) is None + # and model_fields_set contains the field + if self.terms_url is None and "terms_url" in self.model_fields_set: + _dict['terms_url'] = None + + # set to None if hero_background_color (nullable) is None + # and model_fields_set contains the field + if self.hero_background_color is None and "hero_background_color" in self.model_fields_set: + _dict['hero_background_color'] = None + + # set to None if installed_at (nullable) is None + # and model_fields_set contains the field + if self.installed_at is None and "installed_at" in self.model_fields_set: + _dict['installed_at'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetInstalledApps200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "listing_id": obj.get("listing_id"), + "display_name": obj.get("display_name"), + "tagline": obj.get("tagline"), + "full_description": obj.get("full_description"), + "icon_url": obj.get("icon_url"), + "app_listing_status": obj.get("app_listing_status"), + "launch_type": obj.get("launch_type"), + "launch_config_json": obj.get("launch_config_json"), + "category": obj.get("category"), + "promo_video_url": obj.get("promo_video_url"), + "promotion_level": obj.get("promotion_level"), + "ios_app_store_id": obj.get("ios_app_store_id"), + "android_app_store_id": obj.get("android_app_store_id"), + "privacy_policy_url": obj.get("privacy_policy_url"), + "terms_url": obj.get("terms_url"), + "hero_background_color": obj.get("hero_background_color"), + "highlights": obj.get("highlights"), + "screenshots": obj.get("screenshots"), + "installed_at": obj.get("installed_at") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listing200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listing200_response.py new file mode 100644 index 0000000000..4b1d7ff113 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listing200_response.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetListing200Response(BaseModel): + """ + AppStoreGetListing200Response + """ # noqa: E501 + listing_id: Optional[StrictStr] + display_name: Optional[StrictStr] + tagline: Optional[StrictStr] + full_description: Optional[StrictStr] + icon_url: Optional[StrictStr] + app_listing_status: StrictStr + launch_type: StrictStr + launch_config_json: Optional[StrictStr] + category: Optional[StrictStr] = None + promo_video_url: Optional[StrictStr] = None + promotion_level: Optional[StrictStr] = None + ios_app_store_id: Optional[StrictStr] = None + android_app_store_id: Optional[StrictStr] = None + privacy_policy_url: Optional[StrictStr] = None + terms_url: Optional[StrictStr] = None + hero_background_color: Optional[StrictStr] = None + highlights: Optional[List[StrictStr]] = None + screenshots: Optional[List[StrictStr]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["listing_id", "display_name", "tagline", "full_description", "icon_url", "app_listing_status", "launch_type", "launch_config_json", "category", "promo_video_url", "promotion_level", "ios_app_store_id", "android_app_store_id", "privacy_policy_url", "terms_url", "hero_background_color", "highlights", "screenshots"] + + @field_validator('app_listing_status') + def app_listing_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED')") + return value + + @field_validator('launch_type') + def launch_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR']): + raise ValueError("must be one of enum values ('EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR')") + return value + + @field_validator('promotion_level') + def promotion_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED']): + raise ValueError("must be one of enum values ('FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetListing200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if listing_id (nullable) is None + # and model_fields_set contains the field + if self.listing_id is None and "listing_id" in self.model_fields_set: + _dict['listing_id'] = None + + # set to None if display_name (nullable) is None + # and model_fields_set contains the field + if self.display_name is None and "display_name" in self.model_fields_set: + _dict['display_name'] = None + + # set to None if tagline (nullable) is None + # and model_fields_set contains the field + if self.tagline is None and "tagline" in self.model_fields_set: + _dict['tagline'] = None + + # set to None if full_description (nullable) is None + # and model_fields_set contains the field + if self.full_description is None and "full_description" in self.model_fields_set: + _dict['full_description'] = None + + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['icon_url'] = None + + # set to None if launch_config_json (nullable) is None + # and model_fields_set contains the field + if self.launch_config_json is None and "launch_config_json" in self.model_fields_set: + _dict['launch_config_json'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if promo_video_url (nullable) is None + # and model_fields_set contains the field + if self.promo_video_url is None and "promo_video_url" in self.model_fields_set: + _dict['promo_video_url'] = None + + # set to None if ios_app_store_id (nullable) is None + # and model_fields_set contains the field + if self.ios_app_store_id is None and "ios_app_store_id" in self.model_fields_set: + _dict['ios_app_store_id'] = None + + # set to None if android_app_store_id (nullable) is None + # and model_fields_set contains the field + if self.android_app_store_id is None and "android_app_store_id" in self.model_fields_set: + _dict['android_app_store_id'] = None + + # set to None if privacy_policy_url (nullable) is None + # and model_fields_set contains the field + if self.privacy_policy_url is None and "privacy_policy_url" in self.model_fields_set: + _dict['privacy_policy_url'] = None + + # set to None if terms_url (nullable) is None + # and model_fields_set contains the field + if self.terms_url is None and "terms_url" in self.model_fields_set: + _dict['terms_url'] = None + + # set to None if hero_background_color (nullable) is None + # and model_fields_set contains the field + if self.hero_background_color is None and "hero_background_color" in self.model_fields_set: + _dict['hero_background_color'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetListing200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "listing_id": obj.get("listing_id"), + "display_name": obj.get("display_name"), + "tagline": obj.get("tagline"), + "full_description": obj.get("full_description"), + "icon_url": obj.get("icon_url"), + "app_listing_status": obj.get("app_listing_status"), + "launch_type": obj.get("launch_type"), + "launch_config_json": obj.get("launch_config_json"), + "category": obj.get("category"), + "promo_video_url": obj.get("promo_video_url"), + "promotion_level": obj.get("promotion_level"), + "ios_app_store_id": obj.get("ios_app_store_id"), + "android_app_store_id": obj.get("android_app_store_id"), + "privacy_policy_url": obj.get("privacy_policy_url"), + "terms_url": obj.get("terms_url"), + "hero_background_color": obj.get("hero_background_color"), + "highlights": obj.get("highlights"), + "screenshots": obj.get("screenshots") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response.py new file mode 100644 index 0000000000..28280e8ca1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetListingsForIntegration200Response(BaseModel): + """ + AppStoreGetListingsForIntegration200Response + """ # noqa: E501 + has_more: StrictBool = Field(alias="hasMore") + cursor: Optional[StrictStr] = None + records: List[AppStoreGetListingsForIntegration200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["hasMore", "cursor", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegration200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegration200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hasMore": obj.get("hasMore"), + "cursor": obj.get("cursor"), + "records": [AppStoreGetListingsForIntegration200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response_records_inner.py new file mode 100644 index 0000000000..e00788d48f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration200_response_records_inner.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetListingsForIntegration200ResponseRecordsInner(BaseModel): + """ + AppStoreGetListingsForIntegration200ResponseRecordsInner + """ # noqa: E501 + listing_id: StrictStr + display_name: StrictStr + tagline: StrictStr + full_description: StrictStr + icon_url: StrictStr + app_listing_status: StrictStr + launch_type: StrictStr + launch_config_json: StrictStr + category: Optional[StrictStr] = None + promo_video_url: Optional[StrictStr] = None + promotion_level: Optional[StrictStr] = None + ios_app_store_id: Optional[StrictStr] = None + android_app_store_id: Optional[StrictStr] = None + privacy_policy_url: Optional[StrictStr] = None + terms_url: Optional[StrictStr] = None + hero_background_color: Optional[StrictStr] = None + highlights: Optional[List[StrictStr]] = None + screenshots: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["listing_id", "display_name", "tagline", "full_description", "icon_url", "app_listing_status", "launch_type", "launch_config_json", "category", "promo_video_url", "promotion_level", "ios_app_store_id", "android_app_store_id", "privacy_policy_url", "terms_url", "hero_background_color", "highlights", "screenshots"] + + @field_validator('app_listing_status') + def app_listing_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_REVIEW', 'LISTED', 'ARCHIVED')") + return value + + @field_validator('launch_type') + def launch_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR']): + raise ValueError("must be one of enum values ('EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR')") + return value + + @field_validator('promotion_level') + def promotion_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED']): + raise ValueError("must be one of enum values ('FEATURED_CAROUSEL', 'CURATED_LIST', 'STANDARD', 'DEMOTED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegration200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegration200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "listing_id": obj.get("listing_id"), + "display_name": obj.get("display_name"), + "tagline": obj.get("tagline"), + "full_description": obj.get("full_description"), + "icon_url": obj.get("icon_url"), + "app_listing_status": obj.get("app_listing_status"), + "launch_type": obj.get("launch_type"), + "launch_config_json": obj.get("launch_config_json"), + "category": obj.get("category"), + "promo_video_url": obj.get("promo_video_url"), + "promotion_level": obj.get("promotion_level"), + "ios_app_store_id": obj.get("ios_app_store_id"), + "android_app_store_id": obj.get("android_app_store_id"), + "privacy_policy_url": obj.get("privacy_policy_url"), + "terms_url": obj.get("terms_url"), + "hero_background_color": obj.get("hero_background_color"), + "highlights": obj.get("highlights"), + "screenshots": obj.get("screenshots") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration_request.py new file mode 100644 index 0000000000..807160c1dc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_get_listings_for_integration_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreGetListingsForIntegrationRequest(BaseModel): + """ + AppStoreGetListingsForIntegrationRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = None + cursor: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["limit", "cursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreGetListingsForIntegrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "cursor": obj.get("cursor") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request.py new file mode 100644 index 0000000000..8f4b4fc924 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.app_store_update_listing_request_updates import AppStoreUpdateListingRequestUpdates +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreUpdateListingRequest(BaseModel): + """ + AppStoreUpdateListingRequest + """ # noqa: E501 + updates: AppStoreUpdateListingRequestUpdates + __properties: ClassVar[List[str]] = ["updates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreUpdateListingRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updates + if self.updates: + _dict['updates'] = self.updates.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreUpdateListingRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updates": AppStoreUpdateListingRequestUpdates.from_dict(obj["updates"]) if obj.get("updates") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request_updates.py new file mode 100644 index 0000000000..c7747c68bf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/app_store_update_listing_request_updates.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AppStoreUpdateListingRequestUpdates(BaseModel): + """ + AppStoreUpdateListingRequestUpdates + """ # noqa: E501 + display_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = None + tagline: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None + full_description: Optional[StrictStr] = None + icon_url: Optional[StrictStr] = None + launch_type: Optional[StrictStr] = None + launch_config_json: Optional[StrictStr] = None + category: Optional[Annotated[str, Field(strict=True, max_length=50)]] = None + promo_video_url: Optional[StrictStr] = None + ios_app_store_id: Optional[Annotated[str, Field(strict=True, max_length=20)]] = None + android_app_store_id: Optional[Annotated[str, Field(strict=True, max_length=100)]] = None + privacy_policy_url: Optional[StrictStr] = None + terms_url: Optional[StrictStr] = None + highlights: Optional[Annotated[List[Annotated[str, Field(strict=True, max_length=200)]], Field(max_length=10)]] = None + screenshots: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = None + hero_background_color: Optional[Annotated[str, Field(strict=True)]] = None + __properties: ClassVar[List[str]] = ["display_name", "tagline", "full_description", "icon_url", "launch_type", "launch_config_json", "category", "promo_video_url", "ios_app_store_id", "android_app_store_id", "privacy_policy_url", "terms_url", "highlights", "screenshots", "hero_background_color"] + + @field_validator('launch_type') + def launch_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR']): + raise ValueError("must be one of enum values ('EMBEDDED_IFRAME', 'SECOND_SCREEN', 'DIRECT_LINK', 'CONSENT_REDIRECT', 'SERVER_HEADLESS', 'AI_TUTOR')") + return value + + @field_validator('hero_background_color') + def hero_background_color_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^#[0-9A-Fa-f]{6}$", value): + raise ValueError(r"must validate the regular expression /^#[0-9A-Fa-f]{6}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppStoreUpdateListingRequestUpdates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if full_description (nullable) is None + # and model_fields_set contains the field + if self.full_description is None and "full_description" in self.model_fields_set: + _dict['full_description'] = None + + # set to None if launch_config_json (nullable) is None + # and model_fields_set contains the field + if self.launch_config_json is None and "launch_config_json" in self.model_fields_set: + _dict['launch_config_json'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AppStoreUpdateListingRequestUpdates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "display_name": obj.get("display_name"), + "tagline": obj.get("tagline"), + "full_description": obj.get("full_description"), + "icon_url": obj.get("icon_url"), + "launch_type": obj.get("launch_type"), + "launch_config_json": obj.get("launch_config_json"), + "category": obj.get("category"), + "promo_video_url": obj.get("promo_video_url"), + "ios_app_store_id": obj.get("ios_app_store_id"), + "android_app_store_id": obj.get("android_app_store_id"), + "privacy_policy_url": obj.get("privacy_policy_url"), + "terms_url": obj.get("terms_url"), + "highlights": obj.get("highlights"), + "screenshots": obj.get("screenshots"), + "hero_background_color": obj.get("hero_background_color") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_add_auth_grant_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_add_auth_grant_request.py index 72781d4cfb..2d38617b18 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_add_auth_grant_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_add_auth_grant_request.py @@ -33,6 +33,16 @@ class AuthGrantsAddAuthGrantRequest(BaseModel): expires_at: Optional[datetime] = Field(default=None, alias="expiresAt") __properties: ClassVar[List[str]] = ["name", "description", "scope", "expiresAt"] + @field_validator('expires_at') + def expires_at_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -72,6 +82,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if scope (nullable) is None + # and model_fields_set contains the field + if self.scope is None and "scope" in self.model_fields_set: + _dict['scope'] = None + # set to None if expires_at (nullable) is None # and model_fields_set contains the field if self.expires_at is None and "expires_at" in self.model_fields_set: diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grant200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grant200_response.py index 9410e862ef..c149744530 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grant200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grant200_response.py @@ -36,6 +36,7 @@ class AuthGrantsGetAuthGrant200Response(BaseModel): scope: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") expires_at: Optional[datetime] = Field(default=None, alias="expiresAt") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name", "description", "challenge", "status", "scope", "createdAt", "expiresAt"] @field_validator('challenge') @@ -44,8 +45,8 @@ def challenge_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^auth-grant:", value): - raise ValueError(r"must validate the regular expression /^auth-grant:/") + if not re.match(r"^auth-grant:.*", value): + raise ValueError(r"must validate the regular expression /^auth-grant:.*/") return value @field_validator('status') @@ -58,6 +59,26 @@ def status_validate_enum(cls, value): raise ValueError("must be one of enum values ('revoked', 'active')") return value + @field_validator('created_at') + def created_at_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + + @field_validator('expires_at') + def expires_at_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -88,8 +109,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -97,6 +120,36 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if scope (nullable) is None + # and model_fields_set contains the field + if self.scope is None and "scope" in self.model_fields_set: + _dict['scope'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + # set to None if expires_at (nullable) is None # and model_fields_set contains the field if self.expires_at is None and "expires_at" in self.model_fields_set: @@ -123,6 +176,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "expiresAt": obj.get("expiresAt") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants200_response_inner.py index bf8fc13669..9e63e187df 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants200_response_inner.py @@ -28,21 +28,22 @@ class AuthGrantsGetAuthGrants200ResponseInner(BaseModel): """ AuthGrantsGetAuthGrants200ResponseInner """ # noqa: E501 - id: StrictStr - name: StrictStr + id: Optional[StrictStr] + name: Optional[StrictStr] description: Optional[StrictStr] = None challenge: Annotated[str, Field(min_length=10, strict=True, max_length=100)] status: StrictStr - scope: StrictStr - created_at: datetime = Field(alias="createdAt") + scope: Optional[StrictStr] + created_at: Optional[datetime] = Field(alias="createdAt") expires_at: Optional[datetime] = Field(default=None, alias="expiresAt") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name", "description", "challenge", "status", "scope", "createdAt", "expiresAt"] @field_validator('challenge') def challenge_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^auth-grant:", value): - raise ValueError(r"must validate the regular expression /^auth-grant:/") + if not re.match(r"^auth-grant:.*", value): + raise ValueError(r"must validate the regular expression /^auth-grant:.*/") return value @field_validator('status') @@ -52,6 +53,26 @@ def status_validate_enum(cls, value): raise ValueError("must be one of enum values ('revoked', 'active')") return value + @field_validator('created_at') + def created_at_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + + @field_validator('expires_at') + def expires_at_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -82,8 +103,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -91,6 +114,36 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if scope (nullable) is None + # and model_fields_set contains the field + if self.scope is None and "scope" in self.model_fields_set: + _dict['scope'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + # set to None if expires_at (nullable) is None # and model_fields_set contains the field if self.expires_at is None and "expires_at" in self.model_fields_set: @@ -117,6 +170,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "expiresAt": obj.get("expiresAt") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request.py index 606c3d5fcd..f480abf7a5 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request.py @@ -74,6 +74,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request_query.py index 4506a2843d..beadc4d419 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_get_auth_grants_request_query.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from typing import Optional, Set from typing_extensions import Self @@ -27,9 +27,9 @@ class AuthGrantsGetAuthGrantsRequestQuery(BaseModel): """ AuthGrantsGetAuthGrantsRequestQuery """ # noqa: E501 - id: Optional[BoostGetBoostsRequestQueryUri] = None - name: Optional[BoostGetBoostsRequestQueryUri] = None - description: Optional[BoostGetBoostsRequestQueryUri] = None + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + description: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "name", "description", "status"] @@ -103,9 +103,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "id": BoostGetBoostsRequestQueryUri.from_dict(obj["id"]) if obj.get("id") is not None else None, - "name": BoostGetBoostsRequestQueryUri.from_dict(obj["name"]) if obj.get("name") is not None else None, - "description": BoostGetBoostsRequestQueryUri.from_dict(obj["description"]) if obj.get("description") is not None else None, + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["name"]) if obj.get("name") is not None else None, + "description": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["description"]) if obj.get("description") is not None else None, "status": obj.get("status") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_update_auth_grant_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_update_auth_grant_request_updates.py index 3e0f795c9a..47fd26851b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_update_auth_grant_request_updates.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/auth_grants_update_auth_grant_request_updates.py @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_add_boost_admin_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_add_boost_admin_request.py index 399350b45c..cb53dfa759 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_add_boost_admin_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_add_boost_admin_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BoostAddBoostAdminRequest(BaseModel): """ BoostAddBoostAdminRequest """ # noqa: E501 - uri: StrictStr - profile_id: StrictStr = Field(alias="profileId") + uri: Optional[StrictStr] + profile_id: Optional[StrictStr] = Field(alias="profileId") __properties: ClassVar[List[str]] = ["uri", "profileId"] model_config = ConfigDict( @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if profile_id (nullable) is None + # and model_fields_set contains the field + if self.profile_id is None and "profile_id" in self.model_fields_set: + _dict['profileId'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request.py new file mode 100644 index 0000000000..59ce827827 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_align_boost_skills_request_skills_inner import BoostAlignBoostSkillsRequestSkillsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostAlignBoostSkillsRequest(BaseModel): + """ + BoostAlignBoostSkillsRequest + """ # noqa: E501 + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + skills: Annotated[List[BoostAlignBoostSkillsRequestSkillsInner], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["boostUri", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostAlignBoostSkillsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostAlignBoostSkillsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "boostUri": obj.get("boostUri"), + "skills": [BoostAlignBoostSkillsRequestSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request_skills_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request_skills_inner.py new file mode 100644 index 0000000000..f5506ed587 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_align_boost_skills_request_skills_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostAlignBoostSkillsRequestSkillsInner(BaseModel): + """ + BoostAlignBoostSkillsRequestSkillsInner + """ # noqa: E501 + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + id: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["frameworkId", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostAlignBoostSkillsRequestSkillsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostAlignBoostSkillsRequestSkillsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworkId": obj.get("frameworkId"), + "id": obj.get("id") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_attach_framework_to_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_attach_framework_to_boost_request.py new file mode 100644 index 0000000000..6fb25322a4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_attach_framework_to_boost_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostAttachFrameworkToBoostRequest(BaseModel): + """ + BoostAttachFrameworkToBoostRequest + """ # noqa: E501 + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + __properties: ClassVar[List[str]] = ["boostUri", "frameworkId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostAttachFrameworkToBoostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostAttachFrameworkToBoostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "boostUri": obj.get("boostUri"), + "frameworkId": obj.get("frameworkId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_claim_boost_with_link_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_claim_boost_with_link_request.py new file mode 100644 index 0000000000..12a634dbb9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_claim_boost_with_link_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostClaimBoostWithLinkRequest(BaseModel): + """ + BoostClaimBoostWithLinkRequest + """ # noqa: E501 + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + challenge: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["boostUri", "challenge"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostClaimBoostWithLinkRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostClaimBoostWithLinkRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "boostUri": obj.get("boostUri"), + "challenge": obj.get("challenge") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_children_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_children_request.py index a503f2b8e8..27ad53afa5 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_children_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_children_request.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,9 @@ class BoostCountBoostChildrenRequest(BaseModel): """ BoostCountBoostChildrenRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None - number_of_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="numberOfGenerations") + number_of_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="numberOfGenerations") __properties: ClassVar[List[str]] = ["uri", "query", "numberOfGenerations"] model_config = ConfigDict( @@ -74,6 +75,14 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # override the default output from pydantic by calling `to_dict()` of number_of_generations + if self.number_of_generations: + _dict['numberOfGenerations'] = self.number_of_generations.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -88,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "uri": obj.get("uri"), "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, - "numberOfGenerations": obj.get("numberOfGenerations") if obj.get("numberOfGenerations") is not None else 1 + "numberOfGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["numberOfGenerations"]) if obj.get("numberOfGenerations") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_parents_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_parents_request.py new file mode 100644 index 0000000000..3570199d9c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_parents_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations +from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class BoostCountBoostParentsRequest(BaseModel): + """ + BoostCountBoostParentsRequest + """ # noqa: E501 + uri: StrictStr + query: Optional[BoostGetBoostsRequestQuery] = None + number_of_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="numberOfGenerations") + __properties: ClassVar[List[str]] = ["uri", "query", "numberOfGenerations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostCountBoostParentsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # override the default output from pydantic by calling `to_dict()` of number_of_generations + if self.number_of_generations: + _dict['numberOfGenerations'] = self.number_of_generations.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostCountBoostParentsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, + "numberOfGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["numberOfGenerations"]) if obj.get("numberOfGenerations") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_siblings_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_siblings_request.py index b41f48027b..2ede165482 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_siblings_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_boost_siblings_request.py @@ -27,7 +27,7 @@ class BoostCountBoostSiblingsRequest(BaseModel): """ BoostCountBoostSiblingsRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None __properties: ClassVar[List[str]] = ["uri", "query"] @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_familial_boosts_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_familial_boosts_request.py index 0ce147652d..17f1ff700e 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_familial_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_count_familial_boosts_request.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,10 @@ class BoostCountFamilialBoostsRequest(BaseModel): """ BoostCountFamilialBoostsRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None - parent_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="parentGenerations") - child_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="childGenerations") + parent_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="parentGenerations") + child_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="childGenerations") include_extended_family: Optional[StrictBool] = Field(default=False, alias="includeExtendedFamily") __properties: ClassVar[List[str]] = ["uri", "query", "parentGenerations", "childGenerations", "includeExtendedFamily"] @@ -76,6 +77,17 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # override the default output from pydantic by calling `to_dict()` of parent_generations + if self.parent_generations: + _dict['parentGenerations'] = self.parent_generations.to_dict() + # override the default output from pydantic by calling `to_dict()` of child_generations + if self.child_generations: + _dict['childGenerations'] = self.child_generations.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -90,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "uri": obj.get("uri"), "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, - "parentGenerations": obj.get("parentGenerations") if obj.get("parentGenerations") is not None else 1, - "childGenerations": obj.get("childGenerations") if obj.get("childGenerations") is not None else 1, + "parentGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["parentGenerations"]) if obj.get("parentGenerations") is not None else None, + "childGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["childGenerations"]) if obj.get("childGenerations") is not None else None, "includeExtendedFamily": obj.get("includeExtendedFamily") if obj.get("includeExtendedFamily") is not None else False }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request.py index 05cfe55081..2b1c5bcf3c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request.py @@ -19,8 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from openapi_client.models.boost_create_boost_request_claim_permissions import BoostCreateBoostRequestClaimPermissions from openapi_client.models.boost_create_boost_request_credential import BoostCreateBoostRequestCredential +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner from typing import Optional, Set from typing_extensions import Self @@ -37,7 +39,9 @@ class BoostCreateBoostRequest(BaseModel): allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") credential: BoostCreateBoostRequestCredential claim_permissions: Optional[BoostCreateBoostRequestClaimPermissions] = Field(default=None, alias="claimPermissions") - __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "credential", "claimPermissions"] + default_permissions: Optional[BoostCreateBoostRequestClaimPermissions] = Field(default=None, alias="defaultPermissions") + skills: Optional[Annotated[List[BoostSendRequestTemplateSkillsInner], Field(min_length=1)]] = None + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "credential", "claimPermissions", "defaultPermissions", "skills"] @field_validator('status') def status_validate_enum(cls, value): @@ -94,6 +98,31 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of claim_permissions if self.claim_permissions: _dict['claimPermissions'] = self.claim_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + return _dict @classmethod @@ -114,7 +143,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "meta": obj.get("meta"), "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), "credential": BoostCreateBoostRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, - "claimPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None + "claimPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None, + "defaultPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None, + "skills": [BoostSendRequestTemplateSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_claim_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_claim_permissions.py index 774117e4b4..5731ce3d8b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_claim_permissions.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_claim_permissions.py @@ -36,7 +36,7 @@ class BoostCreateBoostRequestClaimPermissions(BaseModel): can_edit_children: Optional[StrictStr] = Field(default=None, alias="canEditChildren") can_revoke_children: Optional[StrictStr] = Field(default=None, alias="canRevokeChildren") can_manage_children_permissions: Optional[StrictStr] = Field(default=None, alias="canManageChildrenPermissions") - can_manage_children_profiles: Optional[StrictBool] = Field(default=False, alias="canManageChildrenProfiles") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "canEditChildren": obj.get("canEditChildren"), "canRevokeChildren": obj.get("canRevokeChildren"), "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), - "canManageChildrenProfiles": obj.get("canManageChildrenProfiles") if obj.get("canManageChildrenProfiles") is not None else False, + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), "canViewAnalytics": obj.get("canViewAnalytics") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential.py index 7c1e99dd8f..873e18ce01 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential.py @@ -20,27 +20,27 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf -from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTCREATEBOOSTREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["BoostCreateBoostRequestCredentialAnyOf", "BoostSendBoostRequestCredentialAnyOf"] +BOOSTCREATEBOOSTREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["BoostCreateBoostRequestCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf"] class BoostCreateBoostRequestCredential(BaseModel): """ BoostCreateBoostRequestCredential """ - # data type: BoostSendBoostRequestCredentialAnyOf - anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None # data type: BoostCreateBoostRequestCredentialAnyOf anyof_schema_2_validator: Optional[BoostCreateBoostRequestCredentialAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf]] = None + actual_instance: Optional[Union[BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostCreateBoostRequestCredentialAnyOf", "BoostSendBoostRequestCredentialAnyOf" } + any_of_schemas: Set[str] = { "BoostCreateBoostRequestCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf" } model_config = { "validate_assignment": True, @@ -61,9 +61,9 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = BoostCreateBoostRequestCredential.model_construct() error_messages = [] - # validate data type: BoostSendBoostRequestCredentialAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf`") + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") else: return v @@ -75,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostCreateBoostRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostCreateBoostRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -88,9 +88,9 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf.from_json(json_str) + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) @@ -103,7 +103,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostCreateBoostRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostCreateBoostRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential_any_of.py index 5814f17867..88c07a2a96 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_boost_request_credential_any_of.py @@ -20,14 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema import BoostSendBoostRequestCredentialAnyOfCredentialSchema from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject import BoostSendBoostRequestCredentialAnyOfCredentialSubject -from openapi_client.models.boost_send_boost_request_credential_any_of_evidence import BoostSendBoostRequestCredentialAnyOfEvidence -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer import BoostSendBoostRequestCredentialAnyOfIssuer -from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service import BoostSendBoostRequestCredentialAnyOfRefreshService from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer from typing import Optional, Set from typing_extensions import Self @@ -35,13 +33,13 @@ class BoostCreateBoostRequestCredentialAnyOf(BaseModel): """ BoostCreateBoostRequestCredentialAnyOf """ # noqa: E501 - context: List[BoostSendBoostRequestCredentialAnyOfContextInner] = Field(alias="@context") + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") id: Optional[StrictStr] = None type: Annotated[List[StrictStr], Field(min_length=1)] - issuer: BoostSendBoostRequestCredentialAnyOfIssuer - credential_subject: BoostSendBoostRequestCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") - refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfRefreshService] = Field(default=None, alias="refreshService") - credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSchema] = Field(default=None, alias="credentialSchema") + issuer: BoostSendRequestTemplateCredentialAnyOfIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") @@ -51,7 +49,7 @@ class BoostCreateBoostRequestCredentialAnyOf(BaseModel): valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") - evidence: Optional[BoostSendBoostRequestCredentialAnyOfEvidence] = None + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence"] @@ -144,13 +142,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@context": [BoostSendBoostRequestCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, "id": obj.get("id"), "type": obj.get("type"), - "issuer": BoostSendBoostRequestCredentialAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, - "credentialSubject": BoostSendBoostRequestCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, - "refreshService": BoostSendBoostRequestCredentialAnyOfRefreshService.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, - "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialSchema.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuer": BoostSendRequestTemplateCredentialAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, "issuanceDate": obj.get("issuanceDate"), "expirationDate": obj.get("expirationDate"), "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, @@ -160,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "validUntil": obj.get("validUntil"), "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, - "evidence": BoostSendBoostRequestCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request.py index 6a32ed1cfa..0c387ba696 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request.py @@ -18,8 +18,10 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.boost_create_boost_request import BoostCreateBoostRequest +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_create_child_boost_request_boost import BoostCreateChildBoostRequestBoost +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner from typing import Optional, Set from typing_extensions import Self @@ -27,9 +29,10 @@ class BoostCreateChildBoostRequest(BaseModel): """ BoostCreateChildBoostRequest """ # noqa: E501 - parent_uri: StrictStr = Field(alias="parentUri") - boost: BoostCreateBoostRequest - __properties: ClassVar[List[str]] = ["parentUri", "boost"] + parent_uri: Optional[StrictStr] = Field(alias="parentUri") + boost: BoostCreateChildBoostRequestBoost + skills: Optional[Annotated[List[BoostSendRequestTemplateSkillsInner], Field(min_length=1)]] = None + __properties: ClassVar[List[str]] = ["parentUri", "boost", "skills"] model_config = ConfigDict( populate_by_name=True, @@ -73,6 +76,18 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of boost if self.boost: _dict['boost'] = self.boost.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if parent_uri (nullable) is None + # and model_fields_set contains the field + if self.parent_uri is None and "parent_uri" in self.model_fields_set: + _dict['parentUri'] = None + return _dict @classmethod @@ -86,7 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "parentUri": obj.get("parentUri"), - "boost": BoostCreateBoostRequest.from_dict(obj["boost"]) if obj.get("boost") is not None else None + "boost": BoostCreateChildBoostRequestBoost.from_dict(obj["boost"]) if obj.get("boost") is not None else None, + "skills": [BoostSendRequestTemplateSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request_boost.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request_boost.py new file mode 100644 index 0000000000..6ec46a9420 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_create_child_boost_request_boost.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_create_boost_request_claim_permissions import BoostCreateBoostRequestClaimPermissions +from openapi_client.models.boost_create_boost_request_credential import BoostCreateBoostRequestCredential +from typing import Optional, Set +from typing_extensions import Self + +class BoostCreateChildBoostRequestBoost(BaseModel): + """ + BoostCreateChildBoostRequestBoost + """ # noqa: E501 + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None + category: Optional[StrictStr] = None + status: Optional[StrictStr] = None + auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") + meta: Optional[Dict[str, Any]] = None + allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") + credential: BoostCreateBoostRequestCredential + claim_permissions: Optional[BoostCreateBoostRequestClaimPermissions] = Field(default=None, alias="claimPermissions") + default_permissions: Optional[BoostCreateBoostRequestClaimPermissions] = Field(default=None, alias="defaultPermissions") + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "credential", "claimPermissions", "defaultPermissions"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DRAFT', 'LIVE']): + raise ValueError("must be one of enum values ('DRAFT', 'LIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostCreateChildBoostRequestBoost from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credential + if self.credential: + _dict['credential'] = self.credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of claim_permissions + if self.claim_permissions: + _dict['claimPermissions'] = self.claim_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostCreateChildBoostRequestBoost from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "category": obj.get("category"), + "status": obj.get("status"), + "autoConnectRecipients": obj.get("autoConnectRecipients"), + "meta": obj.get("meta"), + "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), + "credential": BoostCreateBoostRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, + "claimPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None, + "defaultPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_detach_framework_from_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_detach_framework_from_boost_request.py new file mode 100644 index 0000000000..bbd26d4bba --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_detach_framework_from_boost_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BoostDetachFrameworkFromBoostRequest(BaseModel): + """ + BoostDetachFrameworkFromBoostRequest + """ # noqa: E501 + boost_uri: StrictStr = Field(alias="boostUri") + framework_id: StrictStr = Field(alias="frameworkId") + __properties: ClassVar[List[str]] = ["boostUri", "frameworkId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostDetachFrameworkFromBoostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostDetachFrameworkFromBoostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "boostUri": obj.get("boostUri"), + "frameworkId": obj.get("frameworkId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link200_response.py index 4e6b6696d3..fd89aa246e 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link200_response.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,9 @@ class BoostGenerateClaimLink200Response(BaseModel): """ BoostGenerateClaimLink200Response """ # noqa: E501 - boost_uri: StrictStr = Field(alias="boostUri") - challenge: StrictStr + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + challenge: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["boostUri", "challenge"] model_config = ConfigDict( @@ -60,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -69,6 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + return _dict @classmethod @@ -84,6 +102,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "boostUri": obj.get("boostUri"), "challenge": obj.get("challenge") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request.py index 48082c14d5..c5df9b2bc0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request.py @@ -28,7 +28,7 @@ class BoostGenerateClaimLinkRequest(BaseModel): """ BoostGenerateClaimLinkRequest """ # noqa: E501 - boost_uri: StrictStr = Field(alias="boostUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") challenge: Optional[StrictStr] = None claim_link_sa: BoostGenerateClaimLinkRequestClaimLinkSA = Field(alias="claimLinkSA") options: Optional[BoostGenerateClaimLinkRequestOptions] = None @@ -79,6 +79,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of options if self.options: _dict['options'] = self.options.to_dict() + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_claim_link_sa.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_claim_link_sa.py index 3f63457e94..4010847a82 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_claim_link_sa.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_claim_link_sa.py @@ -26,8 +26,8 @@ class BoostGenerateClaimLinkRequestClaimLinkSA(BaseModel): """ BoostGenerateClaimLinkRequestClaimLinkSA """ # noqa: E501 - endpoint: StrictStr - name: StrictStr + endpoint: Optional[StrictStr] + name: Optional[StrictStr] did: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["endpoint", "name", "did"] @@ -70,6 +70,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_options.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_options.py index ec88feb75b..36406b0388 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_options.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_generate_claim_link_request_options.py @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if ttl_seconds (nullable) is None + # and model_fields_set contains the field + if self.ttl_seconds is None and "ttl_seconds" in self.model_fields_set: + _dict['ttlSeconds'] = None + + # set to None if total_uses (nullable) is None + # and model_fields_set contains the field + if self.total_uses is None and "total_uses" in self.model_fields_set: + _dict['totalUses'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response.py index 94f3e72c25..7e046ffb23 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response.py @@ -19,8 +19,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf +from openapi_client.models.boost_get_boost200_response_boost import BoostGetBoost200ResponseBoost from openapi_client.models.boost_get_boost200_response_claim_permissions import BoostGetBoost200ResponseClaimPermissions +from openapi_client.models.boost_get_boost200_response_default_permissions import BoostGetBoost200ResponseDefaultPermissions from typing import Optional, Set from typing_extensions import Self @@ -34,11 +35,13 @@ class BoostGetBoost200Response(BaseModel): status: Optional[StrictStr] = None auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") meta: Optional[Dict[str, Any]] = None + default_permissions: Optional[BoostGetBoost200ResponseDefaultPermissions] = Field(default=None, alias="defaultPermissions") allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") claim_permissions: Optional[BoostGetBoost200ResponseClaimPermissions] = Field(default=None, alias="claimPermissions") - uri: StrictStr - boost: BoostCreateBoostRequestCredentialAnyOf - __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "claimPermissions", "uri", "boost"] + uri: Optional[StrictStr] + boost: BoostGetBoost200ResponseBoost + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "defaultPermissions", "allowAnyoneToCreateChildren", "claimPermissions", "uri", "boost"] @field_validator('status') def status_validate_enum(cls, value): @@ -80,8 +83,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -89,12 +94,40 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() # override the default output from pydantic by calling `to_dict()` of claim_permissions if self.claim_permissions: _dict['claimPermissions'] = self.claim_permissions.to_dict() # override the default output from pydantic by calling `to_dict()` of boost if self.boost: _dict['boost'] = self.boost.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -113,11 +146,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "autoConnectRecipients": obj.get("autoConnectRecipients"), "meta": obj.get("meta"), + "defaultPermissions": BoostGetBoost200ResponseDefaultPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None, "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), "claimPermissions": BoostGetBoost200ResponseClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None, "uri": obj.get("uri"), - "boost": BoostCreateBoostRequestCredentialAnyOf.from_dict(obj["boost"]) if obj.get("boost") is not None else None + "boost": BoostGetBoost200ResponseBoost.from_dict(obj["boost"]) if obj.get("boost") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost.py new file mode 100644 index 0000000000..7ca1f6f76b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_boost200_response_boost_issuer import BoostGetBoost200ResponseBoostIssuer +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus +from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoost(BaseModel): + """ + BoostGetBoost200ResponseBoost + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + issuer: BoostGetBoost200ResponseBoostIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") + issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") + expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") + credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + valid_from: Optional[StrictStr] = Field(default=None, alias="validFrom") + valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") + status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None + terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoost from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of issuer + if self.issuer: + _dict['issuer'] = self.issuer.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_subject + if self.credential_subject: + _dict['credentialSubject'] = self.credential_subject.to_dict() + # override the default output from pydantic by calling `to_dict()` of refresh_service + if self.refresh_service: + _dict['refreshService'] = self.refresh_service.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_schema + if self.credential_schema: + _dict['credentialSchema'] = self.credential_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_status + if self.credential_status: + _dict['credentialStatus'] = self.credential_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + # override the default output from pydantic by calling `to_dict()` of terms_of_use + if self.terms_of_use: + _dict['termsOfUse'] = self.terms_of_use.to_dict() + # override the default output from pydantic by calling `to_dict()` of evidence + if self.evidence: + _dict['evidence'] = self.evidence.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if issuance_date (nullable) is None + # and model_fields_set contains the field + if self.issuance_date is None and "issuance_date" in self.model_fields_set: + _dict['issuanceDate'] = None + + # set to None if expiration_date (nullable) is None + # and model_fields_set contains the field + if self.expiration_date is None and "expiration_date" in self.model_fields_set: + _dict['expirationDate'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if valid_from (nullable) is None + # and model_fields_set contains the field + if self.valid_from is None and "valid_from" in self.model_fields_set: + _dict['validFrom'] = None + + # set to None if valid_until (nullable) is None + # and model_fields_set contains the field + if self.valid_until is None and "valid_until" in self.model_fields_set: + _dict['validUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoost from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "issuer": BoostGetBoost200ResponseBoostIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuanceDate": obj.get("issuanceDate"), + "expirationDate": obj.get("expirationDate"), + "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "validFrom": obj.get("validFrom"), + "validUntil": obj.get("validUntil"), + "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer.py similarity index 72% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer.py index 842e800e2f..b6a2755d8a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer.py @@ -19,27 +19,27 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_get_boosts_request_query_uri_any_of_any_of import BoostGetBoostsRequestQueryUriAnyOfAnyOf +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of import BoostGetBoost200ResponseBoostIssuerAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTGETBOOSTSREQUESTQUERYURIANYOF_ANY_OF_SCHEMAS = ["BoostGetBoostsRequestQueryUriAnyOfAnyOf", "str"] +BOOSTGETBOOST200RESPONSEBOOSTISSUER_ANY_OF_SCHEMAS = ["BoostGetBoost200ResponseBoostIssuerAnyOf", "str"] -class BoostGetBoostsRequestQueryUriAnyOf(BaseModel): +class BoostGetBoost200ResponseBoostIssuer(BaseModel): """ - BoostGetBoostsRequestQueryUriAnyOf + BoostGetBoost200ResponseBoostIssuer """ # data type: str anyof_schema_1_validator: Optional[StrictStr] = None - # data type: BoostGetBoostsRequestQueryUriAnyOfAnyOf - anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryUriAnyOfAnyOf] = None + # data type: BoostGetBoost200ResponseBoostIssuerAnyOf + anyof_schema_2_validator: Optional[BoostGetBoost200ResponseBoostIssuerAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostGetBoostsRequestQueryUriAnyOfAnyOf, str]] = None + actual_instance: Optional[Union[BoostGetBoost200ResponseBoostIssuerAnyOf, str]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostGetBoostsRequestQueryUriAnyOfAnyOf", "str" } + any_of_schemas: Set[str] = { "BoostGetBoost200ResponseBoostIssuerAnyOf", "str" } model_config = { "validate_assignment": True, @@ -58,7 +58,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = BoostGetBoostsRequestQueryUriAnyOf.model_construct() + instance = BoostGetBoost200ResponseBoostIssuer.model_construct() error_messages = [] # validate data type: str try: @@ -66,15 +66,15 @@ def actual_instance_must_validate_anyof(cls, v): return v except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # validate data type: BoostGetBoostsRequestQueryUriAnyOfAnyOf - if not isinstance(v, BoostGetBoostsRequestQueryUriAnyOfAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryUriAnyOfAnyOf`") + # validate data type: BoostGetBoost200ResponseBoostIssuerAnyOf + if not isinstance(v, BoostGetBoost200ResponseBoostIssuerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoost200ResponseBoostIssuerAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostGetBoostsRequestQueryUriAnyOf with anyOf schemas: BoostGetBoostsRequestQueryUriAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostGetBoost200ResponseBoostIssuer with anyOf schemas: BoostGetBoost200ResponseBoostIssuerAnyOf, str. Details: " + ", ".join(error_messages)) else: return v @@ -96,16 +96,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryUriAnyOfAnyOf] = None + # anyof_schema_2_validator: Optional[BoostGetBoost200ResponseBoostIssuerAnyOf] = None try: - instance.actual_instance = BoostGetBoostsRequestQueryUriAnyOfAnyOf.from_json(json_str) + instance.actual_instance = BoostGetBoost200ResponseBoostIssuerAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostGetBoostsRequestQueryUriAnyOf with anyOf schemas: BoostGetBoostsRequestQueryUriAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostGetBoost200ResponseBoostIssuer with anyOf schemas: BoostGetBoost200ResponseBoostIssuerAnyOf, str. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostsRequestQueryUriAnyOfAnyOf, str]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoost200ResponseBoostIssuerAnyOf, str]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of.py new file mode 100644 index 0000000000..ee8fc96aca --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address import BoostGetBoost200ResponseBoostIssuerAnyOfAddress +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image import BoostGetBoost200ResponseBoostIssuerAnyOfImage +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner import BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoostIssuerAnyOf(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOf + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + name: Optional[StrictStr] = None + url: Optional[StrictStr] = None + phone: Optional[StrictStr] = None + description: Optional[StrictStr] = None + endorsement: Optional[List[Any]] = None + image: Optional[BoostGetBoost200ResponseBoostIssuerAnyOfImage] = None + email: Optional[Annotated[str, Field(strict=True)]] = None + address: Optional[BoostGetBoost200ResponseBoostIssuerAnyOfAddress] = None + other_identifier: Optional[List[BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner]] = Field(default=None, alias="otherIdentifier") + official: Optional[StrictStr] = None + parent_org: Optional[Any] = Field(default=None, alias="parentOrg") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + additional_name: Optional[StrictStr] = Field(default=None, alias="additionalName") + patronymic_name: Optional[StrictStr] = Field(default=None, alias="patronymicName") + honorific_prefix: Optional[StrictStr] = Field(default=None, alias="honorificPrefix") + honorific_suffix: Optional[StrictStr] = Field(default=None, alias="honorificSuffix") + family_name_prefix: Optional[StrictStr] = Field(default=None, alias="familyNamePrefix") + date_of_birth: Optional[StrictStr] = Field(default=None, alias="dateOfBirth") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "name", "url", "phone", "description", "endorsement", "image", "email", "address", "otherIdentifier", "official", "parentOrg", "familyName", "givenName", "additionalName", "patronymicName", "honorificPrefix", "honorificSuffix", "familyNamePrefix", "dateOfBirth"] + + @field_validator('email') + def email_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of image + if self.image: + _dict['image'] = self.image.to_dict() + # override the default output from pydantic by calling `to_dict()` of address + if self.address: + _dict['address'] = self.address.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in other_identifier (list) + _items = [] + if self.other_identifier: + for _item_other_identifier in self.other_identifier: + if _item_other_identifier: + _items.append(_item_other_identifier.to_dict()) + _dict['otherIdentifier'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if url (nullable) is None + # and model_fields_set contains the field + if self.url is None and "url" in self.model_fields_set: + _dict['url'] = None + + # set to None if phone (nullable) is None + # and model_fields_set contains the field + if self.phone is None and "phone" in self.model_fields_set: + _dict['phone'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if official (nullable) is None + # and model_fields_set contains the field + if self.official is None and "official" in self.model_fields_set: + _dict['official'] = None + + # set to None if parent_org (nullable) is None + # and model_fields_set contains the field + if self.parent_org is None and "parent_org" in self.model_fields_set: + _dict['parentOrg'] = None + + # set to None if family_name (nullable) is None + # and model_fields_set contains the field + if self.family_name is None and "family_name" in self.model_fields_set: + _dict['familyName'] = None + + # set to None if given_name (nullable) is None + # and model_fields_set contains the field + if self.given_name is None and "given_name" in self.model_fields_set: + _dict['givenName'] = None + + # set to None if additional_name (nullable) is None + # and model_fields_set contains the field + if self.additional_name is None and "additional_name" in self.model_fields_set: + _dict['additionalName'] = None + + # set to None if patronymic_name (nullable) is None + # and model_fields_set contains the field + if self.patronymic_name is None and "patronymic_name" in self.model_fields_set: + _dict['patronymicName'] = None + + # set to None if honorific_prefix (nullable) is None + # and model_fields_set contains the field + if self.honorific_prefix is None and "honorific_prefix" in self.model_fields_set: + _dict['honorificPrefix'] = None + + # set to None if honorific_suffix (nullable) is None + # and model_fields_set contains the field + if self.honorific_suffix is None and "honorific_suffix" in self.model_fields_set: + _dict['honorificSuffix'] = None + + # set to None if family_name_prefix (nullable) is None + # and model_fields_set contains the field + if self.family_name_prefix is None and "family_name_prefix" in self.model_fields_set: + _dict['familyNamePrefix'] = None + + # set to None if date_of_birth (nullable) is None + # and model_fields_set contains the field + if self.date_of_birth is None and "date_of_birth" in self.model_fields_set: + _dict['dateOfBirth'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "name": obj.get("name"), + "url": obj.get("url"), + "phone": obj.get("phone"), + "description": obj.get("description"), + "endorsement": obj.get("endorsement"), + "image": BoostGetBoost200ResponseBoostIssuerAnyOfImage.from_dict(obj["image"]) if obj.get("image") is not None else None, + "email": obj.get("email"), + "address": BoostGetBoost200ResponseBoostIssuerAnyOfAddress.from_dict(obj["address"]) if obj.get("address") is not None else None, + "otherIdentifier": [BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner.from_dict(_item) for _item in obj["otherIdentifier"]] if obj.get("otherIdentifier") is not None else None, + "official": obj.get("official"), + "parentOrg": obj.get("parentOrg"), + "familyName": obj.get("familyName"), + "givenName": obj.get("givenName"), + "additionalName": obj.get("additionalName"), + "patronymicName": obj.get("patronymicName"), + "honorificPrefix": obj.get("honorificPrefix"), + "honorificSuffix": obj.get("honorificSuffix"), + "familyNamePrefix": obj.get("familyNamePrefix"), + "dateOfBirth": obj.get("dateOfBirth") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address.py new file mode 100644 index 0000000000..911f67455c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address_geo import BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoostIssuerAnyOfAddress(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOfAddress + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + address_country: Optional[StrictStr] = Field(default=None, alias="addressCountry") + address_country_code: Optional[StrictStr] = Field(default=None, alias="addressCountryCode") + address_region: Optional[StrictStr] = Field(default=None, alias="addressRegion") + address_locality: Optional[StrictStr] = Field(default=None, alias="addressLocality") + street_address: Optional[StrictStr] = Field(default=None, alias="streetAddress") + post_office_box_number: Optional[StrictStr] = Field(default=None, alias="postOfficeBoxNumber") + postal_code: Optional[StrictStr] = Field(default=None, alias="postalCode") + geo: Optional[BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "addressCountry", "addressCountryCode", "addressRegion", "addressLocality", "streetAddress", "postOfficeBoxNumber", "postalCode", "geo"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of geo + if self.geo: + _dict['geo'] = self.geo.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if address_country (nullable) is None + # and model_fields_set contains the field + if self.address_country is None and "address_country" in self.model_fields_set: + _dict['addressCountry'] = None + + # set to None if address_country_code (nullable) is None + # and model_fields_set contains the field + if self.address_country_code is None and "address_country_code" in self.model_fields_set: + _dict['addressCountryCode'] = None + + # set to None if address_region (nullable) is None + # and model_fields_set contains the field + if self.address_region is None and "address_region" in self.model_fields_set: + _dict['addressRegion'] = None + + # set to None if address_locality (nullable) is None + # and model_fields_set contains the field + if self.address_locality is None and "address_locality" in self.model_fields_set: + _dict['addressLocality'] = None + + # set to None if street_address (nullable) is None + # and model_fields_set contains the field + if self.street_address is None and "street_address" in self.model_fields_set: + _dict['streetAddress'] = None + + # set to None if post_office_box_number (nullable) is None + # and model_fields_set contains the field + if self.post_office_box_number is None and "post_office_box_number" in self.model_fields_set: + _dict['postOfficeBoxNumber'] = None + + # set to None if postal_code (nullable) is None + # and model_fields_set contains the field + if self.postal_code is None and "postal_code" in self.model_fields_set: + _dict['postalCode'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "addressCountry": obj.get("addressCountry"), + "addressCountryCode": obj.get("addressCountryCode"), + "addressRegion": obj.get("addressRegion"), + "addressLocality": obj.get("addressLocality"), + "streetAddress": obj.get("streetAddress"), + "postOfficeBoxNumber": obj.get("postOfficeBoxNumber"), + "postalCode": obj.get("postalCode"), + "geo": BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo.from_dict(obj["geo"]) if obj.get("geo") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..22e64c9443 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_address_geo.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + latitude: Optional[Union[StrictFloat, StrictInt]] + longitude: Optional[Union[StrictFloat, StrictInt]] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if latitude (nullable) is None + # and model_fields_set contains the field + if self.latitude is None and "latitude" in self.model_fields_set: + _dict['latitude'] = None + + # set to None if longitude (nullable) is None + # and model_fields_set contains the field + if self.longitude is None and "longitude" in self.model_fields_set: + _dict['longitude'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image.py new file mode 100644 index 0000000000..f5306acfe6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image_any_of import BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTGETBOOST200RESPONSEBOOSTISSUERANYOFIMAGE_ANY_OF_SCHEMAS = ["BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf", "str"] + +class BoostGetBoost200ResponseBoostIssuerAnyOfImage(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOfImage + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + anyof_schema_2_validator: Optional[BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostGetBoost200ResponseBoostIssuerAnyOfImage.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + if not isinstance(v, BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostGetBoost200ResponseBoostIssuerAnyOfImage with anyOf schemas: BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf] = None + try: + instance.actual_instance = BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostGetBoost200ResponseBoostIssuerAnyOfImage with anyOf schemas: BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..243e9b22c2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_image_any_of.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + """ # noqa: E501 + id: Optional[StrictStr] + type: Optional[StrictStr] + caption: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "caption"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if caption (nullable) is None + # and model_fields_set contains the field + if self.caption is None and "caption" in self.model_fields_set: + _dict['caption'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "caption": obj.get("caption") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..4e696ba79f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner(BaseModel): + """ + BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + identifier: Optional[StrictStr] + identifier_type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType = Field(alias="identifierType") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "identifier", "identifierType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of identifier_type + if self.identifier_type: + _dict['identifierType'] = self.identifier_type.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if identifier (nullable) is None + # and model_fields_set contains the field + if self.identifier is None and "identifier" in self.model_fields_set: + _dict['identifier'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "identifier": obj.get("identifier"), + "identifierType": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.from_dict(obj["identifierType"]) if obj.get("identifierType") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_claim_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_claim_permissions.py index 4948e3f16d..dd822857c0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_claim_permissions.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_claim_permissions.py @@ -36,7 +36,7 @@ class BoostGetBoost200ResponseClaimPermissions(BaseModel): can_edit_children: StrictStr = Field(alias="canEditChildren") can_revoke_children: StrictStr = Field(alias="canRevokeChildren") can_manage_children_permissions: StrictStr = Field(alias="canManageChildrenPermissions") - can_manage_children_profiles: Optional[StrictBool] = Field(default=False, alias="canManageChildrenProfiles") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") can_view_analytics: StrictBool = Field(alias="canViewAnalytics") __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "canEditChildren": obj.get("canEditChildren"), "canRevokeChildren": obj.get("canRevokeChildren"), "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), - "canManageChildrenProfiles": obj.get("canManageChildrenProfiles") if obj.get("canManageChildrenProfiles") is not None else False, + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), "canViewAnalytics": obj.get("canViewAnalytics") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_default_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_default_permissions.py new file mode 100644 index 0000000000..992c5c2e16 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost200_response_default_permissions.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoost200ResponseDefaultPermissions(BaseModel): + """ + BoostGetBoost200ResponseDefaultPermissions + """ # noqa: E501 + role: Optional[StrictStr] + can_edit: StrictBool = Field(alias="canEdit") + can_issue: StrictBool = Field(alias="canIssue") + can_revoke: StrictBool = Field(alias="canRevoke") + can_manage_permissions: StrictBool = Field(alias="canManagePermissions") + can_issue_children: Optional[StrictStr] = Field(alias="canIssueChildren") + can_create_children: Optional[StrictStr] = Field(alias="canCreateChildren") + can_edit_children: Optional[StrictStr] = Field(alias="canEditChildren") + can_revoke_children: Optional[StrictStr] = Field(alias="canRevokeChildren") + can_manage_children_permissions: Optional[StrictStr] = Field(alias="canManageChildrenPermissions") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") + can_view_analytics: StrictBool = Field(alias="canViewAnalytics") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseDefaultPermissions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict['role'] = None + + # set to None if can_issue_children (nullable) is None + # and model_fields_set contains the field + if self.can_issue_children is None and "can_issue_children" in self.model_fields_set: + _dict['canIssueChildren'] = None + + # set to None if can_create_children (nullable) is None + # and model_fields_set contains the field + if self.can_create_children is None and "can_create_children" in self.model_fields_set: + _dict['canCreateChildren'] = None + + # set to None if can_edit_children (nullable) is None + # and model_fields_set contains the field + if self.can_edit_children is None and "can_edit_children" in self.model_fields_set: + _dict['canEditChildren'] = None + + # set to None if can_revoke_children (nullable) is None + # and model_fields_set contains the field + if self.can_revoke_children is None and "can_revoke_children" in self.model_fields_set: + _dict['canRevokeChildren'] = None + + # set to None if can_manage_children_permissions (nullable) is None + # and model_fields_set contains the field + if self.can_manage_children_permissions is None and "can_manage_children_permissions" in self.model_fields_set: + _dict['canManageChildrenPermissions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoost200ResponseDefaultPermissions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "canEdit": obj.get("canEdit"), + "canIssue": obj.get("canIssue"), + "canRevoke": obj.get("canRevoke"), + "canManagePermissions": obj.get("canManagePermissions"), + "canIssueChildren": obj.get("canIssueChildren"), + "canCreateChildren": obj.get("canCreateChildren"), + "canEditChildren": obj.get("canEditChildren"), + "canRevokeChildren": obj.get("canRevokeChildren"), + "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), + "canViewAnalytics": obj.get("canViewAnalytics") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins200_response.py index ade4613317..ab587102ff 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins200_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class BoostGetBoostAdmins200Response(BaseModel): """ # noqa: E501 cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") - records: List[BoostGetBoostRecipients200ResponseInnerTo] + records: List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -92,8 +105,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "cursor": obj.get("cursor"), "hasMore": obj.get("hasMore"), - "records": [BoostGetBoostRecipients200ResponseInnerTo.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + "records": [BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins_request.py index 829d4c3e6f..c1de382dbc 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_admins_request.py @@ -30,7 +30,7 @@ class BoostGetBoostAdminsRequest(BaseModel): cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None include_self: Optional[StrictBool] = Field(default=True, alias="includeSelf") - uri: StrictStr + uri: Optional[StrictStr] __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "includeSelf", "uri"] model_config = ConfigDict( @@ -72,6 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_alignments200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_alignments200_response_inner.py new file mode 100644 index 0000000000..55370eec2f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_alignments200_response_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostAlignments200ResponseInner(BaseModel): + """ + BoostGetBoostAlignments200ResponseInner + """ # noqa: E501 + target_code: Optional[StrictStr] = Field(default=None, alias="targetCode") + target_name: Optional[StrictStr] = Field(default=None, alias="targetName") + target_description: Optional[StrictStr] = Field(default=None, alias="targetDescription") + target_url: Optional[StrictStr] = Field(default=None, alias="targetUrl") + target_framework: Optional[StrictStr] = Field(default=None, alias="targetFramework") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["targetCode", "targetName", "targetDescription", "targetUrl", "targetFramework"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostAlignments200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostAlignments200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetCode": obj.get("targetCode"), + "targetName": obj.get("targetName"), + "targetDescription": obj.get("targetDescription"), + "targetUrl": obj.get("targetUrl"), + "targetFramework": obj.get("targetFramework") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_children_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_children_request.py index 8b39ed4bfb..32121620cd 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_children_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_children_request.py @@ -30,9 +30,9 @@ class BoostGetBoostChildrenRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None - number_of_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="numberOfGenerations") + number_of_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="numberOfGenerations") __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query", "numberOfGenerations"] model_config = ConfigDict( @@ -77,6 +77,26 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if number_of_generations (nullable) is None + # and model_fields_set contains the field + if self.number_of_generations is None and "number_of_generations" in self.model_fields_set: + _dict['numberOfGenerations'] = None + return _dict @classmethod @@ -94,7 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sort": obj.get("sort"), "uri": obj.get("uri"), "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, - "numberOfGenerations": obj.get("numberOfGenerations") if obj.get("numberOfGenerations") is not None else 1 + "numberOfGenerations": obj.get("numberOfGenerations") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response.py new file mode 100644 index 0000000000..8fe2c0d64f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostFrameworks200Response(BaseModel): + """ + BoostGetBoostFrameworks200Response + """ # noqa: E501 + cursor: Optional[StrictStr] = None + has_more: StrictBool = Field(alias="hasMore") + records: List[BoostGetBoostFrameworks200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworks200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworks200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cursor": obj.get("cursor"), + "hasMore": obj.get("hasMore"), + "records": [BoostGetBoostFrameworks200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response_records_inner.py new file mode 100644 index 0000000000..10269ddde6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks200_response_records_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostFrameworks200ResponseRecordsInner(BaseModel): + """ + BoostGetBoostFrameworks200ResponseRecordsInner + """ # noqa: E501 + id: StrictStr + name: StrictStr + description: Optional[StrictStr] = None + image: Optional[StrictStr] = None + source_uri: Optional[StrictStr] = Field(default=None, alias="sourceURI") + status: StrictStr + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "description", "image", "sourceURI", "status", "createdAt", "updatedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworks200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworks200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "image": obj.get("image"), + "sourceURI": obj.get("sourceURI"), + "status": obj.get("status") if obj.get("status") is not None else 'active', + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request.py new file mode 100644 index 0000000000..e42f801a76 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_boost_frameworks_request_query import BoostGetBoostFrameworksRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostFrameworksRequest(BaseModel): + """ + BoostGetBoostFrameworksRequest + """ # noqa: E501 + uri: Optional[StrictStr] + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = 50 + cursor: Optional[StrictStr] = None + query: Optional[BoostGetBoostFrameworksRequestQuery] = None + __properties: ClassVar[List[str]] = ["uri", "limit", "cursor", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "limit": obj.get("limit") if obj.get("limit") is not None else 50, + "cursor": obj.get("cursor"), + "query": BoostGetBoostFrameworksRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query.py new file mode 100644 index 0000000000..ba1c01a9b6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of import BoostGetBoostFrameworksRequestQueryAnyOf +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTGETBOOSTFRAMEWORKSREQUESTQUERY_ANY_OF_SCHEMAS = ["BoostGetBoostFrameworksRequestQueryAnyOf", "BoostGetBoostFrameworksRequestQueryAnyOfOrInner"] + +class BoostGetBoostFrameworksRequestQuery(BaseModel): + """ + BoostGetBoostFrameworksRequestQuery + """ + + # data type: BoostGetBoostFrameworksRequestQueryAnyOf + anyof_schema_1_validator: Optional[BoostGetBoostFrameworksRequestQueryAnyOf] = None + # data type: BoostGetBoostFrameworksRequestQueryAnyOfOrInner + anyof_schema_2_validator: Optional[BoostGetBoostFrameworksRequestQueryAnyOfOrInner] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostGetBoostFrameworksRequestQueryAnyOf, BoostGetBoostFrameworksRequestQueryAnyOfOrInner]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostGetBoostFrameworksRequestQueryAnyOf", "BoostGetBoostFrameworksRequestQueryAnyOfOrInner" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostGetBoostFrameworksRequestQuery.model_construct() + error_messages = [] + # validate data type: BoostGetBoostFrameworksRequestQueryAnyOf + if not isinstance(v, BoostGetBoostFrameworksRequestQueryAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostFrameworksRequestQueryAnyOf`") + else: + return v + + # validate data type: BoostGetBoostFrameworksRequestQueryAnyOfOrInner + if not isinstance(v, BoostGetBoostFrameworksRequestQueryAnyOfOrInner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostFrameworksRequestQueryAnyOfOrInner`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostGetBoostFrameworksRequestQuery with anyOf schemas: BoostGetBoostFrameworksRequestQueryAnyOf, BoostGetBoostFrameworksRequestQueryAnyOfOrInner. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostGetBoostFrameworksRequestQueryAnyOf] = None + try: + instance.actual_instance = BoostGetBoostFrameworksRequestQueryAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostGetBoostFrameworksRequestQueryAnyOfOrInner] = None + try: + instance.actual_instance = BoostGetBoostFrameworksRequestQueryAnyOfOrInner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostGetBoostFrameworksRequestQuery with anyOf schemas: BoostGetBoostFrameworksRequestQueryAnyOf, BoostGetBoostFrameworksRequestQueryAnyOfOrInner. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostFrameworksRequestQueryAnyOf, BoostGetBoostFrameworksRequestQueryAnyOfOrInner]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of.py new file mode 100644 index 0000000000..722d83e656 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostFrameworksRequestQueryAnyOf(BaseModel): + """ + BoostGetBoostFrameworksRequestQueryAnyOf + """ # noqa: E501 + var_or: List[BoostGetBoostFrameworksRequestQueryAnyOfOrInner] = Field(alias="$or") + __properties: ClassVar[List[str]] = ["$or"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequestQueryAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_or (list) + _items = [] + if self.var_or: + for _item_var_or in self.var_or: + if _item_var_or: + _items.append(_item_var_or.to_dict()) + _dict['$or'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequestQueryAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$or": [BoostGetBoostFrameworksRequestQueryAnyOfOrInner.from_dict(_item) for _item in obj["$or"]] if obj.get("$or") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of_or_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of_or_inner.py new file mode 100644 index 0000000000..c5451d111c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_frameworks_request_query_any_of_or_inner.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostFrameworksRequestQueryAnyOfOrInner(BaseModel): + """ + BoostGetBoostFrameworksRequestQueryAnyOfOrInner + """ # noqa: E501 + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + description: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + source_uri: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="sourceURI") + status: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + __properties: ClassVar[List[str]] = ["id", "name", "description", "sourceURI", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequestQueryAnyOfOrInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + # override the default output from pydantic by calling `to_dict()` of name + if self.name: + _dict['name'] = self.name.to_dict() + # override the default output from pydantic by calling `to_dict()` of description + if self.description: + _dict['description'] = self.description.to_dict() + # override the default output from pydantic by calling `to_dict()` of source_uri + if self.source_uri: + _dict['sourceURI'] = self.source_uri.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostFrameworksRequestQueryAnyOfOrInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["name"]) if obj.get("name") is not None else None, + "description": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["description"]) if obj.get("description") is not None else None, + "sourceURI": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["sourceURI"]) if obj.get("sourceURI") is not None else None, + "status": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_parents_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_parents_request.py new file mode 100644 index 0000000000..12f5d63d52 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_parents_request.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations +from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostParentsRequest(BaseModel): + """ + BoostGetBoostParentsRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = 25 + cursor: Optional[StrictStr] = None + sort: Optional[StrictStr] = None + uri: Optional[StrictStr] + query: Optional[BoostGetBoostsRequestQuery] = None + number_of_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="numberOfGenerations") + __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query", "numberOfGenerations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostParentsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # override the default output from pydantic by calling `to_dict()` of number_of_generations + if self.number_of_generations: + _dict['numberOfGenerations'] = self.number_of_generations.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostParentsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit") if obj.get("limit") is not None else 25, + "cursor": obj.get("cursor"), + "sort": obj.get("sort"), + "uri": obj.get("uri"), + "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, + "numberOfGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["numberOfGenerations"]) if obj.get("numberOfGenerations") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner.py index 2254a352d8..7dc034a976 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner.py @@ -28,9 +28,10 @@ class BoostGetBoostRecipients200ResponseInner(BaseModel): BoostGetBoostRecipients200ResponseInner """ # noqa: E501 to: BoostGetBoostRecipients200ResponseInnerTo - var_from: StrictStr = Field(alias="from") + var_from: Optional[StrictStr] = Field(alias="from") received: Optional[StrictStr] = None uri: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["to", "from", "received", "uri"] model_config = ConfigDict( @@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -75,6 +78,26 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of to if self.to: _dict['to'] = self.to.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if var_from (nullable) is None + # and model_fields_set contains the field + if self.var_from is None and "var_from" in self.model_fields_set: + _dict['from'] = None + + # set to None if received (nullable) is None + # and model_fields_set contains the field + if self.received is None and "received" in self.model_fields_set: + _dict['received'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -92,6 +115,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "received": obj.get("received"), "uri": obj.get("uri") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to.py index 6c037352a4..b83f9d1da5 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to.py @@ -42,9 +42,13 @@ class BoostGetBoostRecipients200ResponseInnerTo(BaseModel): type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") display: Optional[BoostGetBoostRecipients200ResponseInnerToDisplay] = None + highlighted_credentials: Optional[Annotated[List[Optional[StrictStr]], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") - __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "did", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "role", "dob"] + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "did", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] @field_validator('notifications_webhook') def notifications_webhook_validate_regular_expression(cls, value): @@ -52,8 +56,8 @@ def notifications_webhook_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^http", value): - raise ValueError(r"must validate the regular expression /^http/") + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") return value model_config = ConfigDict( @@ -86,8 +90,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -98,6 +104,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of display if self.display: _dict['display'] = self.display.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -124,9 +135,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "notificationsWebhook": obj.get("notificationsWebhook"), "display": BoostGetBoostRecipients200ResponseInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), "role": obj.get("role") if obj.get("role") is not None else '', - "dob": obj.get("dob") if obj.get("dob") is not None else '' + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to_display.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to_display.py index 7a943baaba..f5c420fd16 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to_display.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients200_response_inner_to_display.py @@ -37,6 +37,7 @@ class BoostGetBoostRecipients200ResponseInnerToDisplay(BaseModel): fade_id_background_image: Optional[StrictBool] = Field(default=None, alias="fadeIdBackgroundImage") id_background_color: Optional[StrictStr] = Field(default=None, alias="idBackgroundColor") repeat_id_background_image: Optional[StrictBool] = Field(default=None, alias="repeatIdBackgroundImage") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["backgroundColor", "backgroundImage", "fadeBackgroundImage", "repeatBackgroundImage", "fontColor", "accentColor", "accentFontColor", "idBackgroundImage", "fadeIdBackgroundImage", "idBackgroundColor", "repeatIdBackgroundImage"] model_config = ConfigDict( @@ -69,8 +70,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,46 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if background_color (nullable) is None + # and model_fields_set contains the field + if self.background_color is None and "background_color" in self.model_fields_set: + _dict['backgroundColor'] = None + + # set to None if background_image (nullable) is None + # and model_fields_set contains the field + if self.background_image is None and "background_image" in self.model_fields_set: + _dict['backgroundImage'] = None + + # set to None if font_color (nullable) is None + # and model_fields_set contains the field + if self.font_color is None and "font_color" in self.model_fields_set: + _dict['fontColor'] = None + + # set to None if accent_color (nullable) is None + # and model_fields_set contains the field + if self.accent_color is None and "accent_color" in self.model_fields_set: + _dict['accentColor'] = None + + # set to None if accent_font_color (nullable) is None + # and model_fields_set contains the field + if self.accent_font_color is None and "accent_font_color" in self.model_fields_set: + _dict['accentFontColor'] = None + + # set to None if id_background_image (nullable) is None + # and model_fields_set contains the field + if self.id_background_image is None and "id_background_image" in self.model_fields_set: + _dict['idBackgroundImage'] = None + + # set to None if id_background_color (nullable) is None + # and model_fields_set contains the field + if self.id_background_color is None and "id_background_color" in self.model_fields_set: + _dict['idBackgroundColor'] = None + return _dict @classmethod @@ -102,6 +145,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "idBackgroundColor": obj.get("idBackgroundColor"), "repeatIdBackgroundImage": obj.get("repeatIdBackgroundImage") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request.py new file mode 100644 index 0000000000..135d60a841 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations +from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery +from openapi_client.models.boost_get_paginated_boost_recipients_request_query import BoostGetPaginatedBoostRecipientsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostRecipientsWithChildrenCountRequest(BaseModel): + """ + BoostGetBoostRecipientsWithChildrenCountRequest + """ # noqa: E501 + uri: Optional[StrictStr] + include_unaccepted_boosts: Optional[StrictBool] = Field(default=True, alias="includeUnacceptedBoosts") + number_of_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="numberOfGenerations") + boost_query: Optional[BoostGetBoostsRequestQuery] = Field(default=None, alias="boostQuery") + profile_query: Optional[BoostGetPaginatedBoostRecipientsRequestQuery] = Field(default=None, alias="profileQuery") + __properties: ClassVar[List[str]] = ["uri", "includeUnacceptedBoosts", "numberOfGenerations", "boostQuery", "profileQuery"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostRecipientsWithChildrenCountRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of number_of_generations + if self.number_of_generations: + _dict['numberOfGenerations'] = self.number_of_generations.to_dict() + # override the default output from pydantic by calling `to_dict()` of boost_query + if self.boost_query: + _dict['boostQuery'] = self.boost_query.to_dict() + # override the default output from pydantic by calling `to_dict()` of profile_query + if self.profile_query: + _dict['profileQuery'] = self.profile_query.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostRecipientsWithChildrenCountRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "includeUnacceptedBoosts": obj.get("includeUnacceptedBoosts") if obj.get("includeUnacceptedBoosts") is not None else True, + "numberOfGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["numberOfGenerations"]) if obj.get("numberOfGenerations") is not None else None, + "boostQuery": BoostGetBoostsRequestQuery.from_dict(obj["boostQuery"]) if obj.get("boostQuery") is not None else None, + "profileQuery": BoostGetPaginatedBoostRecipientsRequestQuery.from_dict(obj["profileQuery"]) if obj.get("profileQuery") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request_number_of_generations.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request_number_of_generations.py new file mode 100644 index 0000000000..4c5d770894 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_recipients_with_children_count_request_number_of_generations.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTGETBOOSTRECIPIENTSWITHCHILDRENCOUNTREQUESTNUMBEROFGENERATIONS_ANY_OF_SCHEMAS = ["float"] + +class BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations(BaseModel): + """ + BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "float" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations with anyOf schemas: float. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations with anyOf schemas: float. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_siblings_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_siblings_request.py index 20dc6c2809..59ce722426 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_siblings_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boost_siblings_request.py @@ -30,7 +30,7 @@ class BoostGetBoostSiblingsRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query"] @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts200_response_inner.py index a7839c7b4c..501711ccae 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts200_response_inner.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boost200_response_claim_permissions import BoostGetBoost200ResponseClaimPermissions from typing import Optional, Set from typing_extensions import Self @@ -32,9 +33,11 @@ class BoostGetBoosts200ResponseInner(BaseModel): status: Optional[StrictStr] = None auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") meta: Optional[Dict[str, Any]] = None + default_permissions: Optional[BoostGetBoost200ResponseClaimPermissions] = Field(default=None, alias="defaultPermissions") allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") - uri: StrictStr - __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "uri"] + uri: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "defaultPermissions", "allowAnyoneToCreateChildren", "uri"] @field_validator('status') def status_validate_enum(cls, value): @@ -76,8 +79,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -85,6 +90,34 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -103,9 +136,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "autoConnectRecipients": obj.get("autoConnectRecipients"), "meta": obj.get("meta"), + "defaultPermissions": BoostGetBoost200ResponseClaimPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None, "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), "uri": obj.get("uri") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query.py index d7e8f3b17e..dca0cd2eb7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query.py @@ -13,116 +13,122 @@ from __future__ import annotations +from inspect import getfullargspec +import json import pprint import re # noqa: F401 -import json +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_get_boosts_request_query_any_of import BoostGetBoostsRequestQueryAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_status import BoostGetBoostsRequestQueryStatus -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri -from typing import Optional, Set -from typing_extensions import Self +BOOSTGETBOOSTSREQUESTQUERY_ANY_OF_SCHEMAS = ["BoostGetBoostsRequestQueryAnyOf", "BoostGetBoostsRequestQueryAnyOfOrInner"] class BoostGetBoostsRequestQuery(BaseModel): """ BoostGetBoostsRequestQuery - """ # noqa: E501 - uri: Optional[BoostGetBoostsRequestQueryUri] = None - name: Optional[BoostGetBoostsRequestQueryUri] = None - type: Optional[BoostGetBoostsRequestQueryUri] = None - category: Optional[BoostGetBoostsRequestQueryUri] = None - meta: Optional[Dict[str, BoostGetBoostsRequestQueryUri]] = None - status: Optional[BoostGetBoostsRequestQueryStatus] = None - auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") - __properties: ClassVar[List[str]] = ["uri", "name", "type", "category", "meta", "status", "autoConnectRecipients"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - + """ - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) + # data type: BoostGetBoostsRequestQueryAnyOf + anyof_schema_1_validator: Optional[BoostGetBoostsRequestQueryAnyOf] = None + # data type: BoostGetBoostsRequestQueryAnyOfOrInner + anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryAnyOfOrInner] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostGetBoostsRequestQueryAnyOf, BoostGetBoostsRequestQueryAnyOfOrInner]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostGetBoostsRequestQueryAnyOf", "BoostGetBoostsRequestQueryAnyOfOrInner" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostGetBoostsRequestQuery.model_construct() + error_messages = [] + # validate data type: BoostGetBoostsRequestQueryAnyOf + if not isinstance(v, BoostGetBoostsRequestQueryAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryAnyOf`") + else: + return v + + # validate data type: BoostGetBoostsRequestQueryAnyOfOrInner + if not isinstance(v, BoostGetBoostsRequestQueryAnyOfOrInner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryAnyOfOrInner`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostGetBoostsRequestQuery with anyOf schemas: BoostGetBoostsRequestQueryAnyOf, BoostGetBoostsRequestQueryAnyOfOrInner. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of uri - if self.uri: - _dict['uri'] = self.uri.to_dict() - # override the default output from pydantic by calling `to_dict()` of name - if self.name: - _dict['name'] = self.name.to_dict() - # override the default output from pydantic by calling `to_dict()` of type - if self.type: - _dict['type'] = self.type.to_dict() - # override the default output from pydantic by calling `to_dict()` of category - if self.category: - _dict['category'] = self.category.to_dict() - # override the default output from pydantic by calling `to_dict()` of each value in meta (dict) - _field_dict = {} - if self.meta: - for _key_meta in self.meta: - if self.meta[_key_meta]: - _field_dict[_key_meta] = self.meta[_key_meta].to_dict() - _dict['meta'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of status - if self.status: - _dict['status'] = self.status.to_dict() - return _dict + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQuery from a dict""" - if obj is None: + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostGetBoostsRequestQueryAnyOf] = None + try: + instance.actual_instance = BoostGetBoostsRequestQueryAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryAnyOfOrInner] = None + try: + instance.actual_instance = BoostGetBoostsRequestQueryAnyOfOrInner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostGetBoostsRequestQuery with anyOf schemas: BoostGetBoostsRequestQueryAnyOf, BoostGetBoostsRequestQueryAnyOfOrInner. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostsRequestQueryAnyOf, BoostGetBoostsRequestQueryAnyOfOrInner]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "uri": BoostGetBoostsRequestQueryUri.from_dict(obj["uri"]) if obj.get("uri") is not None else None, - "name": BoostGetBoostsRequestQueryUri.from_dict(obj["name"]) if obj.get("name") is not None else None, - "type": BoostGetBoostsRequestQueryUri.from_dict(obj["type"]) if obj.get("type") is not None else None, - "category": BoostGetBoostsRequestQueryUri.from_dict(obj["category"]) if obj.get("category") is not None else None, - "meta": dict( - (_k, BoostGetBoostsRequestQueryUri.from_dict(_v)) - for _k, _v in obj["meta"].items() - ) - if obj.get("meta") is not None - else None, - "status": BoostGetBoostsRequestQueryStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, - "autoConnectRecipients": obj.get("autoConnectRecipients") - }) - return _obj + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of.py new file mode 100644 index 0000000000..51d4d557bf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostsRequestQueryAnyOf(BaseModel): + """ + BoostGetBoostsRequestQueryAnyOf + """ # noqa: E501 + var_or: List[BoostGetBoostsRequestQueryAnyOfOrInner] = Field(alias="$or") + __properties: ClassVar[List[str]] = ["$or"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostsRequestQueryAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_or (list) + _items = [] + if self.var_or: + for _item_var_or in self.var_or: + if _item_var_or: + _items.append(_item_var_or.to_dict()) + _dict['$or'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostsRequestQueryAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$or": [BoostGetBoostsRequestQueryAnyOfOrInner.from_dict(_item) for _item in obj["$or"]] if obj.get("$or") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner.py new file mode 100644 index 0000000000..e81309fa69 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status import BoostGetBoostsRequestQueryAnyOfOrInnerStatus +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetBoostsRequestQueryAnyOfOrInner(BaseModel): + """ + BoostGetBoostsRequestQueryAnyOfOrInner + """ # noqa: E501 + uri: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + type: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + category: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + meta: Optional[Dict[str, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement]] = None + status: Optional[BoostGetBoostsRequestQueryAnyOfOrInnerStatus] = None + auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") + __properties: ClassVar[List[str]] = ["uri", "name", "type", "category", "meta", "status", "autoConnectRecipients"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetBoostsRequestQueryAnyOfOrInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of uri + if self.uri: + _dict['uri'] = self.uri.to_dict() + # override the default output from pydantic by calling `to_dict()` of name + if self.name: + _dict['name'] = self.name.to_dict() + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of category + if self.category: + _dict['category'] = self.category.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in meta (dict) + _field_dict = {} + if self.meta: + for _key_meta in self.meta: + if self.meta[_key_meta]: + _field_dict[_key_meta] = self.meta[_key_meta].to_dict() + _dict['meta'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetBoostsRequestQueryAnyOfOrInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["uri"]) if obj.get("uri") is not None else None, + "name": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["name"]) if obj.get("name") is not None else None, + "type": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["type"]) if obj.get("type") is not None else None, + "category": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["category"]) if obj.get("category") is not None else None, + "meta": dict( + (_k, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(_v)) + for _k, _v in obj["meta"].items() + ) + if obj.get("meta") is not None + else None, + "status": BoostGetBoostsRequestQueryAnyOfOrInnerStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "autoConnectRecipients": obj.get("autoConnectRecipients") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status.py similarity index 74% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status.py index 8b7c36bcc2..7653ce594b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status.py @@ -19,27 +19,27 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_get_boosts_request_query_status_any_of import BoostGetBoostsRequestQueryStatusAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status_any_of import BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTGETBOOSTSREQUESTQUERYSTATUS_ANY_OF_SCHEMAS = ["BoostGetBoostsRequestQueryStatusAnyOf", "str"] +BOOSTGETBOOSTSREQUESTQUERYANYOFORINNERSTATUS_ANY_OF_SCHEMAS = ["BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf", "str"] -class BoostGetBoostsRequestQueryStatus(BaseModel): +class BoostGetBoostsRequestQueryAnyOfOrInnerStatus(BaseModel): """ - BoostGetBoostsRequestQueryStatus + BoostGetBoostsRequestQueryAnyOfOrInnerStatus """ # data type: str anyof_schema_1_validator: Optional[StrictStr] = None - # data type: BoostGetBoostsRequestQueryStatusAnyOf - anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryStatusAnyOf] = None + # data type: BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf + anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostGetBoostsRequestQueryStatusAnyOf, str]] = None + actual_instance: Optional[Union[BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf, str]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostGetBoostsRequestQueryStatusAnyOf", "str" } + any_of_schemas: Set[str] = { "BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf", "str" } model_config = { "validate_assignment": True, @@ -58,7 +58,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = BoostGetBoostsRequestQueryStatus.model_construct() + instance = BoostGetBoostsRequestQueryAnyOfOrInnerStatus.model_construct() error_messages = [] # validate data type: str try: @@ -66,15 +66,15 @@ def actual_instance_must_validate_anyof(cls, v): return v except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # validate data type: BoostGetBoostsRequestQueryStatusAnyOf - if not isinstance(v, BoostGetBoostsRequestQueryStatusAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryStatusAnyOf`") + # validate data type: BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf + if not isinstance(v, BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostGetBoostsRequestQueryStatus with anyOf schemas: BoostGetBoostsRequestQueryStatusAnyOf, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostGetBoostsRequestQueryAnyOfOrInnerStatus with anyOf schemas: BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf, str. Details: " + ", ".join(error_messages)) else: return v @@ -96,16 +96,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryStatusAnyOf] = None + # anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf] = None try: - instance.actual_instance = BoostGetBoostsRequestQueryStatusAnyOf.from_json(json_str) + instance.actual_instance = BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostGetBoostsRequestQueryStatus with anyOf schemas: BoostGetBoostsRequestQueryStatusAnyOf, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostGetBoostsRequestQueryAnyOfOrInnerStatus with anyOf schemas: BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf, str. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostsRequestQueryStatusAnyOf, str]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf, str]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status_any_of.py similarity index 88% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status_any_of.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status_any_of.py index 7d1df4f040..c6006d6886 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_status_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_any_of_or_inner_status_any_of.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class BoostGetBoostsRequestQueryStatusAnyOf(BaseModel): +class BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf(BaseModel): """ - BoostGetBoostsRequestQueryStatusAnyOf + BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf """ # noqa: E501 var_in: List[StrictStr] = Field(alias="$in") __properties: ClassVar[List[str]] = ["$in"] @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryStatusAnyOf from a JSON string""" + """Create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryStatusAnyOf from a dict""" + """Create an instance of BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf from a dict""" if obj is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response.py index ff73af467a..041c197b4d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response.py @@ -30,6 +30,7 @@ class BoostGetChildrenProfileManagers200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[BoostGetChildrenProfileManagers200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [BoostGetChildrenProfileManagers200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response_records_inner.py index 83828a9535..b4d99efc6a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers200_response_records_inner.py @@ -26,15 +26,16 @@ class BoostGetChildrenProfileManagers200ResponseRecordsInner(BaseModel): """ BoostGetChildrenProfileManagers200ResponseRecordsInner """ # noqa: E501 - id: StrictStr - created: StrictStr + id: Optional[StrictStr] + created: Optional[StrictStr] display_name: Optional[StrictStr] = Field(default='', alias="displayName") short_bio: Optional[StrictStr] = Field(default='', alias="shortBio") bio: Optional[StrictStr] = '' email: Optional[StrictStr] = None image: Optional[StrictStr] = None hero_image: Optional[StrictStr] = Field(default=None, alias="heroImage") - did: StrictStr + did: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "created", "displayName", "shortBio", "bio", "email", "image", "heroImage", "did"] model_config = ConfigDict( @@ -67,8 +68,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -76,6 +79,41 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if created (nullable) is None + # and model_fields_set contains the field + if self.created is None and "created" in self.model_fields_set: + _dict['created'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if hero_image (nullable) is None + # and model_fields_set contains the field + if self.hero_image is None and "hero_image" in self.model_fields_set: + _dict['heroImage'] = None + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + return _dict @classmethod @@ -98,6 +136,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "heroImage": obj.get("heroImage"), "did": obj.get("did") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request.py index 3d017d1497..e21c405fe0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request.py @@ -30,7 +30,7 @@ class BoostGetChildrenProfileManagersRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetChildrenProfileManagersRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query"] @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request_query.py index 599146dd3b..5f36ec846b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_children_profile_managers_request_query.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from typing import Optional, Set from typing_extensions import Self @@ -27,11 +27,11 @@ class BoostGetChildrenProfileManagersRequestQuery(BaseModel): """ BoostGetChildrenProfileManagersRequestQuery """ # noqa: E501 - id: Optional[BoostGetBoostsRequestQueryUri] = None - display_name: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="displayName") - short_bio: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="shortBio") - bio: Optional[BoostGetBoostsRequestQueryUri] = None - email: Optional[BoostGetBoostsRequestQueryUri] = None + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + display_name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="displayName") + short_bio: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="shortBio") + bio: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + email: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None __properties: ClassVar[List[str]] = ["id", "displayName", "shortBio", "bio", "email"] model_config = ConfigDict( @@ -100,11 +100,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "id": BoostGetBoostsRequestQueryUri.from_dict(obj["id"]) if obj.get("id") is not None else None, - "displayName": BoostGetBoostsRequestQueryUri.from_dict(obj["displayName"]) if obj.get("displayName") is not None else None, - "shortBio": BoostGetBoostsRequestQueryUri.from_dict(obj["shortBio"]) if obj.get("shortBio") is not None else None, - "bio": BoostGetBoostsRequestQueryUri.from_dict(obj["bio"]) if obj.get("bio") is not None else None, - "email": BoostGetBoostsRequestQueryUri.from_dict(obj["email"]) if obj.get("email") is not None else None + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None, + "displayName": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["displayName"]) if obj.get("displayName") is not None else None, + "shortBio": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["shortBio"]) if obj.get("shortBio") is not None else None, + "bio": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["bio"]) if obj.get("bio") is not None else None, + "email": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["email"]) if obj.get("email") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_connected_boost_recipients_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_connected_boost_recipients_request.py index 0ebe65d293..ba010eb1c8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_connected_boost_recipients_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_connected_boost_recipients_request.py @@ -76,6 +76,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_familial_boosts_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_familial_boosts_request.py index e0d3930911..f896658a5a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_familial_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_familial_boosts_request.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery from typing import Optional, Set from typing_extensions import Self @@ -30,10 +31,10 @@ class BoostGetFamilialBoostsRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[BoostGetBoostsRequestQuery] = None - parent_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="parentGenerations") - child_generations: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="childGenerations") + parent_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="parentGenerations") + child_generations: Optional[BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations] = Field(default=None, alias="childGenerations") include_extended_family: Optional[StrictBool] = Field(default=False, alias="includeExtendedFamily") __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query", "parentGenerations", "childGenerations", "includeExtendedFamily"] @@ -79,6 +80,27 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # override the default output from pydantic by calling `to_dict()` of parent_generations + if self.parent_generations: + _dict['parentGenerations'] = self.parent_generations.to_dict() + # override the default output from pydantic by calling `to_dict()` of child_generations + if self.child_generations: + _dict['childGenerations'] = self.child_generations.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -96,8 +118,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sort": obj.get("sort"), "uri": obj.get("uri"), "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, - "parentGenerations": obj.get("parentGenerations") if obj.get("parentGenerations") is not None else 1, - "childGenerations": obj.get("childGenerations") if obj.get("childGenerations") is not None else 1, + "parentGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["parentGenerations"]) if obj.get("parentGenerations") is not None else None, + "childGenerations": BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations.from_dict(obj["childGenerations"]) if obj.get("childGenerations") is not None else None, "includeExtendedFamily": obj.get("includeExtendedFamily") if obj.get("includeExtendedFamily") is not None else False }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response.py index ba08df05d3..22a2d90f87 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner import BoostGetBoostRecipients200ResponseInner +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner import BoostGetPaginatedBoostRecipients200ResponseRecordsInner from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class BoostGetPaginatedBoostRecipients200Response(BaseModel): """ # noqa: E501 cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") - records: List[BoostGetBoostRecipients200ResponseInner] + records: List[BoostGetPaginatedBoostRecipients200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -92,8 +105,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "cursor": obj.get("cursor"), "hasMore": obj.get("hasMore"), - "records": [BoostGetBoostRecipients200ResponseInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + "records": [BoostGetPaginatedBoostRecipients200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner.py new file mode 100644 index 0000000000..6a3de9c783 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipients200ResponseRecordsInner(BaseModel): + """ + BoostGetPaginatedBoostRecipients200ResponseRecordsInner + """ # noqa: E501 + to: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + var_from: StrictStr = Field(alias="from") + received: Optional[StrictStr] = None + uri: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["to", "from", "received", "uri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of to + if self.to: + _dict['to'] = self.to.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "to": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["to"]) if obj.get("to") is not None else None, + "from": obj.get("from"), + "received": obj.get("received"), + "uri": obj.get("uri") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to.py new file mode 100644 index 0000000000..8b32fa9828 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo(BaseModel): + """ + BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + """ # noqa: E501 + profile_id: Annotated[str, Field(min_length=3, strict=True, max_length=40)] = Field(description="Unique, URL-safe identifier for the profile.", alias="profileId") + display_name: StrictStr = Field(description="Human-readable display name for the profile.", alias="displayName") + short_bio: StrictStr = Field(description="Short bio for the profile.", alias="shortBio") + bio: StrictStr = Field(description="Longer bio for the profile.") + did: StrictStr = Field(description="Decentralized Identifier for the profile. (auto-assigned)") + is_private: Optional[StrictBool] = Field(default=None, description="Whether the profile is private or not and shows up in search results.", alias="isPrivate") + email: Optional[StrictStr] = Field(default=None, description="Contact email address for the profile. (deprecated)") + image: Optional[StrictStr] = Field(default=None, description="Profile image URL for the profile.") + hero_image: Optional[StrictStr] = Field(default=None, description="Hero image URL for the profile.", alias="heroImage") + website_link: Optional[StrictStr] = Field(default=None, description="Website link for the profile.", alias="websiteLink") + is_service_profile: Optional[StrictBool] = Field(default=False, description="Whether the profile is a service profile or not.", alias="isServiceProfile") + type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") + notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") + display: Optional[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") + role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") + dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "did", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] + + @field_validator('notifications_webhook') + def notifications_webhook_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of display + if self.display: + _dict['display'] = self.display.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profileId": obj.get("profileId"), + "displayName": obj.get("displayName") if obj.get("displayName") is not None else '', + "shortBio": obj.get("shortBio") if obj.get("shortBio") is not None else '', + "bio": obj.get("bio") if obj.get("bio") is not None else '', + "did": obj.get("did"), + "isPrivate": obj.get("isPrivate"), + "email": obj.get("email"), + "image": obj.get("image"), + "heroImage": obj.get("heroImage"), + "websiteLink": obj.get("websiteLink"), + "isServiceProfile": obj.get("isServiceProfile") if obj.get("isServiceProfile") is not None else False, + "type": obj.get("type"), + "notificationsWebhook": obj.get("notificationsWebhook"), + "display": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), + "role": obj.get("role") if obj.get("role") is not None else '', + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to_display.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to_display.py new file mode 100644 index 0000000000..cef32a4cfe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients200_response_records_inner_to_display.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay(BaseModel): + """ + Display settings for the profile. + """ # noqa: E501 + background_color: Optional[StrictStr] = Field(default=None, alias="backgroundColor") + background_image: Optional[StrictStr] = Field(default=None, alias="backgroundImage") + fade_background_image: Optional[StrictBool] = Field(default=None, alias="fadeBackgroundImage") + repeat_background_image: Optional[StrictBool] = Field(default=None, alias="repeatBackgroundImage") + font_color: Optional[StrictStr] = Field(default=None, alias="fontColor") + accent_color: Optional[StrictStr] = Field(default=None, alias="accentColor") + accent_font_color: Optional[StrictStr] = Field(default=None, alias="accentFontColor") + id_background_image: Optional[StrictStr] = Field(default=None, alias="idBackgroundImage") + fade_id_background_image: Optional[StrictBool] = Field(default=None, alias="fadeIdBackgroundImage") + id_background_color: Optional[StrictStr] = Field(default=None, alias="idBackgroundColor") + repeat_id_background_image: Optional[StrictBool] = Field(default=None, alias="repeatIdBackgroundImage") + __properties: ClassVar[List[str]] = ["backgroundColor", "backgroundImage", "fadeBackgroundImage", "repeatBackgroundImage", "fontColor", "accentColor", "accentFontColor", "idBackgroundImage", "fadeIdBackgroundImage", "idBackgroundColor", "repeatIdBackgroundImage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "backgroundColor": obj.get("backgroundColor"), + "backgroundImage": obj.get("backgroundImage"), + "fadeBackgroundImage": obj.get("fadeBackgroundImage"), + "repeatBackgroundImage": obj.get("repeatBackgroundImage"), + "fontColor": obj.get("fontColor"), + "accentColor": obj.get("accentColor"), + "accentFontColor": obj.get("accentFontColor"), + "idBackgroundImage": obj.get("idBackgroundImage"), + "fadeIdBackgroundImage": obj.get("fadeIdBackgroundImage"), + "idBackgroundColor": obj.get("idBackgroundColor"), + "repeatIdBackgroundImage": obj.get("repeatIdBackgroundImage") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request.py index aea768612f..e7d4d5fb1f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request.py @@ -30,7 +30,7 @@ class BoostGetPaginatedBoostRecipientsRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] include_unaccepted_boosts: Optional[StrictBool] = Field(default=True, alias="includeUnacceptedBoosts") query: Optional[BoostGetPaginatedBoostRecipientsRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "includeUnacceptedBoosts", "query"] @@ -77,6 +77,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request_query.py index 793612610e..6cdfcaa50d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_request_query.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from typing import Optional, Set from typing_extensions import Self @@ -27,14 +27,14 @@ class BoostGetPaginatedBoostRecipientsRequestQuery(BaseModel): """ BoostGetPaginatedBoostRecipientsRequestQuery """ # noqa: E501 - profile_id: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="profileId") - display_name: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="displayName") - short_bio: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="shortBio") - bio: Optional[BoostGetBoostsRequestQueryUri] = None - email: Optional[BoostGetBoostsRequestQueryUri] = None - website_link: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="websiteLink") + profile_id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="profileId") + display_name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="displayName") + short_bio: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="shortBio") + bio: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + email: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + website_link: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="websiteLink") is_service_profile: Optional[StrictBool] = Field(default=None, alias="isServiceProfile") - type: Optional[BoostGetBoostsRequestQueryUri] = None + type: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "email", "websiteLink", "isServiceProfile", "type"] model_config = ConfigDict( @@ -109,14 +109,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "profileId": BoostGetBoostsRequestQueryUri.from_dict(obj["profileId"]) if obj.get("profileId") is not None else None, - "displayName": BoostGetBoostsRequestQueryUri.from_dict(obj["displayName"]) if obj.get("displayName") is not None else None, - "shortBio": BoostGetBoostsRequestQueryUri.from_dict(obj["shortBio"]) if obj.get("shortBio") is not None else None, - "bio": BoostGetBoostsRequestQueryUri.from_dict(obj["bio"]) if obj.get("bio") is not None else None, - "email": BoostGetBoostsRequestQueryUri.from_dict(obj["email"]) if obj.get("email") is not None else None, - "websiteLink": BoostGetBoostsRequestQueryUri.from_dict(obj["websiteLink"]) if obj.get("websiteLink") is not None else None, + "profileId": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["profileId"]) if obj.get("profileId") is not None else None, + "displayName": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["displayName"]) if obj.get("displayName") is not None else None, + "shortBio": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["shortBio"]) if obj.get("shortBio") is not None else None, + "bio": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["bio"]) if obj.get("bio") is not None else None, + "email": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["email"]) if obj.get("email") is not None else None, + "websiteLink": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["websiteLink"]) if obj.get("websiteLink") is not None else None, "isServiceProfile": obj.get("isServiceProfile"), - "type": BoostGetBoostsRequestQueryUri.from_dict(obj["type"]) if obj.get("type") is not None else None + "type": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["type"]) if obj.get("type") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response.py new file mode 100644 index 0000000000..9a90b1dbe0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response_records_inner import BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipientsWithChildren200Response(BaseModel): + """ + BoostGetPaginatedBoostRecipientsWithChildren200Response + """ # noqa: E501 + cursor: Optional[StrictStr] = None + has_more: StrictBool = Field(alias="hasMore") + records: List[BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildren200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildren200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cursor": obj.get("cursor"), + "hasMore": obj.get("hasMore"), + "records": [BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response_records_inner.py new file mode 100644 index 0000000000..b32e0b90cb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children200_response_records_inner.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner(BaseModel): + """ + BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner + """ # noqa: E501 + to: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + var_from: Optional[StrictStr] = Field(alias="from") + received: Optional[StrictStr] = None + boost_uris: List[StrictStr] = Field(alias="boostUris") + credential_uris: Optional[List[StrictStr]] = Field(default=None, alias="credentialUris") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["to", "from", "received", "boostUris", "credentialUris"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of to + if self.to: + _dict['to'] = self.to.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if var_from (nullable) is None + # and model_fields_set contains the field + if self.var_from is None and "var_from" in self.model_fields_set: + _dict['from'] = None + + # set to None if received (nullable) is None + # and model_fields_set contains the field + if self.received is None and "received" in self.model_fields_set: + _dict['received'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "to": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["to"]) if obj.get("to") is not None else None, + "from": obj.get("from"), + "received": obj.get("received"), + "boostUris": obj.get("boostUris"), + "credentialUris": obj.get("credentialUris") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request.py new file mode 100644 index 0000000000..64c021c403 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery +from openapi_client.models.boost_get_paginated_boost_recipients_request_query import BoostGetPaginatedBoostRecipientsRequestQuery +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request_number_of_generations import BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetPaginatedBoostRecipientsWithChildrenRequest(BaseModel): + """ + BoostGetPaginatedBoostRecipientsWithChildrenRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = 25 + cursor: Optional[StrictStr] = None + sort: Optional[StrictStr] = None + uri: Optional[StrictStr] + include_unaccepted_boosts: Optional[StrictBool] = Field(default=True, alias="includeUnacceptedBoosts") + number_of_generations: Optional[BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations] = Field(default=None, alias="numberOfGenerations") + boost_query: Optional[BoostGetBoostsRequestQuery] = Field(default=None, alias="boostQuery") + profile_query: Optional[BoostGetPaginatedBoostRecipientsRequestQuery] = Field(default=None, alias="profileQuery") + __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "includeUnacceptedBoosts", "numberOfGenerations", "boostQuery", "profileQuery"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of number_of_generations + if self.number_of_generations: + _dict['numberOfGenerations'] = self.number_of_generations.to_dict() + # override the default output from pydantic by calling `to_dict()` of boost_query + if self.boost_query: + _dict['boostQuery'] = self.boost_query.to_dict() + # override the default output from pydantic by calling `to_dict()` of profile_query + if self.profile_query: + _dict['profileQuery'] = self.profile_query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetPaginatedBoostRecipientsWithChildrenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit") if obj.get("limit") is not None else 25, + "cursor": obj.get("cursor"), + "sort": obj.get("sort"), + "uri": obj.get("uri"), + "includeUnacceptedBoosts": obj.get("includeUnacceptedBoosts") if obj.get("includeUnacceptedBoosts") is not None else True, + "numberOfGenerations": BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.from_dict(obj["numberOfGenerations"]) if obj.get("numberOfGenerations") is not None else None, + "boostQuery": BoostGetBoostsRequestQuery.from_dict(obj["boostQuery"]) if obj.get("boostQuery") is not None else None, + "profileQuery": BoostGetPaginatedBoostRecipientsRequestQuery.from_dict(obj["profileQuery"]) if obj.get("profileQuery") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py new file mode 100644 index 0000000000..4cd68fac01 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTGETPAGINATEDBOOSTRECIPIENTSWITHCHILDRENREQUESTNUMBEROFGENERATIONS_ANY_OF_SCHEMAS = ["float"] + +class BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations(BaseModel): + """ + BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations + """ + + # data type: float + anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "float" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations.model_construct() + error_messages = [] + # validate data type: float + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations with anyOf schemas: float. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into float + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations with anyOf schemas: float. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response.py index 8967d39c2f..8ef5ab3105 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response.py @@ -30,6 +30,7 @@ class BoostGetPaginatedBoosts200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[BoostGetPaginatedBoosts200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [BoostGetPaginatedBoosts200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response_records_inner.py index 10b5504459..34f033d566 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts200_response_records_inner.py @@ -27,7 +27,7 @@ class BoostGetPaginatedBoosts200ResponseRecordsInner(BaseModel): """ BoostGetPaginatedBoosts200ResponseRecordsInner """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] name: Optional[StrictStr] = None type: Optional[StrictStr] = None category: Optional[StrictStr] = None @@ -35,8 +35,10 @@ class BoostGetPaginatedBoosts200ResponseRecordsInner(BaseModel): auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") meta: Optional[Dict[str, Any]] = None claim_permissions: Optional[BoostGetBoost200ResponseClaimPermissions] = Field(default=None, alias="claimPermissions") + default_permissions: Optional[BoostGetBoost200ResponseClaimPermissions] = Field(default=None, alias="defaultPermissions") allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") - __properties: ClassVar[List[str]] = ["uri", "name", "type", "category", "status", "autoConnectRecipients", "meta", "claimPermissions", "allowAnyoneToCreateChildren"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uri", "name", "type", "category", "status", "autoConnectRecipients", "meta", "claimPermissions", "defaultPermissions", "allowAnyoneToCreateChildren"] @field_validator('status') def status_validate_enum(cls, value): @@ -78,8 +80,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -90,6 +94,34 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of claim_permissions if self.claim_permissions: _dict['claimPermissions'] = self.claim_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + return _dict @classmethod @@ -110,8 +142,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "autoConnectRecipients": obj.get("autoConnectRecipients"), "meta": obj.get("meta"), "claimPermissions": BoostGetBoost200ResponseClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None, + "defaultPermissions": BoostGetBoost200ResponseClaimPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None, "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts_request.py index 8c0d796041..d9766d7964 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_paginated_boosts_request.py @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner.py new file mode 100644 index 0000000000..cf131dc0ff --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_framework import BoostGetSkillsAvailableForBoost200ResponseInnerFramework +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_skills_inner import BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetSkillsAvailableForBoost200ResponseInner(BaseModel): + """ + BoostGetSkillsAvailableForBoost200ResponseInner + """ # noqa: E501 + framework: BoostGetSkillsAvailableForBoost200ResponseInnerFramework + skills: List[BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["framework", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of framework + if self.framework: + _dict['framework'] = self.framework.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "framework": BoostGetSkillsAvailableForBoost200ResponseInnerFramework.from_dict(obj["framework"]) if obj.get("framework") is not None else None, + "skills": [BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_framework.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_framework.py new file mode 100644 index 0000000000..bdede74578 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_framework.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetSkillsAvailableForBoost200ResponseInnerFramework(BaseModel): + """ + BoostGetSkillsAvailableForBoost200ResponseInnerFramework + """ # noqa: E501 + id: Optional[StrictStr] + name: Optional[StrictStr] + description: Optional[StrictStr] = None + image: Optional[StrictStr] = None + source_uri: Optional[StrictStr] = Field(default=None, alias="sourceURI") + status: StrictStr + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name", "description", "image", "sourceURI", "status", "createdAt", "updatedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerFramework from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerFramework from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "image": obj.get("image"), + "sourceURI": obj.get("sourceURI"), + "status": obj.get("status") if obj.get("status") is not None else 'active', + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_skills_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_skills_inner.py new file mode 100644 index 0000000000..4a8862b00f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_skills_available_for_boost200_response_inner_skills_inner.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner(BaseModel): + """ + BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner + """ # noqa: E501 + id: Optional[StrictStr] + statement: Optional[StrictStr] + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: StrictStr + status: StrictStr + framework_id: Optional[StrictStr] = Field(default=None, alias="frameworkId") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "frameworkId"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if statement (nullable) is None + # and model_fields_set contains the field + if self.statement is None and "statement" in self.model_fields_set: + _dict['statement'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if code (nullable) is None + # and model_fields_set contains the field + if self.code is None and "code" in self.model_fields_set: + _dict['code'] = None + + # set to None if icon (nullable) is None + # and model_fields_set contains the field + if self.icon is None and "icon" in self.model_fields_set: + _dict['icon'] = None + + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type") if obj.get("type") is not None else 'skill', + "status": obj.get("status") if obj.get("status") is not None else 'active', + "frameworkId": obj.get("frameworkId") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_make_boost_parent_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_make_boost_parent_request.py index 43c262de58..d5043c8550 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_make_boost_parent_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_make_boost_parent_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BoostMakeBoostParentRequest(BaseModel): """ BoostMakeBoostParentRequest """ # noqa: E501 - parent_uri: StrictStr = Field(alias="parentUri") - child_uri: StrictStr = Field(alias="childUri") + parent_uri: Optional[StrictStr] = Field(alias="parentUri") + child_uri: Optional[StrictStr] = Field(alias="childUri") __properties: ClassVar[List[str]] = ["parentUri", "childUri"] model_config = ConfigDict( @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if parent_uri (nullable) is None + # and model_fields_set contains the field + if self.parent_uri is None and "parent_uri" in self.model_fields_set: + _dict['parentUri'] = None + + # set to None if child_uri (nullable) is None + # and model_fields_set contains the field + if self.child_uri is None and "child_uri" in self.model_fields_set: + _dict['childUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_admin_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_admin_request.py new file mode 100644 index 0000000000..a147f248bc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_admin_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BoostRemoveBoostAdminRequest(BaseModel): + """ + BoostRemoveBoostAdminRequest + """ # noqa: E501 + uri: StrictStr + profile_id: StrictStr = Field(alias="profileId") + __properties: ClassVar[List[str]] = ["uri", "profileId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostRemoveBoostAdminRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostRemoveBoostAdminRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "profileId": obj.get("profileId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_parent_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_parent_request.py new file mode 100644 index 0000000000..6e0bb1e08e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_remove_boost_parent_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BoostRemoveBoostParentRequest(BaseModel): + """ + BoostRemoveBoostParentRequest + """ # noqa: E501 + parent_uri: StrictStr = Field(alias="parentUri") + child_uri: StrictStr = Field(alias="childUri") + __properties: ClassVar[List[str]] = ["parentUri", "childUri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostRemoveBoostParentRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostRemoveBoostParentRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parentUri": obj.get("parentUri"), + "childUri": obj.get("childUri") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response.py new file mode 100644 index 0000000000..2bf8b5edc6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_search_skills_available_for_boost200_response_records_inner import BoostSearchSkillsAvailableForBoost200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoost200Response(BaseModel): + """ + BoostSearchSkillsAvailableForBoost200Response + """ # noqa: E501 + records: List[BoostSearchSkillsAvailableForBoost200ResponseRecordsInner] + has_more: StrictBool = Field(alias="hasMore") + cursor: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["records", "hasMore", "cursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoost200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoost200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "records": [BoostSearchSkillsAvailableForBoost200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None, + "hasMore": obj.get("hasMore"), + "cursor": obj.get("cursor") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response_records_inner.py new file mode 100644 index 0000000000..f20d5781ca --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost200_response_records_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoost200ResponseRecordsInner(BaseModel): + """ + BoostSearchSkillsAvailableForBoost200ResponseRecordsInner + """ # noqa: E501 + id: StrictStr + statement: StrictStr + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: StrictStr + status: StrictStr + framework_id: Optional[StrictStr] = Field(default=None, alias="frameworkId") + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "frameworkId"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoost200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoost200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type") if obj.get("type") is not None else 'skill', + "status": obj.get("status") if obj.get("status") is not None else 'active', + "frameworkId": obj.get("frameworkId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request.py new file mode 100644 index 0000000000..933aa73c7d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_search_skills_available_for_boost_request_query import BoostSearchSkillsAvailableForBoostRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequest(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequest + """ # noqa: E501 + uri: Optional[StrictStr] + query: BoostSearchSkillsAvailableForBoostRequestQuery + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = 50 + cursor: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["uri", "query", "limit", "cursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "query": BoostSearchSkillsAvailableForBoostRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, + "limit": obj.get("limit") if obj.get("limit") is not None else 50, + "cursor": obj.get("cursor") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query.py new file mode 100644 index 0000000000..1672c690ae --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERY_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1"] + +class BoostSearchSkillsAvailableForBoostRequestQuery(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQuery + """ + + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQuery.model_construct() + error_messages = [] + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOf`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQuery with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQuery with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of.py new file mode 100644 index 0000000000..19f09a7775 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + """ # noqa: E501 + var_or: List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner] = Field(alias="$or") + __properties: ClassVar[List[str]] = ["$or"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_or (list) + _items = [] + if self.var_or: + for _item_var_or in self.var_or: + if _item_var_or: + _items.append(_item_var_or.to_dict()) + _dict['$or'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$or": [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner.from_dict(_item) for _item in obj["$or"]] if obj.get("$or") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of1.py new file mode 100644 index 0000000000..1c2b4975d0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of1.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + """ # noqa: E501 + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + statement: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + description: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + code: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + type: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + status: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus] = None + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "type", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + # override the default output from pydantic by calling `to_dict()` of statement + if self.statement: + _dict['statement'] = self.statement.to_dict() + # override the default output from pydantic by calling `to_dict()` of description + if self.description: + _dict['description'] = self.description.to_dict() + # override the default output from pydantic by calling `to_dict()` of code + if self.code: + _dict['code'] = self.code.to_dict() + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None, + "statement": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["statement"]) if obj.get("statement") is not None else None, + "description": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["description"]) if obj.get("description") is not None else None, + "code": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["code"]) if obj.get("code") is not None else None, + "type": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["type"]) if obj.get("type") is not None else None, + "status": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner.py new file mode 100644 index 0000000000..a0aa5e6160 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner + """ # noqa: E501 + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId] = None + statement: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + description: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + code: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + type: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + status: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus] = None + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "type", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + # override the default output from pydantic by calling `to_dict()` of statement + if self.statement: + _dict['statement'] = self.statement.to_dict() + # override the default output from pydantic by calling `to_dict()` of description + if self.description: + _dict['description'] = self.description.to_dict() + # override the default output from pydantic by calling `to_dict()` of code + if self.code: + _dict['code'] = self.code.to_dict() + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.from_dict(obj["id"]) if obj.get("id") is not None else None, + "statement": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["statement"]) if obj.get("statement") is not None else None, + "description": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["description"]) if obj.get("description") is not None else None, + "code": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["code"]) if obj.get("code") is not None else None, + "type": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["type"]) if obj.get("type") is not None else None, + "status": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py new file mode 100644 index 0000000000..b30de10e6f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERID_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId + """ + + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId.model_construct() + error_messages = [] + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py new file mode 100644 index 0000000000..e554c5a5af --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOF_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + """ + + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf.model_construct() + error_messages = [] + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py new file mode 100644 index 0000000000..aa6596f7cf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + """ # noqa: E501 + var_or: List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner] = Field(alias="$or") + __properties: ClassVar[List[str]] = ["$or"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_or (list) + _items = [] + if self.var_or: + for _item_var_or in self.var_or: + if _item_var_or: + _items.append(_item_var_or.to_dict()) + _dict['$or'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$or": [BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.from_dict(_item) for _item in obj["$or"]] if obj.get("$or") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py new file mode 100644 index 0000000000..1f03557f78 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOF1ORINNER_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + """ + + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.model_construct() + error_messages = [] + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py new file mode 100644 index 0000000000..62f511cc77 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOF1ORINNERANYOF_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf", "str"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py new file mode 100644 index 0000000000..3c2b4bde6b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + """ # noqa: E501 + regex: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex = Field(alias="$regex") + __properties: ClassVar[List[str]] = ["$regex"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of regex + if self.regex: + _dict['$regex'] = self.regex.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$regex": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.from_dict(obj["$regex"]) if obj.get("$regex") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py new file mode 100644 index 0000000000..dc4865e7c4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOF1ORINNERANYOF1REGEX_ANY_OF_SCHEMAS = ["str"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: str + anyof_schema_2_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py similarity index 83% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of_any_of.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py index 3481228a90..b561707531 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class BoostGetBoostsRequestQueryUriAnyOfAnyOf(BaseModel): +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf(BaseModel): """ - BoostGetBoostsRequestQueryUriAnyOfAnyOf + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf """ # noqa: E501 var_in: List[StrictStr] = Field(alias="$in") __properties: ClassVar[List[str]] = ["$in"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryUriAnyOfAnyOf from a JSON string""" + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryUriAnyOfAnyOf from a dict""" + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf from a dict""" if obj is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py new file mode 100644 index 0000000000..efa95d6fc0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOFANYOF_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf", "str"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py new file mode 100644 index 0000000000..0c9341b143 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + """ # noqa: E501 + regex: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex = Field(alias="$regex") + __properties: ClassVar[List[str]] = ["$regex"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of regex + if self.regex: + _dict['$regex'] = self.regex.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$regex": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.from_dict(obj["$regex"]) if obj.get("$regex") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner_service_endpoint.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py similarity index 76% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner_service_endpoint.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py index 2b49eea77b..30ef317276 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner_service_endpoint.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py @@ -18,28 +18,27 @@ import pprint import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from typing_extensions import Annotated +from typing import Optional from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -DIDMETADATAADDDIDMETADATAREQUESTSERVICEINNERSERVICEENDPOINT_ANY_OF_SCHEMAS = ["List[object]", "object"] +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERIDANYOFANYOF1REGEX_ANY_OF_SCHEMAS = ["str"] -class DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint(BaseModel): +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex(BaseModel): """ - DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex """ - # data type: object - anyof_schema_1_validator: Optional[Any] = None - # data type: List[object] - anyof_schema_2_validator: Optional[Annotated[List[Any], Field(min_length=1)]] = None + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: str + anyof_schema_2_validator: Optional[StrictStr] = None if TYPE_CHECKING: - actual_instance: Optional[Union[List[object], object]] = None + actual_instance: Optional[Union[str]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "List[object]", "object" } + any_of_schemas: Set[str] = { "str" } model_config = { "validate_assignment": True, @@ -58,15 +57,15 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.model_construct() + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex.model_construct() error_messages = [] - # validate data type: object + # validate data type: str try: instance.anyof_schema_1_validator = v return v except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # validate data type: List[object] + # validate data type: str try: instance.anyof_schema_2_validator = v return v @@ -74,7 +73,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint with anyOf schemas: List[object], object. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex with anyOf schemas: str. Details: " + ", ".join(error_messages)) else: return v @@ -87,7 +86,7 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # deserialize data into object + # deserialize data into str try: # validation instance.anyof_schema_1_validator = json.loads(json_str) @@ -96,7 +95,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[object] + # deserialize data into str try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -108,7 +107,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint with anyOf schemas: List[object], object. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex with anyOf schemas: str. Details: " + ", ".join(error_messages)) else: return instance @@ -122,7 +121,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], object]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], str]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py new file mode 100644 index 0000000000..0a4f88afbf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + """ # noqa: E501 + var_in: List[Optional[StrictStr]] = Field(alias="$in") + __properties: ClassVar[List[str]] = ["$in"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$in": obj.get("$in") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py new file mode 100644 index 0000000000..ed185098a2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERSTATEMENT_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + """ + + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1", "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.model_construct() + error_messages = [] + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py new file mode 100644 index 0000000000..d75f624b87 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSEARCHSKILLSAVAILABLEFORBOOSTREQUESTQUERYANYOFORINNERSTATUS_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf", "str"] + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py new file mode 100644 index 0000000000..11356ab1e9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf(BaseModel): + """ + BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + """ # noqa: E501 + var_in: List[StrictStr] = Field(alias="$in") + __properties: ClassVar[List[str]] = ["$in"] + + @field_validator('var_in') + def var_in_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['active', 'archived']): + raise ValueError("each list item must be one of ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$in": obj.get("$in") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send200_response.py new file mode 100644 index 0000000000..89817c3ddb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send200_response.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSend200Response(BaseModel): + """ + BoostSend200Response + """ # noqa: E501 + type: StrictStr + credential_uri: Optional[StrictStr] = Field(alias="credentialUri") + uri: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "credentialUri", "uri"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['boost']): + raise ValueError("must be one of enum values ('boost')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSend200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if credential_uri (nullable) is None + # and model_fields_set contains the field + if self.credential_uri is None and "credential_uri" in self.model_fields_set: + _dict['credentialUri'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSend200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "credentialUri": obj.get("credentialUri"), + "uri": obj.get("uri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request.py index 5e0e8d86ee..c38522717c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request.py @@ -28,7 +28,7 @@ class BoostSendBoostRequest(BaseModel): """ BoostSendBoostRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] credential: BoostSendBoostRequestCredential options: Optional[BoostSendBoostRequestOptions] = None __properties: ClassVar[List[str]] = ["uri", "credential", "options"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of options if self.options: _dict['options'] = self.options.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of.py index a61c0eee3d..783d7e6944 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of.py @@ -38,7 +38,7 @@ class BoostSendBoostRequestCredentialAnyOf(BaseModel): """ # noqa: E501 context: List[BoostSendBoostRequestCredentialAnyOfContextInner] = Field(alias="@context") id: Optional[StrictStr] = None - type: Annotated[List[StrictStr], Field(min_length=1)] + type: Annotated[List[Optional[StrictStr]], Field(min_length=1)] issuer: BoostSendBoostRequestCredentialAnyOfIssuer credential_subject: BoostSendBoostRequestCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfRefreshService] = Field(default=None, alias="refreshService") @@ -137,6 +137,41 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if issuance_date (nullable) is None + # and model_fields_set contains the field + if self.issuance_date is None and "issuance_date" in self.model_fields_set: + _dict['issuanceDate'] = None + + # set to None if expiration_date (nullable) is None + # and model_fields_set contains the field + if self.expiration_date is None and "expiration_date" in self.model_fields_set: + _dict['expirationDate'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if valid_from (nullable) is None + # and model_fields_set contains the field + if self.valid_from is None and "valid_from" in self.model_fields_set: + _dict['validFrom'] = None + + # set to None if valid_until (nullable) is None + # and model_fields_set contains the field + if self.valid_until is None and "valid_until" in self.model_fields_set: + _dict['validUntil'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1.py index d96eb75541..ad87f92913 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1.py @@ -27,10 +27,10 @@ class BoostSendBoostRequestCredentialAnyOf1(BaseModel): """ BoostSendBoostRequestCredentialAnyOf1 """ # noqa: E501 - protected: StrictStr - iv: StrictStr - ciphertext: StrictStr - tag: StrictStr + protected: Optional[StrictStr] + iv: Optional[StrictStr] + ciphertext: Optional[StrictStr] + tag: Optional[StrictStr] aad: Optional[StrictStr] = None recipients: Optional[List[BoostSendBoostRequestCredentialAnyOf1RecipientsInner]] = None __properties: ClassVar[List[str]] = ["protected", "iv", "ciphertext", "tag", "aad", "recipients"] @@ -81,6 +81,31 @@ def to_dict(self) -> Dict[str, Any]: if _item_recipients: _items.append(_item_recipients.to_dict()) _dict['recipients'] = _items + # set to None if protected (nullable) is None + # and model_fields_set contains the field + if self.protected is None and "protected" in self.model_fields_set: + _dict['protected'] = None + + # set to None if iv (nullable) is None + # and model_fields_set contains the field + if self.iv is None and "iv" in self.model_fields_set: + _dict['iv'] = None + + # set to None if ciphertext (nullable) is None + # and model_fields_set contains the field + if self.ciphertext is None and "ciphertext" in self.model_fields_set: + _dict['ciphertext'] = None + + # set to None if tag (nullable) is None + # and model_fields_set contains the field + if self.tag is None and "tag" in self.model_fields_set: + _dict['tag'] = None + + # set to None if aad (nullable) is None + # and model_fields_set contains the field + if self.aad is None and "aad" in self.model_fields_set: + _dict['aad'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner.py index dcd50d8fd5..776f3ef5cd 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of1_recipients_inner_header import BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeader from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class BoostSendBoostRequestCredentialAnyOf1RecipientsInner(BaseModel): BoostSendBoostRequestCredentialAnyOf1RecipientsInner """ # noqa: E501 header: BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeader - encrypted_key: StrictStr + encrypted_key: Optional[StrictStr] __properties: ClassVar[List[str]] = ["header", "encrypted_key"] model_config = ConfigDict( @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of header if self.header: _dict['header'] = self.header.to_dict() + # set to None if encrypted_key (nullable) is None + # and model_fields_set contains the field + if self.encrypted_key is None and "encrypted_key" in self.model_fields_set: + _dict['encrypted_key'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header.py index 88a938b3c9..0d2c39c31a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header.py @@ -27,9 +27,9 @@ class BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeader(BaseModel): """ BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeader """ # noqa: E501 - alg: StrictStr - iv: StrictStr - tag: StrictStr + alg: Optional[StrictStr] + iv: Optional[StrictStr] + tag: Optional[StrictStr] epk: Optional[BoostSendBoostRequestCredentialAnyOf1RecipientsInnerHeaderEpk] = None kid: Optional[StrictStr] = None apv: Optional[StrictStr] = None @@ -78,6 +78,36 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of epk if self.epk: _dict['epk'] = self.epk.to_dict() + # set to None if alg (nullable) is None + # and model_fields_set contains the field + if self.alg is None and "alg" in self.model_fields_set: + _dict['alg'] = None + + # set to None if iv (nullable) is None + # and model_fields_set contains the field + if self.iv is None and "iv" in self.model_fields_set: + _dict['iv'] = None + + # set to None if tag (nullable) is None + # and model_fields_set contains the field + if self.tag is None and "tag" in self.model_fields_set: + _dict['tag'] = None + + # set to None if kid (nullable) is None + # and model_fields_set contains the field + if self.kid is None and "kid" in self.model_fields_set: + _dict['kid'] = None + + # set to None if apv (nullable) is None + # and model_fields_set contains the field + if self.apv is None and "apv" in self.model_fields_set: + _dict['apv'] = None + + # set to None if apu (nullable) is None + # and model_fields_set contains the field + if self.apu is None and "apu" in self.model_fields_set: + _dict['apu'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header_epk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header_epk.py index 58d759428f..25567fa3cf 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header_epk.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of1_recipients_inner_header_epk.py @@ -73,6 +73,36 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if kty (nullable) is None + # and model_fields_set contains the field + if self.kty is None and "kty" in self.model_fields_set: + _dict['kty'] = None + + # set to None if crv (nullable) is None + # and model_fields_set contains the field + if self.crv is None and "crv" in self.model_fields_set: + _dict['crv'] = None + + # set to None if x (nullable) is None + # and model_fields_set contains the field + if self.x is None and "x" in self.model_fields_set: + _dict['x'] = None + + # set to None if y (nullable) is None + # and model_fields_set contains the field + if self.y is None and "y" in self.model_fields_set: + _dict['y'] = None + + # set to None if n (nullable) is None + # and model_fields_set contains the field + if self.n is None and "n" in self.model_fields_set: + _dict['n'] = None + + # set to None if d (nullable) is None + # and model_fields_set contains the field + if self.d is None and "d" in self.model_fields_set: + _dict['d'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema.py index 216e607131..e12f5b596b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema.py @@ -20,11 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSCHEMA_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSCHEMA_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfCredentialSchema(BaseModel): """ @@ -33,13 +34,13 @@ class BoostSendBoostRequestCredentialAnyOfCredentialSchema(BaseModel): # data type: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -66,7 +67,7 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialSchema with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialSchema with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -93,7 +94,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +106,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialSchema with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialSchema with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of.py index 12f2cca00d..2aba82bb45 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf(BaseModel): """ BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf """ # noqa: E501 - id: StrictStr - type: StrictStr + id: Optional[StrictStr] + type: Optional[StrictStr] additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "type"] @@ -77,6 +77,16 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py similarity index 88% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status_any_of.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py index 2a7ef5c5d9..a0af99adda 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py @@ -22,14 +22,14 @@ from typing import Optional, Set from typing_extensions import Self -class BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf(BaseModel): +class BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner(BaseModel): """ - BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf + BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner """ # noqa: E501 - type: StrictStr id: StrictStr + type: StrictStr additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "id"] + __properties: ClassVar[List[str]] = ["id", "type"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from a JSON string""" + """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf from a dict""" + """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from a dict""" if obj is None: return None @@ -89,8 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "id": obj.get("id") + "id": obj.get("id"), + "type": obj.get("type") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status.py index 1bda9d87a6..ad7fc2a71d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_status.py @@ -19,27 +19,27 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status_any_of import BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSTATUS_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSTATUS_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfCredentialStatus(BaseModel): """ BoostSendBoostRequestCredentialAnyOfCredentialStatus """ - # data type: BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf - anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]] = None + # data type: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -60,13 +60,13 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = BoostSendBoostRequestCredentialAnyOfCredentialStatus.model_construct() error_messages = [] - # validate data type: BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf`") + # validate data type: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + if not isinstance(v, BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner`") else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +74,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialStatus with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialStatus with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -87,13 +87,13 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf] = None + # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf.from_json(json_str) + instance.actual_instance = BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +105,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialStatus with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialStatus with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject.py index 6cf165b9b1..4fdc61cc7c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject.py @@ -20,11 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSUBJECT_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFCREDENTIALSUBJECT_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfCredentialSubject(BaseModel): """ @@ -33,13 +34,13 @@ class BoostSendBoostRequestCredentialAnyOfCredentialSubject(BaseModel): # data type: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -66,7 +67,7 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -93,7 +94,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +106,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of.py index 44f78f3a39..af1eff905c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of.py @@ -76,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py similarity index 90% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use_any_of.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py index 2ade7b33da..13ebdcc538 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py @@ -22,14 +22,13 @@ from typing import Optional, Set from typing_extensions import Self -class BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf(BaseModel): +class BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner(BaseModel): """ - BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf + BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner """ # noqa: E501 - type: StrictStr id: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "id"] + __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from a JSON string""" + """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf from a dict""" + """Create an instance of BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner from a dict""" if obj is None: return None @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), "id": obj.get("id") }) # store additional fields in additional_properties diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence.py index a31d8be077..ded815b9e5 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence.py @@ -20,11 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFEVIDENCE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFEVIDENCE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfEvidence(BaseModel): """ @@ -33,13 +34,13 @@ class BoostSendBoostRequestCredentialAnyOfEvidence(BaseModel): # data type: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -66,7 +67,7 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -93,7 +94,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +106,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of.py index 723b608dd4..60fd2e8e1f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of.py @@ -17,9 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,10 +27,15 @@ class BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf(BaseModel): """ BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf """ # noqa: E501 - type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + name: Optional[StrictStr] = None + narrative: Optional[StrictStr] = None + description: Optional[StrictStr] = None + genre: Optional[StrictStr] = None + audience: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "id"] + __properties: ClassVar[List[str]] = ["id", "type", "name", "narrative", "description", "genre", "audience"] model_config = ConfigDict( populate_by_name=True, @@ -73,14 +78,41 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of type - if self.type: - _dict['type'] = self.type.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if narrative (nullable) is None + # and model_fields_set contains the field + if self.narrative is None and "narrative" in self.model_fields_set: + _dict['narrative'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if genre (nullable) is None + # and model_fields_set contains the field + if self.genre is None and "genre" in self.model_fields_set: + _dict['genre'] = None + + # set to None if audience (nullable) is None + # and model_fields_set contains the field + if self.audience is None and "audience" in self.model_fields_set: + _dict['audience'] = None + return _dict @classmethod @@ -93,8 +125,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, - "id": obj.get("id") + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name"), + "narrative": obj.get("narrative"), + "description": obj.get("description"), + "genre": obj.get("genre"), + "audience": obj.get("audience") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py new file mode 100644 index 0000000000..91ef200c4f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner(BaseModel): + """ + BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + name: Optional[StrictStr] = None + narrative: Optional[StrictStr] = None + description: Optional[StrictStr] = None + genre: Optional[StrictStr] = None + audience: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "name", "narrative", "description", "genre", "audience"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name"), + "narrative": obj.get("narrative"), + "description": obj.get("description"), + "genre": obj.get("genre"), + "audience": obj.get("audience") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of.py index c9b29a87c9..c4d058da88 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_image import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfImage from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInner @@ -38,7 +39,7 @@ class BoostSendBoostRequestCredentialAnyOfIssuerAnyOf(BaseModel): description: Optional[StrictStr] = None endorsement: Optional[List[Any]] = None image: Optional[BoostSendBoostRequestCredentialAnyOfIssuerAnyOfImage] = None - email: Optional[StrictStr] = None + email: Optional[Annotated[str, Field(strict=True)]] = None address: Optional[BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddress] = None other_identifier: Optional[List[BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInner]] = Field(default=None, alias="otherIdentifier") official: Optional[StrictStr] = None @@ -54,6 +55,16 @@ class BoostSendBoostRequestCredentialAnyOfIssuerAnyOf(BaseModel): additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "type", "name", "url", "phone", "description", "endorsement", "image", "email", "address", "otherIdentifier", "official", "parentOrg", "familyName", "givenName", "additionalName", "patronymicName", "honorificPrefix", "honorificSuffix", "familyNamePrefix", "dateOfBirth"] + @field_validator('email') + def email_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -116,11 +127,81 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if url (nullable) is None + # and model_fields_set contains the field + if self.url is None and "url" in self.model_fields_set: + _dict['url'] = None + + # set to None if phone (nullable) is None + # and model_fields_set contains the field + if self.phone is None and "phone" in self.model_fields_set: + _dict['phone'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if official (nullable) is None + # and model_fields_set contains the field + if self.official is None and "official" in self.model_fields_set: + _dict['official'] = None + # set to None if parent_org (nullable) is None # and model_fields_set contains the field if self.parent_org is None and "parent_org" in self.model_fields_set: _dict['parentOrg'] = None + # set to None if family_name (nullable) is None + # and model_fields_set contains the field + if self.family_name is None and "family_name" in self.model_fields_set: + _dict['familyName'] = None + + # set to None if given_name (nullable) is None + # and model_fields_set contains the field + if self.given_name is None and "given_name" in self.model_fields_set: + _dict['givenName'] = None + + # set to None if additional_name (nullable) is None + # and model_fields_set contains the field + if self.additional_name is None and "additional_name" in self.model_fields_set: + _dict['additionalName'] = None + + # set to None if patronymic_name (nullable) is None + # and model_fields_set contains the field + if self.patronymic_name is None and "patronymic_name" in self.model_fields_set: + _dict['patronymicName'] = None + + # set to None if honorific_prefix (nullable) is None + # and model_fields_set contains the field + if self.honorific_prefix is None and "honorific_prefix" in self.model_fields_set: + _dict['honorificPrefix'] = None + + # set to None if honorific_suffix (nullable) is None + # and model_fields_set contains the field + if self.honorific_suffix is None and "honorific_suffix" in self.model_fields_set: + _dict['honorificSuffix'] = None + + # set to None if family_name_prefix (nullable) is None + # and model_fields_set contains the field + if self.family_name_prefix is None and "family_name_prefix" in self.model_fields_set: + _dict['familyNamePrefix'] = None + + # set to None if date_of_birth (nullable) is None + # and model_fields_set contains the field + if self.date_of_birth is None and "date_of_birth" in self.model_fields_set: + _dict['dateOfBirth'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address.py index 2938086588..522092c4ed 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address.py @@ -84,6 +84,41 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of geo if self.geo: _dict['geo'] = self.geo.to_dict() + # set to None if address_country (nullable) is None + # and model_fields_set contains the field + if self.address_country is None and "address_country" in self.model_fields_set: + _dict['addressCountry'] = None + + # set to None if address_country_code (nullable) is None + # and model_fields_set contains the field + if self.address_country_code is None and "address_country_code" in self.model_fields_set: + _dict['addressCountryCode'] = None + + # set to None if address_region (nullable) is None + # and model_fields_set contains the field + if self.address_region is None and "address_region" in self.model_fields_set: + _dict['addressRegion'] = None + + # set to None if address_locality (nullable) is None + # and model_fields_set contains the field + if self.address_locality is None and "address_locality" in self.model_fields_set: + _dict['addressLocality'] = None + + # set to None if street_address (nullable) is None + # and model_fields_set contains the field + if self.street_address is None and "street_address" in self.model_fields_set: + _dict['streetAddress'] = None + + # set to None if post_office_box_number (nullable) is None + # and model_fields_set contains the field + if self.post_office_box_number is None and "post_office_box_number" in self.model_fields_set: + _dict['postOfficeBoxNumber'] = None + + # set to None if postal_code (nullable) is None + # and model_fields_set contains the field + if self.postal_code is None and "postal_code" in self.model_fields_set: + _dict['postalCode'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address_geo.py index fc20ddacf7..6d563ebdb6 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address_geo.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_address_geo.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Union +from typing import Any, ClassVar, Dict, List, Optional, Union from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressGeo(BaseModel): """ # noqa: E501 type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType latitude: Union[StrictFloat, StrictInt] - longitude: Union[StrictFloat, StrictInt] + longitude: Optional[Union[StrictFloat, StrictInt]] __properties: ClassVar[List[str]] = ["type", "latitude", "longitude"] model_config = ConfigDict( @@ -74,6 +74,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of type if self.type: _dict['type'] = self.type.to_dict() + # set to None if longitude (nullable) is None + # and model_fields_set contains the field + if self.longitude is None and "longitude" in self.model_fields_set: + _dict['longitude'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_image_any_of.py index 0bb28ee691..fc754850d0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_image_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_image_any_of.py @@ -26,8 +26,8 @@ class BoostSendBoostRequestCredentialAnyOfIssuerAnyOfImageAnyOf(BaseModel): """ BoostSendBoostRequestCredentialAnyOfIssuerAnyOfImageAnyOf """ # noqa: E501 - id: StrictStr - type: StrictStr + id: Optional[StrictStr] + type: Optional[StrictStr] caption: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "type", "caption"] @@ -70,6 +70,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if caption (nullable) is None + # and model_fields_set contains the field + if self.caption is None and "caption" in self.model_fields_set: + _dict['caption'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner.py index 7c88ff028d..26b5e4a07b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType from typing import Optional, Set @@ -29,7 +29,7 @@ class BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInner(BaseMo BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInner """ # noqa: E501 type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType - identifier: StrictStr + identifier: Optional[StrictStr] identifier_type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType = Field(alias="identifierType") __properties: ClassVar[List[str]] = ["type", "identifier", "identifierType"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of identifier_type if self.identifier_type: _dict['identifierType'] = self.identifier_type.to_dict() + # set to None if identifier (nullable) is None + # and model_fields_set contains the field + if self.identifier is None and "identifier" in self.model_fields_set: + _dict['identifier'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof.py index ca49bd81aa..282ee352fa 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof.py @@ -20,11 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of import BoostSendBoostRequestCredentialAnyOfProofAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFPROOF_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfProofAnyOf", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFPROOF_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfProofAnyOf", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfProof(BaseModel): """ @@ -33,13 +34,13 @@ class BoostSendBoostRequestCredentialAnyOfProof(BaseModel): # data type: BoostSendBoostRequestCredentialAnyOfProofAnyOf anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfProofAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfProofAnyOf", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfProofAnyOf", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -66,7 +67,7 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -93,7 +94,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfProofAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +106,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfProofAnyOf, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of.py index 391e2079b5..a7901d8f81 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of.py @@ -26,13 +26,13 @@ class BoostSendBoostRequestCredentialAnyOfProofAnyOf(BaseModel): """ BoostSendBoostRequestCredentialAnyOfProofAnyOf """ # noqa: E501 - type: StrictStr - created: StrictStr + type: Optional[StrictStr] + created: Optional[StrictStr] challenge: Optional[StrictStr] = None domain: Optional[StrictStr] = None nonce: Optional[StrictStr] = None - proof_purpose: StrictStr = Field(alias="proofPurpose") - verification_method: StrictStr = Field(alias="verificationMethod") + proof_purpose: Optional[StrictStr] = Field(alias="proofPurpose") + verification_method: Optional[StrictStr] = Field(alias="verificationMethod") jws: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "created", "challenge", "domain", "nonce", "proofPurpose", "verificationMethod", "jws"] @@ -83,6 +83,46 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if created (nullable) is None + # and model_fields_set contains the field + if self.created is None and "created" in self.model_fields_set: + _dict['created'] = None + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + + # set to None if domain (nullable) is None + # and model_fields_set contains the field + if self.domain is None and "domain" in self.model_fields_set: + _dict['domain'] = None + + # set to None if nonce (nullable) is None + # and model_fields_set contains the field + if self.nonce is None and "nonce" in self.model_fields_set: + _dict['nonce'] = None + + # set to None if proof_purpose (nullable) is None + # and model_fields_set contains the field + if self.proof_purpose is None and "proof_purpose" in self.model_fields_set: + _dict['proofPurpose'] = None + + # set to None if verification_method (nullable) is None + # and model_fields_set contains the field + if self.verification_method is None and "verification_method" in self.model_fields_set: + _dict['verificationMethod'] = None + + # set to None if jws (nullable) is None + # and model_fields_set contains the field + if self.jws is None and "jws" in self.model_fields_set: + _dict['jws'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of1_inner.py new file mode 100644 index 0000000000..6cd4b48311 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_proof_any_of1_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner(BaseModel): + """ + BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + """ # noqa: E501 + type: StrictStr + created: StrictStr + challenge: Optional[StrictStr] = None + domain: Optional[StrictStr] = None + nonce: Optional[StrictStr] = None + proof_purpose: StrictStr = Field(alias="proofPurpose") + verification_method: StrictStr = Field(alias="verificationMethod") + jws: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "created", "challenge", "domain", "nonce", "proofPurpose", "verificationMethod", "jws"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "created": obj.get("created"), + "challenge": obj.get("challenge"), + "domain": obj.get("domain"), + "nonce": obj.get("nonce"), + "proofPurpose": obj.get("proofPurpose"), + "verificationMethod": obj.get("verificationMethod"), + "jws": obj.get("jws") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service.py index 5b72315430..4ce11a402c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service.py @@ -20,11 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFREFRESHSERVICE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFREFRESHSERVICE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfRefreshService(BaseModel): """ @@ -33,13 +34,13 @@ class BoostSendBoostRequestCredentialAnyOfRefreshService(BaseModel): # data type: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -66,7 +67,7 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfRefreshService with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfRefreshService with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -93,7 +94,7 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +106,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfRefreshService with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfRefreshService with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of.py index dc8d2aeb91..7189ff33aa 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of.py @@ -27,7 +27,7 @@ class BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf(BaseModel): BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf """ # noqa: E501 id: Optional[StrictStr] = None - type: StrictStr + type: Optional[StrictStr] additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "type"] @@ -77,6 +77,16 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py new file mode 100644 index 0000000000..8074df0c9d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner(BaseModel): + """ + BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner + """ # noqa: E501 + id: Optional[StrictStr] = None + type: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use.py index 68b8ae5809..ad173eeedf 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_request_credential_any_of_terms_of_use.py @@ -19,27 +19,27 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use_any_of import BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTSENDBOOSTREQUESTCREDENTIALANYOFTERMSOFUSE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf", "List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]"] +BOOSTSENDBOOSTREQUESTCREDENTIALANYOFTERMSOFUSE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]"] class BoostSendBoostRequestCredentialAnyOfTermsOfUse(BaseModel): """ BoostSendBoostRequestCredentialAnyOfTermsOfUse """ - # data type: BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf - anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]] = None + # data type: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner + anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf, List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]]] = None + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf", "List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]" } model_config = { "validate_assignment": True, @@ -60,13 +60,13 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = BoostSendBoostRequestCredentialAnyOfTermsOfUse.model_construct() error_messages = [] - # validate data type: BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf`") + # validate data type: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner + if not isinstance(v, BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner`") else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf] + # validate data type: List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +74,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfTermsOfUse with anyOf schemas: BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf, List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BoostSendBoostRequestCredentialAnyOfTermsOfUse with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return v @@ -87,13 +87,13 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf] = None + # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf.from_json(json_str) + instance.actual_instance = BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf] + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +105,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfTermsOfUse with anyOf schemas: BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf, List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BoostSendBoostRequestCredentialAnyOfTermsOfUse with anyOf schemas: BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf, List[BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request.py index 294c8b1dd6..cea034093a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request.py @@ -28,7 +28,7 @@ class BoostSendBoostViaSigningAuthorityRequest(BaseModel): """ BoostSendBoostViaSigningAuthorityRequest """ # noqa: E501 - boost_uri: StrictStr = Field(alias="boostUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") signing_authority: BoostSendBoostViaSigningAuthorityRequestSigningAuthority = Field(alias="signingAuthority") options: Optional[BoostSendBoostRequestOptions] = None __properties: ClassVar[List[str]] = ["boostUri", "signingAuthority", "options"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of options if self.options: _dict['options'] = self.options.to_dict() + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request_signing_authority.py index 06a353238c..352e0d218f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request_signing_authority.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_boost_via_signing_authority_request_signing_authority.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BoostSendBoostViaSigningAuthorityRequestSigningAuthority(BaseModel): """ BoostSendBoostViaSigningAuthorityRequestSigningAuthority """ # noqa: E501 - name: StrictStr - endpoint: StrictStr + name: Optional[StrictStr] + endpoint: Optional[StrictStr] __properties: ClassVar[List[str]] = ["name", "endpoint"] model_config = ConfigDict( @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request.py new file mode 100644 index 0000000000..642d026e3f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template import BoostSendRequestTemplate +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequest(BaseModel): + """ + BoostSendRequest + """ # noqa: E501 + type: StrictStr + recipient: Optional[StrictStr] + contract_uri: Optional[StrictStr] = Field(default=None, alias="contractUri") + template_uri: Optional[StrictStr] = Field(default=None, alias="templateUri") + template: Optional[BoostSendRequestTemplate] = None + signed_credential: Optional[BoostSendRequestTemplateCredentialAnyOf] = Field(default=None, alias="signedCredential") + __properties: ClassVar[List[str]] = ["type", "recipient", "contractUri", "templateUri", "template", "signedCredential"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['boost']): + raise ValueError("must be one of enum values ('boost')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of template + if self.template: + _dict['template'] = self.template.to_dict() + # override the default output from pydantic by calling `to_dict()` of signed_credential + if self.signed_credential: + _dict['signedCredential'] = self.signed_credential.to_dict() + # set to None if recipient (nullable) is None + # and model_fields_set contains the field + if self.recipient is None and "recipient" in self.model_fields_set: + _dict['recipient'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if template_uri (nullable) is None + # and model_fields_set contains the field + if self.template_uri is None and "template_uri" in self.model_fields_set: + _dict['templateUri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "recipient": obj.get("recipient"), + "contractUri": obj.get("contractUri"), + "templateUri": obj.get("templateUri"), + "template": BoostSendRequestTemplate.from_dict(obj["template"]) if obj.get("template") is not None else None, + "signedCredential": BoostSendRequestTemplateCredentialAnyOf.from_dict(obj["signedCredential"]) if obj.get("signedCredential") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template.py new file mode 100644 index 0000000000..fa1310280a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_request_template_claim_permissions import BoostSendRequestTemplateClaimPermissions +from openapi_client.models.boost_send_request_template_credential import BoostSendRequestTemplateCredential +from openapi_client.models.boost_send_request_template_default_permissions import BoostSendRequestTemplateDefaultPermissions +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplate(BaseModel): + """ + BoostSendRequestTemplate + """ # noqa: E501 + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None + category: Optional[StrictStr] = None + status: Optional[StrictStr] = None + auto_connect_recipients: Optional[StrictBool] = Field(default=None, alias="autoConnectRecipients") + meta: Optional[Dict[str, Any]] = None + default_permissions: Optional[BoostSendRequestTemplateDefaultPermissions] = Field(default=None, alias="defaultPermissions") + allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") + credential: BoostSendRequestTemplateCredential + claim_permissions: Optional[BoostSendRequestTemplateClaimPermissions] = Field(default=None, alias="claimPermissions") + skills: Optional[Annotated[List[BoostSendRequestTemplateSkillsInner], Field(min_length=1)]] = None + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "defaultPermissions", "allowAnyoneToCreateChildren", "credential", "claimPermissions", "skills"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['DRAFT', 'LIVE']): + raise ValueError("must be one of enum values ('DRAFT', 'LIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential + if self.credential: + _dict['credential'] = self.credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of claim_permissions + if self.claim_permissions: + _dict['claimPermissions'] = self.claim_permissions.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "category": obj.get("category"), + "status": obj.get("status"), + "autoConnectRecipients": obj.get("autoConnectRecipients"), + "meta": obj.get("meta"), + "defaultPermissions": BoostSendRequestTemplateDefaultPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None, + "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), + "credential": BoostSendRequestTemplateCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, + "claimPermissions": BoostSendRequestTemplateClaimPermissions.from_dict(obj["claimPermissions"]) if obj.get("claimPermissions") is not None else None, + "skills": [BoostSendRequestTemplateSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_claim_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_claim_permissions.py new file mode 100644 index 0000000000..c0fe51ccb8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_claim_permissions.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateClaimPermissions(BaseModel): + """ + BoostSendRequestTemplateClaimPermissions + """ # noqa: E501 + role: Optional[StrictStr] = None + can_edit: Optional[StrictBool] = Field(default=None, alias="canEdit") + can_issue: Optional[StrictBool] = Field(default=None, alias="canIssue") + can_revoke: Optional[StrictBool] = Field(default=None, alias="canRevoke") + can_manage_permissions: Optional[StrictBool] = Field(default=None, alias="canManagePermissions") + can_issue_children: Optional[StrictStr] = Field(default=None, alias="canIssueChildren") + can_create_children: Optional[StrictStr] = Field(default=None, alias="canCreateChildren") + can_edit_children: Optional[StrictStr] = Field(default=None, alias="canEditChildren") + can_revoke_children: Optional[StrictStr] = Field(default=None, alias="canRevokeChildren") + can_manage_children_permissions: Optional[StrictStr] = Field(default=None, alias="canManageChildrenPermissions") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") + can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") + __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateClaimPermissions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict['role'] = None + + # set to None if can_issue_children (nullable) is None + # and model_fields_set contains the field + if self.can_issue_children is None and "can_issue_children" in self.model_fields_set: + _dict['canIssueChildren'] = None + + # set to None if can_create_children (nullable) is None + # and model_fields_set contains the field + if self.can_create_children is None and "can_create_children" in self.model_fields_set: + _dict['canCreateChildren'] = None + + # set to None if can_edit_children (nullable) is None + # and model_fields_set contains the field + if self.can_edit_children is None and "can_edit_children" in self.model_fields_set: + _dict['canEditChildren'] = None + + # set to None if can_revoke_children (nullable) is None + # and model_fields_set contains the field + if self.can_revoke_children is None and "can_revoke_children" in self.model_fields_set: + _dict['canRevokeChildren'] = None + + # set to None if can_manage_children_permissions (nullable) is None + # and model_fields_set contains the field + if self.can_manage_children_permissions is None and "can_manage_children_permissions" in self.model_fields_set: + _dict['canManageChildrenPermissions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateClaimPermissions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "canEdit": obj.get("canEdit"), + "canIssue": obj.get("canIssue"), + "canRevoke": obj.get("canRevoke"), + "canManagePermissions": obj.get("canManagePermissions"), + "canIssueChildren": obj.get("canIssueChildren"), + "canCreateChildren": obj.get("canCreateChildren"), + "canEditChildren": obj.get("canEditChildren"), + "canRevokeChildren": obj.get("canRevokeChildren"), + "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), + "canViewAnalytics": obj.get("canViewAnalytics") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential.py new file mode 100644 index 0000000000..b7c500a784 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of1 import BoostSendRequestTemplateCredentialAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIAL_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf1"] + +class BoostSendRequestTemplateCredential(BaseModel): + """ + BoostSendRequestTemplateCredential + """ + + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + # data type: BoostSendRequestTemplateCredentialAnyOf1 + anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredential.model_construct() + error_messages = [] + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") + else: + return v + + # validate data type: BoostSendRequestTemplateCredentialAnyOf1 + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + try: + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOf1] = None + try: + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of.py new file mode 100644 index 0000000000..602c5d38b9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus +from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOf(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOf + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + issuer: BoostSendRequestTemplateCredentialAnyOfIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") + issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") + expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") + credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + valid_from: Optional[StrictStr] = Field(default=None, alias="validFrom") + valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") + status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None + terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None + proof: BoostSendRequestTemplateCredentialAnyOfProof + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of issuer + if self.issuer: + _dict['issuer'] = self.issuer.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_subject + if self.credential_subject: + _dict['credentialSubject'] = self.credential_subject.to_dict() + # override the default output from pydantic by calling `to_dict()` of refresh_service + if self.refresh_service: + _dict['refreshService'] = self.refresh_service.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_schema + if self.credential_schema: + _dict['credentialSchema'] = self.credential_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_status + if self.credential_status: + _dict['credentialStatus'] = self.credential_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + # override the default output from pydantic by calling `to_dict()` of terms_of_use + if self.terms_of_use: + _dict['termsOfUse'] = self.terms_of_use.to_dict() + # override the default output from pydantic by calling `to_dict()` of evidence + if self.evidence: + _dict['evidence'] = self.evidence.to_dict() + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "issuer": BoostSendRequestTemplateCredentialAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuanceDate": obj.get("issuanceDate"), + "expirationDate": obj.get("expirationDate"), + "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "validFrom": obj.get("validFrom"), + "validUntil": obj.get("validUntil"), + "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None, + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of1.py new file mode 100644 index 0000000000..3cb2514d09 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of1.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus +from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOf1(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOf1 + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + issuer: BoostSendRequestTemplateCredentialAnyOfIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") + issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") + expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") + credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + valid_from: Optional[StrictStr] = Field(default=None, alias="validFrom") + valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") + status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None + terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of issuer + if self.issuer: + _dict['issuer'] = self.issuer.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_subject + if self.credential_subject: + _dict['credentialSubject'] = self.credential_subject.to_dict() + # override the default output from pydantic by calling `to_dict()` of refresh_service + if self.refresh_service: + _dict['refreshService'] = self.refresh_service.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_schema + if self.credential_schema: + _dict['credentialSchema'] = self.credential_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_status + if self.credential_status: + _dict['credentialStatus'] = self.credential_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + # override the default output from pydantic by calling `to_dict()` of terms_of_use + if self.terms_of_use: + _dict['termsOfUse'] = self.terms_of_use.to_dict() + # override the default output from pydantic by calling `to_dict()` of evidence + if self.evidence: + _dict['evidence'] = self.evidence.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if issuance_date (nullable) is None + # and model_fields_set contains the field + if self.issuance_date is None and "issuance_date" in self.model_fields_set: + _dict['issuanceDate'] = None + + # set to None if expiration_date (nullable) is None + # and model_fields_set contains the field + if self.expiration_date is None and "expiration_date" in self.model_fields_set: + _dict['expirationDate'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if valid_from (nullable) is None + # and model_fields_set contains the field + if self.valid_from is None and "valid_from" in self.model_fields_set: + _dict['validFrom'] = None + + # set to None if valid_until (nullable) is None + # and model_fields_set contains the field + if self.valid_until is None and "valid_until" in self.model_fields_set: + _dict['validUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "issuer": BoostSendRequestTemplateCredentialAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuanceDate": obj.get("issuanceDate"), + "expirationDate": obj.get("expirationDate"), + "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "validFrom": obj.get("validFrom"), + "validUntil": obj.get("validUntil"), + "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_context_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_context_inner.py new file mode 100644 index 0000000000..cb27c0d5d2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_context_inner.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, Dict, Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFCONTEXTINNER_ANY_OF_SCHEMAS = ["Dict[str, object]", "str"] + +class BoostSendRequestTemplateCredentialAnyOfContextInner(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfContextInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: Dict[str, object] + anyof_schema_2_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Dict[str, object], str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "Dict[str, object]", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfContextInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Dict[str, object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfContextInner with anyOf schemas: Dict[str, object], str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Dict[str, object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfContextInner with anyOf schemas: Dict[str, object], str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Dict[str, object], str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_credential_subject.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_credential_subject.py new file mode 100644 index 0000000000..6931b7b595 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_credential_subject.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFCREDENTIALSUBJECT_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]"] + +class BoostSendRequestTemplateCredentialAnyOfCredentialSubject(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfCredentialSubject + """ + + # data type: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner + anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfCredentialSubject.model_construct() + error_messages = [] + # validate data type: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner + if not isinstance(v, BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner`") + else: + return v + + # validate data type: List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] = None + try: + instance.actual_instance = BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfCredentialSubject with anyOf schemas: BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_evidence.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_evidence.py new file mode 100644 index 0000000000..2dd7d29615 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_evidence.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFEVIDENCE_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]"] + +class BoostSendRequestTemplateCredentialAnyOfEvidence(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfEvidence + """ + + # data type: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfEvidence.model_construct() + error_messages = [] + # validate data type: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + if not isinstance(v, BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner`") + else: + return v + + # validate data type: List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] = None + try: + instance.actual_instance = BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfEvidence with anyOf schemas: BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer.py new file mode 100644 index 0000000000..664f6f3902 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFISSUER_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf", "str"] + +class BoostSendRequestTemplateCredentialAnyOfIssuer(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuer + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfIssuer.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfIssuer with anyOf schemas: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf] = None + try: + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfIssuer with anyOf schemas: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of.py new file mode 100644 index 0000000000..b160fc013d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + name: Optional[StrictStr] = None + url: Optional[StrictStr] = None + phone: Optional[StrictStr] = None + description: Optional[StrictStr] = None + endorsement: Optional[List[Any]] = None + image: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage] = None + email: Optional[Annotated[str, Field(strict=True)]] = None + address: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress] = None + other_identifier: Optional[List[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner]] = Field(default=None, alias="otherIdentifier") + official: Optional[StrictStr] = None + parent_org: Optional[Any] = Field(default=None, alias="parentOrg") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + additional_name: Optional[StrictStr] = Field(default=None, alias="additionalName") + patronymic_name: Optional[StrictStr] = Field(default=None, alias="patronymicName") + honorific_prefix: Optional[StrictStr] = Field(default=None, alias="honorificPrefix") + honorific_suffix: Optional[StrictStr] = Field(default=None, alias="honorificSuffix") + family_name_prefix: Optional[StrictStr] = Field(default=None, alias="familyNamePrefix") + date_of_birth: Optional[StrictStr] = Field(default=None, alias="dateOfBirth") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "name", "url", "phone", "description", "endorsement", "image", "email", "address", "otherIdentifier", "official", "parentOrg", "familyName", "givenName", "additionalName", "patronymicName", "honorificPrefix", "honorificSuffix", "familyNamePrefix", "dateOfBirth"] + + @field_validator('email') + def email_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of image + if self.image: + _dict['image'] = self.image.to_dict() + # override the default output from pydantic by calling `to_dict()` of address + if self.address: + _dict['address'] = self.address.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in other_identifier (list) + _items = [] + if self.other_identifier: + for _item_other_identifier in self.other_identifier: + if _item_other_identifier: + _items.append(_item_other_identifier.to_dict()) + _dict['otherIdentifier'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if parent_org (nullable) is None + # and model_fields_set contains the field + if self.parent_org is None and "parent_org" in self.model_fields_set: + _dict['parentOrg'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "name": obj.get("name"), + "url": obj.get("url"), + "phone": obj.get("phone"), + "description": obj.get("description"), + "endorsement": obj.get("endorsement"), + "image": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.from_dict(obj["image"]) if obj.get("image") is not None else None, + "email": obj.get("email"), + "address": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress.from_dict(obj["address"]) if obj.get("address") is not None else None, + "otherIdentifier": [BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner.from_dict(_item) for _item in obj["otherIdentifier"]] if obj.get("otherIdentifier") is not None else None, + "official": obj.get("official"), + "parentOrg": obj.get("parentOrg"), + "familyName": obj.get("familyName"), + "givenName": obj.get("givenName"), + "additionalName": obj.get("additionalName"), + "patronymicName": obj.get("patronymicName"), + "honorificPrefix": obj.get("honorificPrefix"), + "honorificSuffix": obj.get("honorificSuffix"), + "familyNamePrefix": obj.get("familyNamePrefix"), + "dateOfBirth": obj.get("dateOfBirth") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address.py new file mode 100644 index 0000000000..6a8a3f950c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + address_country: Optional[StrictStr] = Field(default=None, alias="addressCountry") + address_country_code: Optional[StrictStr] = Field(default=None, alias="addressCountryCode") + address_region: Optional[StrictStr] = Field(default=None, alias="addressRegion") + address_locality: Optional[StrictStr] = Field(default=None, alias="addressLocality") + street_address: Optional[StrictStr] = Field(default=None, alias="streetAddress") + post_office_box_number: Optional[StrictStr] = Field(default=None, alias="postOfficeBoxNumber") + postal_code: Optional[StrictStr] = Field(default=None, alias="postalCode") + geo: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo] = None + __properties: ClassVar[List[str]] = ["type", "addressCountry", "addressCountryCode", "addressRegion", "addressLocality", "streetAddress", "postOfficeBoxNumber", "postalCode", "geo"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of geo + if self.geo: + _dict['geo'] = self.geo.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "addressCountry": obj.get("addressCountry"), + "addressCountryCode": obj.get("addressCountryCode"), + "addressRegion": obj.get("addressRegion"), + "addressLocality": obj.get("addressLocality"), + "streetAddress": obj.get("streetAddress"), + "postOfficeBoxNumber": obj.get("postOfficeBoxNumber"), + "postalCode": obj.get("postalCode"), + "geo": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo.from_dict(obj["geo"]) if obj.get("geo") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..7b6342356d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + latitude: Union[StrictFloat, StrictInt] + longitude: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["type", "latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image.py new file mode 100644 index 0000000000..a00fb166b8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFISSUERANYOFIMAGE_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf", "str"] + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage with anyOf schemas: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf] = None + try: + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage with anyOf schemas: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..d0ae5fca3d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + """ # noqa: E501 + id: StrictStr + type: StrictStr + caption: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "type", "caption"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "caption": obj.get("caption") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..42078f310a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + identifier: StrictStr + identifier_type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType = Field(alias="identifierType") + __properties: ClassVar[List[str]] = ["type", "identifier", "identifierType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of identifier_type + if self.identifier_type: + _dict['identifierType'] = self.identifier_type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "identifier": obj.get("identifier"), + "identifierType": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.from_dict(obj["identifierType"]) if obj.get("identifierType") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py new file mode 100644 index 0000000000..b9188c0d75 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFISSUERANYOFOTHERIDENTIFIERINNERIDENTIFIERTYPE_ANY_OF_SCHEMAS = ["str"] + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: str + anyof_schema_2_validator: Optional[StrictStr] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_type.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_type.py new file mode 100644 index 0000000000..b6b87fb7a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_issuer_any_of_type.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFISSUERANYOFTYPE_ANY_OF_SCHEMAS = ["List[str]", "str"] + +class BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: List[str] + anyof_schema_2_validator: Optional[Annotated[List[StrictStr], Field(min_length=1)]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[str], str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[str]", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[str] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType with anyOf schemas: List[str], str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[str] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType with anyOf schemas: List[str], str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[str], str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_proof.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_proof.py new file mode 100644 index 0000000000..f18981140c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_credential_any_of_proof.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +BOOSTSENDREQUESTTEMPLATECREDENTIALANYOFPROOF_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]"] + +class BoostSendRequestTemplateCredentialAnyOfProof(BaseModel): + """ + BoostSendRequestTemplateCredentialAnyOfProof + """ + + # data type: BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] = None + # data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] + anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner", "List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = BoostSendRequestTemplateCredentialAnyOfProof.model_construct() + error_messages = [] + # validate data type: BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + if not isinstance(v, BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner`") + else: + return v + + # validate data type: List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in BoostSendRequestTemplateCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] = None + try: + instance.actual_instance = BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into BoostSendRequestTemplateCredentialAnyOfProof with anyOf schemas: BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner, List[BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_default_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_default_permissions.py new file mode 100644 index 0000000000..2e582b89aa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_default_permissions.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateDefaultPermissions(BaseModel): + """ + BoostSendRequestTemplateDefaultPermissions + """ # noqa: E501 + role: Optional[StrictStr] + can_edit: StrictBool = Field(alias="canEdit") + can_issue: StrictBool = Field(alias="canIssue") + can_revoke: StrictBool = Field(alias="canRevoke") + can_manage_permissions: StrictBool = Field(alias="canManagePermissions") + can_issue_children: Optional[StrictStr] = Field(alias="canIssueChildren") + can_create_children: Optional[StrictStr] = Field(alias="canCreateChildren") + can_edit_children: Optional[StrictStr] = Field(alias="canEditChildren") + can_revoke_children: Optional[StrictStr] = Field(alias="canRevokeChildren") + can_manage_children_permissions: Optional[StrictStr] = Field(alias="canManageChildrenPermissions") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") + can_view_analytics: StrictBool = Field(alias="canViewAnalytics") + __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateDefaultPermissions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict['role'] = None + + # set to None if can_issue_children (nullable) is None + # and model_fields_set contains the field + if self.can_issue_children is None and "can_issue_children" in self.model_fields_set: + _dict['canIssueChildren'] = None + + # set to None if can_create_children (nullable) is None + # and model_fields_set contains the field + if self.can_create_children is None and "can_create_children" in self.model_fields_set: + _dict['canCreateChildren'] = None + + # set to None if can_edit_children (nullable) is None + # and model_fields_set contains the field + if self.can_edit_children is None and "can_edit_children" in self.model_fields_set: + _dict['canEditChildren'] = None + + # set to None if can_revoke_children (nullable) is None + # and model_fields_set contains the field + if self.can_revoke_children is None and "can_revoke_children" in self.model_fields_set: + _dict['canRevokeChildren'] = None + + # set to None if can_manage_children_permissions (nullable) is None + # and model_fields_set contains the field + if self.can_manage_children_permissions is None and "can_manage_children_permissions" in self.model_fields_set: + _dict['canManageChildrenPermissions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateDefaultPermissions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "canEdit": obj.get("canEdit"), + "canIssue": obj.get("canIssue"), + "canRevoke": obj.get("canRevoke"), + "canManagePermissions": obj.get("canManagePermissions"), + "canIssueChildren": obj.get("canIssueChildren"), + "canCreateChildren": obj.get("canCreateChildren"), + "canEditChildren": obj.get("canEditChildren"), + "canRevokeChildren": obj.get("canRevokeChildren"), + "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), + "canViewAnalytics": obj.get("canViewAnalytics") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_skills_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_skills_inner.py new file mode 100644 index 0000000000..d375bc2c65 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_send_request_template_skills_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BoostSendRequestTemplateSkillsInner(BaseModel): + """ + BoostSendRequestTemplateSkillsInner + """ # noqa: E501 + framework_id: StrictStr = Field(alias="frameworkId") + id: StrictStr + __properties: ClassVar[List[str]] = ["frameworkId", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateSkillsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostSendRequestTemplateSkillsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworkId": obj.get("frameworkId"), + "id": obj.get("id") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request.py index e5385651bb..ee37fb0eb1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.boost_update_boost_permissions_request_updates import BoostUpdateBoostPermissionsRequestUpdates from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class BoostUpdateBoostPermissionsRequest(BaseModel): """ BoostUpdateBoostPermissionsRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] updates: BoostUpdateBoostPermissionsRequestUpdates __properties: ClassVar[List[str]] = ["uri", "updates"] @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of updates if self.updates: _dict['updates'] = self.updates.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request_updates.py index f3003bc432..45e934ac4d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request_updates.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_permissions_request_updates.py @@ -35,7 +35,7 @@ class BoostUpdateBoostPermissionsRequestUpdates(BaseModel): can_edit_children: Optional[StrictStr] = Field(default=None, alias="canEditChildren") can_revoke_children: Optional[StrictStr] = Field(default=None, alias="canRevokeChildren") can_manage_children_permissions: Optional[StrictStr] = Field(default=None, alias="canManageChildrenPermissions") - can_manage_children_profiles: Optional[StrictBool] = Field(default=False, alias="canManageChildrenProfiles") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") __properties: ClassVar[List[str]] = ["canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] @@ -78,6 +78,31 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if can_issue_children (nullable) is None + # and model_fields_set contains the field + if self.can_issue_children is None and "can_issue_children" in self.model_fields_set: + _dict['canIssueChildren'] = None + + # set to None if can_create_children (nullable) is None + # and model_fields_set contains the field + if self.can_create_children is None and "can_create_children" in self.model_fields_set: + _dict['canCreateChildren'] = None + + # set to None if can_edit_children (nullable) is None + # and model_fields_set contains the field + if self.can_edit_children is None and "can_edit_children" in self.model_fields_set: + _dict['canEditChildren'] = None + + # set to None if can_revoke_children (nullable) is None + # and model_fields_set contains the field + if self.can_revoke_children is None and "can_revoke_children" in self.model_fields_set: + _dict['canRevokeChildren'] = None + + # set to None if can_manage_children_permissions (nullable) is None + # and model_fields_set contains the field + if self.can_manage_children_permissions is None and "can_manage_children_permissions" in self.model_fields_set: + _dict['canManageChildrenPermissions'] = None + return _dict @classmethod @@ -99,7 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "canEditChildren": obj.get("canEditChildren"), "canRevokeChildren": obj.get("canRevokeChildren"), "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), - "canManageChildrenProfiles": obj.get("canManageChildrenProfiles") if obj.get("canManageChildrenProfiles") is not None else False, + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), "canViewAnalytics": obj.get("canViewAnalytics") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request.py index a07e52a7c8..aaa9861028 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.boost_update_boost_request_updates import BoostUpdateBoostRequestUpdates from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class BoostUpdateBoostRequest(BaseModel): """ BoostUpdateBoostRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] updates: BoostUpdateBoostRequestUpdates __properties: ClassVar[List[str]] = ["uri", "updates"] @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of updates if self.updates: _dict['updates'] = self.updates.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request_updates.py index c755b56b8a..496fd35a8c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request_updates.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_boost_request_updates.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_create_boost_request_claim_permissions import BoostCreateBoostRequestClaimPermissions from openapi_client.models.boost_create_boost_request_credential import BoostCreateBoostRequestCredential from typing import Optional, Set from typing_extensions import Self @@ -35,7 +36,8 @@ class BoostUpdateBoostRequestUpdates(BaseModel): meta: Optional[Dict[str, Any]] = None allow_anyone_to_create_children: Optional[StrictBool] = Field(default=None, alias="allowAnyoneToCreateChildren") credential: Optional[BoostCreateBoostRequestCredential] = None - __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "credential"] + default_permissions: Optional[BoostCreateBoostRequestClaimPermissions] = Field(default=None, alias="defaultPermissions") + __properties: ClassVar[List[str]] = ["name", "type", "category", "status", "autoConnectRecipients", "meta", "allowAnyoneToCreateChildren", "credential", "defaultPermissions"] @field_validator('status') def status_validate_enum(cls, value): @@ -89,6 +91,24 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of credential if self.credential: _dict['credential'] = self.credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_permissions + if self.default_permissions: + _dict['defaultPermissions'] = self.default_permissions.to_dict() + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + return _dict @classmethod @@ -108,7 +128,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "autoConnectRecipients": obj.get("autoConnectRecipients"), "meta": obj.get("meta"), "allowAnyoneToCreateChildren": obj.get("allowAnyoneToCreateChildren"), - "credential": BoostCreateBoostRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + "credential": BoostCreateBoostRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, + "defaultPermissions": BoostCreateBoostRequestClaimPermissions.from_dict(obj["defaultPermissions"]) if obj.get("defaultPermissions") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request.py new file mode 100644 index 0000000000..6751304829 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_update_other_boost_permissions_request_updates import BoostUpdateOtherBoostPermissionsRequestUpdates +from typing import Optional, Set +from typing_extensions import Self + +class BoostUpdateOtherBoostPermissionsRequest(BaseModel): + """ + BoostUpdateOtherBoostPermissionsRequest + """ # noqa: E501 + uri: StrictStr + updates: BoostUpdateOtherBoostPermissionsRequestUpdates + __properties: ClassVar[List[str]] = ["uri", "updates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostUpdateOtherBoostPermissionsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updates + if self.updates: + _dict['updates'] = self.updates.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostUpdateOtherBoostPermissionsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "uri": obj.get("uri"), + "updates": BoostUpdateOtherBoostPermissionsRequestUpdates.from_dict(obj["updates"]) if obj.get("updates") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request_updates.py new file mode 100644 index 0000000000..690147b0bb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_update_other_boost_permissions_request_updates.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BoostUpdateOtherBoostPermissionsRequestUpdates(BaseModel): + """ + BoostUpdateOtherBoostPermissionsRequestUpdates + """ # noqa: E501 + can_edit: Optional[StrictBool] = Field(default=None, alias="canEdit") + can_issue: Optional[StrictBool] = Field(default=None, alias="canIssue") + can_revoke: Optional[StrictBool] = Field(default=None, alias="canRevoke") + can_manage_permissions: Optional[StrictBool] = Field(default=None, alias="canManagePermissions") + can_issue_children: Optional[StrictStr] = Field(default=None, alias="canIssueChildren") + can_create_children: Optional[StrictStr] = Field(default=None, alias="canCreateChildren") + can_edit_children: Optional[StrictStr] = Field(default=None, alias="canEditChildren") + can_revoke_children: Optional[StrictStr] = Field(default=None, alias="canRevokeChildren") + can_manage_children_permissions: Optional[StrictStr] = Field(default=None, alias="canManageChildrenPermissions") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") + can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") + __properties: ClassVar[List[str]] = ["canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BoostUpdateOtherBoostPermissionsRequestUpdates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BoostUpdateOtherBoostPermissionsRequestUpdates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "canEdit": obj.get("canEdit"), + "canIssue": obj.get("canIssue"), + "canRevoke": obj.get("canRevoke"), + "canManagePermissions": obj.get("canManagePermissions"), + "canIssueChildren": obj.get("canIssueChildren"), + "canCreateChildren": obj.get("canCreateChildren"), + "canEditChildren": obj.get("canEditChildren"), + "canRevokeChildren": obj.get("canRevokeChildren"), + "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), + "canViewAnalytics": obj.get("canViewAnalytics") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook.py index 8adf506c23..867b0b8a9d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook.py @@ -19,11 +19,12 @@ from typing import Any, List, Optional from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of import ClaimHookCreateClaimHookRequestHookOneOf from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1 import ClaimHookCreateClaimHookRequestHookOneOf1 +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2 import ClaimHookCreateClaimHookRequestHookOneOf2 from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -CLAIMHOOKCREATECLAIMHOOKREQUESTHOOK_ONE_OF_SCHEMAS = ["ClaimHookCreateClaimHookRequestHookOneOf", "ClaimHookCreateClaimHookRequestHookOneOf1"] +CLAIMHOOKCREATECLAIMHOOKREQUESTHOOK_ONE_OF_SCHEMAS = ["ClaimHookCreateClaimHookRequestHookOneOf", "ClaimHookCreateClaimHookRequestHookOneOf1", "ClaimHookCreateClaimHookRequestHookOneOf2"] class ClaimHookCreateClaimHookRequestHook(BaseModel): """ @@ -33,8 +34,10 @@ class ClaimHookCreateClaimHookRequestHook(BaseModel): oneof_schema_1_validator: Optional[ClaimHookCreateClaimHookRequestHookOneOf] = None # data type: ClaimHookCreateClaimHookRequestHookOneOf1 oneof_schema_2_validator: Optional[ClaimHookCreateClaimHookRequestHookOneOf1] = None - actual_instance: Optional[Union[ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1]] = None - one_of_schemas: Set[str] = { "ClaimHookCreateClaimHookRequestHookOneOf", "ClaimHookCreateClaimHookRequestHookOneOf1" } + # data type: ClaimHookCreateClaimHookRequestHookOneOf2 + oneof_schema_3_validator: Optional[ClaimHookCreateClaimHookRequestHookOneOf2] = None + actual_instance: Optional[Union[ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2]] = None + one_of_schemas: Set[str] = { "ClaimHookCreateClaimHookRequestHookOneOf", "ClaimHookCreateClaimHookRequestHookOneOf1", "ClaimHookCreateClaimHookRequestHookOneOf2" } model_config = ConfigDict( validate_assignment=True, @@ -67,12 +70,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `ClaimHookCreateClaimHookRequestHookOneOf1`") else: match += 1 + # validate data type: ClaimHookCreateClaimHookRequestHookOneOf2 + if not isinstance(v, ClaimHookCreateClaimHookRequestHookOneOf2): + error_messages.append(f"Error! Input type `{type(v)}` is not `ClaimHookCreateClaimHookRequestHookOneOf2`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2. Details: " + ", ".join(error_messages)) else: return v @@ -99,13 +107,19 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into ClaimHookCreateClaimHookRequestHookOneOf2 + try: + instance.actual_instance = ClaimHookCreateClaimHookRequestHookOneOf2.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into ClaimHookCreateClaimHookRequestHook with oneOf schemas: ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +133,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], ClaimHookCreateClaimHookRequestHookOneOf, ClaimHookCreateClaimHookRequestHookOneOf1, ClaimHookCreateClaimHookRequestHookOneOf2]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1_data.py index acfba0aebb..fa9e28cc07 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1_data.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of1_data.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class ClaimHookCreateClaimHookRequestHookOneOf1Data(BaseModel): """ ClaimHookCreateClaimHookRequestHookOneOf1Data """ # noqa: E501 - claim_uri: StrictStr = Field(alias="claimUri") - target_uri: StrictStr = Field(alias="targetUri") + claim_uri: Optional[StrictStr] = Field(alias="claimUri") + target_uri: Optional[StrictStr] = Field(alias="targetUri") __properties: ClassVar[List[str]] = ["claimUri", "targetUri"] model_config = ConfigDict( @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if claim_uri (nullable) is None + # and model_fields_set contains the field + if self.claim_uri is None and "claim_uri" in self.model_fields_set: + _dict['claimUri'] = None + + # set to None if target_uri (nullable) is None + # and model_fields_set contains the field + if self.target_uri is None and "target_uri" in self.model_fields_set: + _dict['targetUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2.py new file mode 100644 index 0000000000..7ff51aaaec --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2_data import ClaimHookCreateClaimHookRequestHookOneOf2Data +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookCreateClaimHookRequestHookOneOf2(BaseModel): + """ + ClaimHookCreateClaimHookRequestHookOneOf2 + """ # noqa: E501 + type: StrictStr + data: ClaimHookCreateClaimHookRequestHookOneOf2Data + __properties: ClassVar[List[str]] = ["type", "data"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AUTO_CONNECT']): + raise ValueError("must be one of enum values ('AUTO_CONNECT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookCreateClaimHookRequestHookOneOf2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookCreateClaimHookRequestHookOneOf2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "data": ClaimHookCreateClaimHookRequestHookOneOf2Data.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2_data.py new file mode 100644 index 0000000000..98522a04d3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of2_data.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookCreateClaimHookRequestHookOneOf2Data(BaseModel): + """ + ClaimHookCreateClaimHookRequestHookOneOf2Data + """ # noqa: E501 + claim_uri: StrictStr = Field(alias="claimUri") + target_uri: StrictStr = Field(alias="targetUri") + __properties: ClassVar[List[str]] = ["claimUri", "targetUri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookCreateClaimHookRequestHookOneOf2Data from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookCreateClaimHookRequestHookOneOf2Data from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "claimUri": obj.get("claimUri"), + "targetUri": obj.get("targetUri") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of_data.py index 9dba002697..9ec90abd42 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of_data.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_create_claim_hook_request_hook_one_of_data.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.boost_create_boost_request_claim_permissions import BoostCreateBoostRequestClaimPermissions from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ClaimHookCreateClaimHookRequestHookOneOfData(BaseModel): """ ClaimHookCreateClaimHookRequestHookOneOfData """ # noqa: E501 - claim_uri: StrictStr = Field(alias="claimUri") - target_uri: StrictStr = Field(alias="targetUri") + claim_uri: Optional[StrictStr] = Field(alias="claimUri") + target_uri: Optional[StrictStr] = Field(alias="targetUri") permissions: BoostCreateBoostRequestClaimPermissions __properties: ClassVar[List[str]] = ["claimUri", "targetUri", "permissions"] @@ -74,6 +74,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of permissions if self.permissions: _dict['permissions'] = self.permissions.to_dict() + # set to None if claim_uri (nullable) is None + # and model_fields_set contains the field + if self.claim_uri is None and "claim_uri" in self.model_fields_set: + _dict['claimUri'] = None + + # set to None if target_uri (nullable) is None + # and model_fields_set contains the field + if self.target_uri is None and "target_uri" in self.model_fields_set: + _dict['targetUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_delete_claim_hook_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_delete_claim_hook_request.py index cd5daf8ca9..4e3a5f8ea4 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_delete_claim_hook_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_delete_claim_hook_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ClaimHookDeleteClaimHookRequest(BaseModel): """ ClaimHookDeleteClaimHookRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response.py index d7dc9181fc..1399b185fb 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response.py @@ -30,6 +30,7 @@ class ClaimHookGetClaimHooksForBoost200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ClaimHookGetClaimHooksForBoost200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ClaimHookGetClaimHooksForBoost200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner.py index 24efaa18d9..668f601329 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of1_data import ClaimHookCreateClaimHookRequestHookOneOf1Data +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data from typing import Optional, Set from typing_extensions import Self @@ -27,18 +27,18 @@ class ClaimHookGetClaimHooksForBoost200ResponseRecordsInner(BaseModel): """ ClaimHookGetClaimHooksForBoost200ResponseRecordsInner """ # noqa: E501 - id: StrictStr - created_at: StrictStr = Field(alias="createdAt") - updated_at: StrictStr = Field(alias="updatedAt") + id: Optional[StrictStr] + created_at: Optional[StrictStr] = Field(alias="createdAt") + updated_at: Optional[StrictStr] = Field(alias="updatedAt") type: StrictStr - data: ClaimHookCreateClaimHookRequestHookOneOf1Data + data: ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data __properties: ClassVar[List[str]] = ["id", "createdAt", "updatedAt", "type", "data"] @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ADD_ADMIN']): - raise ValueError("must be one of enum values ('ADD_ADMIN')") + if value not in set(['AUTO_CONNECT']): + raise ValueError("must be one of enum values ('AUTO_CONNECT')") return value model_config = ConfigDict( @@ -83,6 +83,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of data if self.data: _dict['data'] = self.data.to_dict() + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + return _dict @classmethod @@ -99,7 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), "type": obj.get("type"), - "data": ClaimHookCreateClaimHookRequestHookOneOf1Data.from_dict(obj["data"]) if obj.get("data") is not None else None + "data": ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.from_dict(obj["data"]) if obj.get("data") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py new file mode 100644 index 0000000000..746c27a872 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf + """ # noqa: E501 + type: StrictStr + data: ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "data"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['GRANT_PERMISSIONS']): + raise ValueError("must be one of enum values ('GRANT_PERMISSIONS')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "data": ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py new file mode 100644 index 0000000000..ff6e592af1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 + """ # noqa: E501 + type: StrictStr + data: ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "data"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ADD_ADMIN']): + raise ValueError("must be one of enum values ('ADD_ADMIN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "data": ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py new file mode 100644 index 0000000000..3adc7d39ad --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + """ # noqa: E501 + claim_uri: Optional[StrictStr] = Field(alias="claimUri") + target_uri: Optional[StrictStr] = Field(alias="targetUri") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["claimUri", "targetUri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if claim_uri (nullable) is None + # and model_fields_set contains the field + if self.claim_uri is None and "claim_uri" in self.model_fields_set: + _dict['claimUri'] = None + + # set to None if target_uri (nullable) is None + # and model_fields_set contains the field + if self.target_uri is None and "target_uri" in self.model_fields_set: + _dict['targetUri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "claimUri": obj.get("claimUri"), + "targetUri": obj.get("targetUri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py new file mode 100644 index 0000000000..ce696a894a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 + """ # noqa: E501 + type: StrictStr + data: ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "data"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AUTO_CONNECT']): + raise ValueError("must be one of enum values ('AUTO_CONNECT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "data": ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py new file mode 100644 index 0000000000..3cf555ddd6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + """ # noqa: E501 + claim_uri: StrictStr = Field(alias="claimUri") + target_uri: StrictStr = Field(alias="targetUri") + __properties: ClassVar[List[str]] = ["claimUri", "targetUri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "claimUri": obj.get("claimUri"), + "targetUri": obj.get("targetUri") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py new file mode 100644 index 0000000000..6f4ff632af --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + """ # noqa: E501 + claim_uri: Optional[StrictStr] = Field(alias="claimUri") + target_uri: Optional[StrictStr] = Field(alias="targetUri") + permissions: ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["claimUri", "targetUri", "permissions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of permissions + if self.permissions: + _dict['permissions'] = self.permissions.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if claim_uri (nullable) is None + # and model_fields_set contains the field + if self.claim_uri is None and "claim_uri" in self.model_fields_set: + _dict['claimUri'] = None + + # set to None if target_uri (nullable) is None + # and model_fields_set contains the field + if self.target_uri is None and "target_uri" in self.model_fields_set: + _dict['targetUri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "claimUri": obj.get("claimUri"), + "targetUri": obj.get("targetUri"), + "permissions": ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py new file mode 100644 index 0000000000..9938f4e61d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions(BaseModel): + """ + ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + """ # noqa: E501 + role: Optional[StrictStr] = None + can_edit: Optional[StrictBool] = Field(default=None, alias="canEdit") + can_issue: Optional[StrictBool] = Field(default=None, alias="canIssue") + can_revoke: Optional[StrictBool] = Field(default=None, alias="canRevoke") + can_manage_permissions: Optional[StrictBool] = Field(default=None, alias="canManagePermissions") + can_issue_children: Optional[StrictStr] = Field(default=None, alias="canIssueChildren") + can_create_children: Optional[StrictStr] = Field(default=None, alias="canCreateChildren") + can_edit_children: Optional[StrictStr] = Field(default=None, alias="canEditChildren") + can_revoke_children: Optional[StrictStr] = Field(default=None, alias="canRevokeChildren") + can_manage_children_permissions: Optional[StrictStr] = Field(default=None, alias="canManageChildrenPermissions") + can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") + can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict['role'] = None + + # set to None if can_issue_children (nullable) is None + # and model_fields_set contains the field + if self.can_issue_children is None and "can_issue_children" in self.model_fields_set: + _dict['canIssueChildren'] = None + + # set to None if can_create_children (nullable) is None + # and model_fields_set contains the field + if self.can_create_children is None and "can_create_children" in self.model_fields_set: + _dict['canCreateChildren'] = None + + # set to None if can_edit_children (nullable) is None + # and model_fields_set contains the field + if self.can_edit_children is None and "can_edit_children" in self.model_fields_set: + _dict['canEditChildren'] = None + + # set to None if can_revoke_children (nullable) is None + # and model_fields_set contains the field + if self.can_revoke_children is None and "can_revoke_children" in self.model_fields_set: + _dict['canRevokeChildren'] = None + + # set to None if can_manage_children_permissions (nullable) is None + # and model_fields_set contains the field + if self.can_manage_children_permissions is None and "can_manage_children_permissions" in self.model_fields_set: + _dict['canManageChildrenPermissions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "canEdit": obj.get("canEdit"), + "canIssue": obj.get("canIssue"), + "canRevoke": obj.get("canRevoke"), + "canManagePermissions": obj.get("canManagePermissions"), + "canIssueChildren": obj.get("canIssueChildren"), + "canCreateChildren": obj.get("canCreateChildren"), + "canEditChildren": obj.get("canEditChildren"), + "canRevokeChildren": obj.get("canRevokeChildren"), + "canManageChildrenPermissions": obj.get("canManageChildrenPermissions"), + "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), + "canViewAnalytics": obj.get("canViewAnalytics") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request.py index ffdb8247e8..221ab2bb5a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request.py @@ -31,7 +31,7 @@ class ClaimHookGetClaimHooksForBoostRequest(BaseModel): cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None query: Optional[ClaimHookGetClaimHooksForBoostRequestQuery] = None - uri: StrictStr + uri: Optional[StrictStr] __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "query", "uri"] model_config = ConfigDict( @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query.py index 35162f512c..3438b4230a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data import ClaimHookGetClaimHooksForBoostRequestQueryData from typing import Optional, Set from typing_extensions import Self @@ -28,8 +28,8 @@ class ClaimHookGetClaimHooksForBoostRequestQuery(BaseModel): """ ClaimHookGetClaimHooksForBoostRequestQuery """ # noqa: E501 - type: Optional[BoostGetBoostsRequestQueryUri] = None - data: Optional[ClaimHookGetClaimHooksForBoostRequestQueryData] = None + type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + data: ClaimHookGetClaimHooksForBoostRequestQueryData __properties: ClassVar[List[str]] = ["type", "data"] model_config = ConfigDict( @@ -89,7 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": BoostGetBoostsRequestQueryUri.from_dict(obj["type"]) if obj.get("type") is not None else None, + "type": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["type"]) if obj.get("type") is not None else None, "data": ClaimHookGetClaimHooksForBoostRequestQueryData.from_dict(obj["data"]) if obj.get("data") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data.py index 5b0d340764..9b3c36812f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data_permissions import ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions from typing import Optional, Set from typing_extensions import Self @@ -28,8 +28,8 @@ class ClaimHookGetClaimHooksForBoostRequestQueryData(BaseModel): """ ClaimHookGetClaimHooksForBoostRequestQueryData """ # noqa: E501 - claim_uri: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="claimUri") - target_uri: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="targetUri") + claim_uri: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="claimUri") + target_uri: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="targetUri") permissions: Optional[ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions] = None __properties: ClassVar[List[str]] = ["claimUri", "targetUri", "permissions"] @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "claimUri": BoostGetBoostsRequestQueryUri.from_dict(obj["claimUri"]) if obj.get("claimUri") is not None else None, - "targetUri": BoostGetBoostsRequestQueryUri.from_dict(obj["targetUri"]) if obj.get("targetUri") is not None else None, + "claimUri": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["claimUri"]) if obj.get("claimUri") is not None else None, + "targetUri": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["targetUri"]) if obj.get("targetUri") is not None else None, "permissions": ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.py index 9b8c1b022f..52710f92b8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from typing import Optional, Set from typing_extensions import Self @@ -27,16 +27,16 @@ class ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions(BaseModel): """ ClaimHookGetClaimHooksForBoostRequestQueryDataPermissions """ # noqa: E501 - role: Optional[BoostGetBoostsRequestQueryUri] = None + role: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None can_edit: Optional[StrictBool] = Field(default=None, alias="canEdit") can_issue: Optional[StrictBool] = Field(default=None, alias="canIssue") can_revoke: Optional[StrictBool] = Field(default=None, alias="canRevoke") can_manage_permissions: Optional[StrictBool] = Field(default=None, alias="canManagePermissions") - can_issue_children: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="canIssueChildren") - can_create_children: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="canCreateChildren") - can_edit_children: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="canEditChildren") - can_revoke_children: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="canRevokeChildren") - can_manage_children_permissions: Optional[BoostGetBoostsRequestQueryUri] = Field(default=None, alias="canManageChildrenPermissions") + can_issue_children: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="canIssueChildren") + can_create_children: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="canCreateChildren") + can_edit_children: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="canEditChildren") + can_revoke_children: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="canRevokeChildren") + can_manage_children_permissions: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = Field(default=None, alias="canManageChildrenPermissions") can_manage_children_profiles: Optional[StrictBool] = Field(default=None, alias="canManageChildrenProfiles") can_view_analytics: Optional[StrictBool] = Field(default=None, alias="canViewAnalytics") __properties: ClassVar[List[str]] = ["role", "canEdit", "canIssue", "canRevoke", "canManagePermissions", "canIssueChildren", "canCreateChildren", "canEditChildren", "canRevokeChildren", "canManageChildrenPermissions", "canManageChildrenProfiles", "canViewAnalytics"] @@ -110,16 +110,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "role": BoostGetBoostsRequestQueryUri.from_dict(obj["role"]) if obj.get("role") is not None else None, + "role": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["role"]) if obj.get("role") is not None else None, "canEdit": obj.get("canEdit"), "canIssue": obj.get("canIssue"), "canRevoke": obj.get("canRevoke"), "canManagePermissions": obj.get("canManagePermissions"), - "canIssueChildren": BoostGetBoostsRequestQueryUri.from_dict(obj["canIssueChildren"]) if obj.get("canIssueChildren") is not None else None, - "canCreateChildren": BoostGetBoostsRequestQueryUri.from_dict(obj["canCreateChildren"]) if obj.get("canCreateChildren") is not None else None, - "canEditChildren": BoostGetBoostsRequestQueryUri.from_dict(obj["canEditChildren"]) if obj.get("canEditChildren") is not None else None, - "canRevokeChildren": BoostGetBoostsRequestQueryUri.from_dict(obj["canRevokeChildren"]) if obj.get("canRevokeChildren") is not None else None, - "canManageChildrenPermissions": BoostGetBoostsRequestQueryUri.from_dict(obj["canManageChildrenPermissions"]) if obj.get("canManageChildrenPermissions") is not None else None, + "canIssueChildren": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["canIssueChildren"]) if obj.get("canIssueChildren") is not None else None, + "canCreateChildren": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["canCreateChildren"]) if obj.get("canCreateChildren") is not None else None, + "canEditChildren": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["canEditChildren"]) if obj.get("canEditChildren") is not None else None, + "canRevokeChildren": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["canRevokeChildren"]) if obj.get("canRevokeChildren") is not None else None, + "canManageChildrenPermissions": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["canManageChildrenPermissions"]) if obj.get("canManageChildrenPermissions") is not None else None, "canManageChildrenProfiles": obj.get("canManageChildrenProfiles"), "canViewAnalytics": obj.get("canViewAnalytics") }) diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_add_contact_method200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_add_contact_method200_response.py index fa95d32718..88d0167cd6 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_add_contact_method200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_add_contact_method200_response.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,10 @@ class ContactMethodsAddContactMethod200Response(BaseModel): """ ContactMethodsAddContactMethod200Response """ # noqa: E501 - message: StrictStr - contact_method_id: StrictStr = Field(alias="contactMethodId") + message: Optional[StrictStr] + contact_method_id: Optional[StrictStr] = Field(alias="contactMethodId") verification_required: StrictBool = Field(alias="verificationRequired") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "contactMethodId", "verificationRequired"] model_config = ConfigDict( @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,6 +73,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if contact_method_id (nullable) is None + # and model_fields_set contains the field + if self.contact_method_id is None and "contact_method_id" in self.model_fields_set: + _dict['contactMethodId'] = None + return _dict @classmethod @@ -86,6 +104,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "contactMethodId": obj.get("contactMethodId"), "verificationRequired": obj.get("verificationRequired") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session200_response.py new file mode 100644 index 0000000000..b437587354 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session200_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsCreateContactMethodSession200Response(BaseModel): + """ + ContactMethodsCreateContactMethodSession200Response + """ # noqa: E501 + session_jwt: Optional[StrictStr] = Field(alias="sessionJwt") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["sessionJwt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSession200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if session_jwt (nullable) is None + # and model_fields_set contains the field + if self.session_jwt is None and "session_jwt" in self.model_fields_set: + _dict['sessionJwt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSession200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sessionJwt": obj.get("sessionJwt") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request.py new file mode 100644 index 0000000000..97f580116a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contact_methods_create_contact_method_session_request_contact_method import ContactMethodsCreateContactMethodSessionRequestContactMethod +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsCreateContactMethodSessionRequest(BaseModel): + """ + ContactMethodsCreateContactMethodSessionRequest + """ # noqa: E501 + contact_method: ContactMethodsCreateContactMethodSessionRequestContactMethod = Field(alias="contactMethod") + otp_challenge: Optional[StrictStr] = Field(alias="otpChallenge") + __properties: ClassVar[List[str]] = ["contactMethod", "otpChallenge"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSessionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of contact_method + if self.contact_method: + _dict['contactMethod'] = self.contact_method.to_dict() + # set to None if otp_challenge (nullable) is None + # and model_fields_set contains the field + if self.otp_challenge is None and "otp_challenge" in self.model_fields_set: + _dict['otpChallenge'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSessionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contactMethod": ContactMethodsCreateContactMethodSessionRequestContactMethod.from_dict(obj["contactMethod"]) if obj.get("contactMethod") is not None else None, + "otpChallenge": obj.get("otpChallenge") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request_contact_method.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request_contact_method.py new file mode 100644 index 0000000000..55c8042721 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_create_contact_method_session_request_contact_method.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsCreateContactMethodSessionRequestContactMethod(BaseModel): + """ + ContactMethodsCreateContactMethodSessionRequestContactMethod + """ # noqa: E501 + value: Optional[StrictStr] + type: StrictStr + __properties: ClassVar[List[str]] = ["value", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['email', 'phone']): + raise ValueError("must be one of enum values ('email', 'phone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSessionRequestContactMethod from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsCreateContactMethodSessionRequestContactMethod from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "value": obj.get("value"), + "type": obj.get("type") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of.py index 4e3ba6ef17..46cf8098ea 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,12 +28,13 @@ class ContactMethodsGetMyContactMethods200ResponseInnerOneOf(BaseModel): ContactMethodsGetMyContactMethods200ResponseInnerOneOf """ # noqa: E501 type: StrictStr - value: StrictStr - id: StrictStr + value: Annotated[str, Field(strict=True)] + id: Optional[StrictStr] is_verified: StrictBool = Field(alias="isVerified") verified_at: Optional[StrictStr] = Field(default=None, alias="verifiedAt") is_primary: StrictBool = Field(alias="isPrimary") - created_at: StrictStr = Field(alias="createdAt") + created_at: Optional[StrictStr] = Field(alias="createdAt") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "id", "isVerified", "verifiedAt", "isPrimary", "createdAt"] @field_validator('type') @@ -42,6 +44,13 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('email')") return value + @field_validator('value') + def value_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -72,8 +81,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -81,6 +92,26 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if verified_at (nullable) is None + # and model_fields_set contains the field + if self.verified_at is None and "verified_at" in self.model_fields_set: + _dict['verifiedAt'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + return _dict @classmethod @@ -101,6 +132,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPrimary": obj.get("isPrimary"), "createdAt": obj.get("createdAt") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of1.py index 2080a1b0e6..4cd2a9e12c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_get_my_contact_methods200_response_inner_one_of1.py @@ -27,12 +27,13 @@ class ContactMethodsGetMyContactMethods200ResponseInnerOneOf1(BaseModel): ContactMethodsGetMyContactMethods200ResponseInnerOneOf1 """ # noqa: E501 type: StrictStr - value: StrictStr - id: StrictStr + value: Optional[StrictStr] + id: Optional[StrictStr] is_verified: StrictBool = Field(alias="isVerified") verified_at: Optional[StrictStr] = Field(default=None, alias="verifiedAt") is_primary: StrictBool = Field(alias="isPrimary") - created_at: StrictStr = Field(alias="createdAt") + created_at: Optional[StrictStr] = Field(alias="createdAt") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "id", "isVerified", "verifiedAt", "isPrimary", "createdAt"] @field_validator('type') @@ -72,8 +73,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -81,6 +84,31 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if verified_at (nullable) is None + # and model_fields_set contains the field + if self.verified_at is None and "verified_at" in self.model_fields_set: + _dict['verifiedAt'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + return _dict @classmethod @@ -101,6 +129,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPrimary": obj.get("isPrimary"), "createdAt": obj.get("createdAt") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_remove_contact_method_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_remove_contact_method_request.py new file mode 100644 index 0000000000..0357f743df --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_remove_contact_method_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsRemoveContactMethodRequest(BaseModel): + """ + ContactMethodsRemoveContactMethodRequest + """ # noqa: E501 + id: StrictStr + __properties: ClassVar[List[str]] = ["id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsRemoveContactMethodRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsRemoveContactMethodRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge200_response.py similarity index 87% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method200_response.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge200_response.py index ebd9e23960..3c098515c2 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge200_response.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class ContactMethodsSetPrimaryContactMethod200Response(BaseModel): +class ContactMethodsSendChallenge200Response(BaseModel): """ - ContactMethodsSetPrimaryContactMethod200Response + ContactMethodsSendChallenge200Response """ # noqa: E501 message: StrictStr __properties: ClassVar[List[str]] = ["message"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ContactMethodsSetPrimaryContactMethod200Response from a JSON string""" + """Create an instance of ContactMethodsSendChallenge200Response from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ContactMethodsSetPrimaryContactMethod200Response from a dict""" + """Create an instance of ContactMethodsSendChallenge200Response from a dict""" if obj is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request.py new file mode 100644 index 0000000000..daac464c86 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contact_methods_send_challenge_request_configuration import ContactMethodsSendChallengeRequestConfiguration +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsSendChallengeRequest(BaseModel): + """ + ContactMethodsSendChallengeRequest + """ # noqa: E501 + value: Optional[StrictStr] + type: StrictStr + configuration: ContactMethodsSendChallengeRequestConfiguration + __properties: ClassVar[List[str]] = ["value", "type", "configuration"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['email', 'phone']): + raise ValueError("must be one of enum values ('email', 'phone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsSendChallengeRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsSendChallengeRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "value": obj.get("value"), + "type": obj.get("type"), + "configuration": ContactMethodsSendChallengeRequestConfiguration.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request_configuration.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request_configuration.py new file mode 100644 index 0000000000..1e24da15f2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_send_challenge_request_configuration.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsSendChallengeRequestConfiguration(BaseModel): + """ + ContactMethodsSendChallengeRequestConfiguration + """ # noqa: E501 + publishable_key: Optional[StrictStr] = Field(alias="publishableKey") + __properties: ClassVar[List[str]] = ["publishableKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsSendChallengeRequestConfiguration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if publishable_key (nullable) is None + # and model_fields_set contains the field + if self.publishable_key is None and "publishable_key" in self.model_fields_set: + _dict['publishableKey'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsSendChallengeRequestConfiguration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishableKey": obj.get("publishableKey") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method_request.py index e020e14501..54e266c4c6 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_set_primary_contact_method_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContactMethodsSetPrimaryContactMethodRequest(BaseModel): """ ContactMethodsSetPrimaryContactMethodRequest """ # noqa: E501 - contact_method_id: StrictStr = Field(alias="contactMethodId") + contact_method_id: Optional[StrictStr] = Field(alias="contactMethodId") __properties: ClassVar[List[str]] = ["contactMethodId"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if contact_method_id (nullable) is None + # and model_fields_set contains the field + if self.contact_method_id is None and "contact_method_id" in self.model_fields_set: + _dict['contactMethodId'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method_request.py index e3a5bdc22c..28bee3fcaa 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContactMethodsVerifyContactMethodRequest(BaseModel): """ ContactMethodsVerifyContactMethodRequest """ # noqa: E501 - token: StrictStr + token: Optional[StrictStr] __properties: ClassVar[List[str]] = ["token"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if token (nullable) is None + # and model_fields_set contains the field + if self.token is None and "token" in self.model_fields_set: + _dict['token'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response.py new file mode 100644 index 0000000000..7d19e5de54 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method import ContactMethodsVerifyWithCredential200ResponseContactMethod +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsVerifyWithCredential200Response(BaseModel): + """ + ContactMethodsVerifyWithCredential200Response + """ # noqa: E501 + message: Optional[StrictStr] + contact_method: ContactMethodsVerifyWithCredential200ResponseContactMethod = Field(alias="contactMethod") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["message", "contactMethod"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of contact_method + if self.contact_method: + _dict['contactMethod'] = self.contact_method.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "contactMethod": ContactMethodsVerifyWithCredential200ResponseContactMethod.from_dict(obj["contactMethod"]) if obj.get("contactMethod") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method.py new file mode 100644 index 0000000000..8ee916e5d8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of1 import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CONTACTMETHODSVERIFYWITHCREDENTIAL200RESPONSECONTACTMETHOD_ONE_OF_SCHEMAS = ["ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf", "ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1"] + +class ContactMethodsVerifyWithCredential200ResponseContactMethod(BaseModel): + """ + ContactMethodsVerifyWithCredential200ResponseContactMethod + """ + # data type: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + oneof_schema_1_validator: Optional[ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf] = None + # data type: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + oneof_schema_2_validator: Optional[ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1] = None + actual_instance: Optional[Union[ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1]] = None + one_of_schemas: Set[str] = { "ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf", "ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ContactMethodsVerifyWithCredential200ResponseContactMethod.model_construct() + error_messages = [] + match = 0 + # validate data type: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + if not isinstance(v, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf`") + else: + match += 1 + # validate data type: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + if not isinstance(v, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ContactMethodsVerifyWithCredential200ResponseContactMethod with oneOf schemas: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ContactMethodsVerifyWithCredential200ResponseContactMethod with oneOf schemas: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + try: + instance.actual_instance = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + try: + instance.actual_instance = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ContactMethodsVerifyWithCredential200ResponseContactMethod with oneOf schemas: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ContactMethodsVerifyWithCredential200ResponseContactMethod with oneOf schemas: ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf, ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of.py new file mode 100644 index 0000000000..1ae4fe596a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf(BaseModel): + """ + ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + """ # noqa: E501 + type: StrictStr + value: Annotated[str, Field(strict=True)] + id: StrictStr + is_verified: StrictBool = Field(alias="isVerified") + verified_at: Optional[StrictStr] = Field(default=None, alias="verifiedAt") + is_primary: StrictBool = Field(alias="isPrimary") + created_at: StrictStr = Field(alias="createdAt") + __properties: ClassVar[List[str]] = ["type", "value", "id", "isVerified", "verifiedAt", "isPrimary", "createdAt"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['email']): + raise ValueError("must be one of enum values ('email')") + return value + + @field_validator('value') + def value_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value"), + "id": obj.get("id"), + "isVerified": obj.get("isVerified"), + "verifiedAt": obj.get("verifiedAt"), + "isPrimary": obj.get("isPrimary"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of1.py new file mode 100644 index 0000000000..f6e561c776 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential200_response_contact_method_one_of1.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1(BaseModel): + """ + ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + """ # noqa: E501 + type: StrictStr + value: StrictStr + id: StrictStr + is_verified: StrictBool = Field(alias="isVerified") + verified_at: Optional[StrictStr] = Field(default=None, alias="verifiedAt") + is_primary: StrictBool = Field(alias="isPrimary") + created_at: StrictStr = Field(alias="createdAt") + __properties: ClassVar[List[str]] = ["type", "value", "id", "isVerified", "verifiedAt", "isPrimary", "createdAt"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['phone']): + raise ValueError("must be one of enum values ('phone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value"), + "id": obj.get("id"), + "isVerified": obj.get("isVerified"), + "verifiedAt": obj.get("verifiedAt"), + "isPrimary": obj.get("isPrimary"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential_request.py new file mode 100644 index 0000000000..36097cd09a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_with_credential_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContactMethodsVerifyWithCredentialRequest(BaseModel): + """ + ContactMethodsVerifyWithCredentialRequest + """ # noqa: E501 + proof_of_login_jwt: Optional[StrictStr] = Field(alias="proofOfLoginJwt") + __properties: ClassVar[List[str]] = ["proofOfLoginJwt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredentialRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if proof_of_login_jwt (nullable) is None + # and model_fields_set contains the field + if self.proof_of_login_jwt is None and "proof_of_login_jwt" in self.model_fields_set: + _dict['proofOfLoginJwt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContactMethodsVerifyWithCredentialRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "proofOfLoginJwt": obj.get("proofOfLoginJwt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request.py index bd868be59e..e73bd8d4b7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner import ContractsCreateConsentFlowContractRequestAutoboostsInner +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner import ContractsAddAutoBoostsToContractRequestAutoboostsInner from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ContractsAddAutoBoostsToContractRequest(BaseModel): """ ContractsAddAutoBoostsToContractRequest """ # noqa: E501 - contract_uri: StrictStr = Field(alias="contractUri") - autoboosts: List[ContractsCreateConsentFlowContractRequestAutoboostsInner] + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + autoboosts: List[ContractsAddAutoBoostsToContractRequestAutoboostsInner] __properties: ClassVar[List[str]] = ["contractUri", "autoboosts"] model_config = ConfigDict( @@ -77,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_autoboosts: _items.append(_item_autoboosts.to_dict()) _dict['autoboosts'] = _items + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + return _dict @classmethod @@ -90,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "contractUri": obj.get("contractUri"), - "autoboosts": [ContractsCreateConsentFlowContractRequestAutoboostsInner.from_dict(_item) for _item in obj["autoboosts"]] if obj.get("autoboosts") is not None else None + "autoboosts": [ContractsAddAutoBoostsToContractRequestAutoboostsInner.from_dict(_item) for _item in obj["autoboosts"]] if obj.get("autoboosts") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py new file mode 100644 index 0000000000..c4642b9f7e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority import ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority +from typing import Optional, Set +from typing_extensions import Self + +class ContractsAddAutoBoostsToContractRequestAutoboostsInner(BaseModel): + """ + ContractsAddAutoBoostsToContractRequestAutoboostsInner + """ # noqa: E501 + boost_uri: StrictStr = Field(alias="boostUri") + signing_authority: ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority = Field(alias="signingAuthority") + __properties: ClassVar[List[str]] = ["boostUri", "signingAuthority"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsAddAutoBoostsToContractRequestAutoboostsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of signing_authority + if self.signing_authority: + _dict['signingAuthority'] = self.signing_authority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsAddAutoBoostsToContractRequestAutoboostsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "boostUri": obj.get("boostUri"), + "signingAuthority": ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_cancel_contract_request_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_cancel_contract_request_request.py new file mode 100644 index 0000000000..2692d04b2c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_cancel_contract_request_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractsCancelContractRequestRequest(BaseModel): + """ + ContractsCancelContractRequestRequest + """ # noqa: E501 + contract_uri: StrictStr = Field(alias="contractUri") + target_profile_id: StrictStr = Field(alias="targetProfileId") + __properties: ClassVar[List[str]] = ["contractUri", "targetProfileId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsCancelContractRequestRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsCancelContractRequestRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractUri": obj.get("contractUri"), + "targetProfileId": obj.get("targetProfileId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract200_response.py new file mode 100644 index 0000000000..055d9fa77c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract200_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsConsentToContract200Response(BaseModel): + """ + ContractsConsentToContract200Response + """ # noqa: E501 + terms_uri: Optional[StrictStr] = Field(alias="termsUri") + redirect_url: Optional[StrictStr] = Field(default=None, alias="redirectUrl") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["termsUri", "redirectUrl"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsConsentToContract200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if terms_uri (nullable) is None + # and model_fields_set contains the field + if self.terms_uri is None and "terms_uri" in self.model_fields_set: + _dict['termsUri'] = None + + # set to None if redirect_url (nullable) is None + # and model_fields_set contains the field + if self.redirect_url is None and "redirect_url" in self.model_fields_set: + _dict['redirectUrl'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsConsentToContract200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "termsUri": obj.get("termsUri"), + "redirectUrl": obj.get("redirectUrl") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request.py index fae7fe4858..16b2298d5b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request.py @@ -28,10 +28,11 @@ class ContractsConsentToContractRequest(BaseModel): ContractsConsentToContractRequest """ # noqa: E501 terms: ContractsConsentToContractRequestTerms - contract_uri: StrictStr = Field(alias="contractUri") + contract_uri: Optional[StrictStr] = Field(alias="contractUri") expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") one_time: Optional[StrictBool] = Field(default=None, alias="oneTime") - __properties: ClassVar[List[str]] = ["terms", "contractUri", "expiresAt", "oneTime"] + recipient_token: Optional[StrictStr] = Field(default=None, alias="recipientToken") + __properties: ClassVar[List[str]] = ["terms", "contractUri", "expiresAt", "oneTime", "recipientToken"] model_config = ConfigDict( populate_by_name=True, @@ -75,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of terms if self.terms: _dict['terms'] = self.terms.to_dict() + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + + # set to None if recipient_token (nullable) is None + # and model_fields_set contains the field + if self.recipient_token is None and "recipient_token" in self.model_fields_set: + _dict['recipientToken'] = None + return _dict @classmethod @@ -90,7 +106,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "terms": ContractsConsentToContractRequestTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, "contractUri": obj.get("contractUri"), "expiresAt": obj.get("expiresAt"), - "oneTime": obj.get("oneTime") + "oneTime": obj.get("oneTime"), + "recipientToken": obj.get("recipientToken") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials.py index 9d6d6ae17e..57dfa1b4ea 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.storage_resolve200_response_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue +from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value import ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class ContractsConsentToContractRequestTermsReadCredentials(BaseModel): """ # noqa: E501 share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") sharing: Optional[StrictBool] = None - categories: Optional[Dict[str, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue]] = None + categories: Optional[Dict[str, ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue]] = None __properties: ClassVar[List[str]] = ["shareAll", "sharing", "categories"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "shareAll": obj.get("shareAll"), "sharing": obj.get("sharing"), "categories": dict( - (_k, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue.from_dict(_v)) + (_k, ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue.from_dict(_v)) for _k, _v in obj["categories"].items() ) if obj.get("categories") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials_categories_value.py new file mode 100644 index 0000000000..a5f1bb2429 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_consent_to_contract_request_terms_read_credentials_categories_value.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue(BaseModel): + """ + ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue + """ # noqa: E501 + sharing: Optional[StrictBool] = None + shared: Optional[List[StrictStr]] = None + share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") + share_until: Optional[StrictStr] = Field(default=None, alias="shareUntil") + __properties: ClassVar[List[str]] = ["sharing", "shared", "shareAll", "shareUntil"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if share_until (nullable) is None + # and model_fields_set contains the field + if self.share_until is None and "share_until" in self.model_fields_set: + _dict['shareUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sharing": obj.get("sharing"), + "shared": obj.get("shared"), + "shareAll": obj.get("shareAll"), + "shareUntil": obj.get("shareUntil") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request.py index 6fb5c8b45b..162f084c1c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request.py @@ -29,7 +29,7 @@ class ContractsCreateConsentFlowContractRequest(BaseModel): ContractsCreateConsentFlowContractRequest """ # noqa: E501 contract: ContractsCreateConsentFlowContractRequestContract - name: StrictStr + name: Optional[StrictStr] subtitle: Optional[StrictStr] = None description: Optional[StrictStr] = None reason_for_accessing: Optional[StrictStr] = Field(default=None, alias="reasonForAccessing") @@ -91,6 +91,46 @@ def to_dict(self) -> Dict[str, Any]: if _item_autoboosts: _items.append(_item_autoboosts.to_dict()) _dict['autoboosts'] = _items + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if subtitle (nullable) is None + # and model_fields_set contains the field + if self.subtitle is None and "subtitle" in self.model_fields_set: + _dict['subtitle'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if reason_for_accessing (nullable) is None + # and model_fields_set contains the field + if self.reason_for_accessing is None and "reason_for_accessing" in self.model_fields_set: + _dict['reasonForAccessing'] = None + + # set to None if redirect_url (nullable) is None + # and model_fields_set contains the field + if self.redirect_url is None and "redirect_url" in self.model_fields_set: + _dict['redirectUrl'] = None + + # set to None if front_door_boost_uri (nullable) is None + # and model_fields_set contains the field + if self.front_door_boost_uri is None and "front_door_boost_uri" in self.model_fields_set: + _dict['frontDoorBoostUri'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner.py index 4a08e575be..fd110e150b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority import ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ContractsCreateConsentFlowContractRequestAutoboostsInner(BaseModel): """ ContractsCreateConsentFlowContractRequestAutoboostsInner """ # noqa: E501 - boost_uri: StrictStr = Field(alias="boostUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") signing_authority: ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority = Field(alias="signingAuthority") __properties: ClassVar[List[str]] = ["boostUri", "signingAuthority"] @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of signing_authority if self.signing_authority: _dict['signingAuthority'] = self.signing_authority.to_dict() + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py index 286f688944..c7a27c52db 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py @@ -26,9 +26,9 @@ class ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority(B """ ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority """ # noqa: E501 - endpoint: StrictStr name: StrictStr - __properties: ClassVar[List[str]] = ["endpoint", "name"] + endpoint: StrictStr + __properties: ClassVar[List[str]] = ["name", "endpoint"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "endpoint": obj.get("endpoint"), - "name": obj.get("name") + "name": obj.get("name"), + "endpoint": obj.get("endpoint") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read.py index 374b04ee85..0161593897 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials import ContractsCreateConsentFlowContractRequestContractReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from typing import Optional, Set from typing_extensions import Self @@ -30,7 +30,7 @@ class ContractsCreateConsentFlowContractRequestContractRead(BaseModel): """ # noqa: E501 anonymize: Optional[StrictBool] = None credentials: Optional[ContractsCreateConsentFlowContractRequestContractReadCredentials] = None - personal: Optional[Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]] = None + personal: Optional[Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]] = None __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] model_config = ConfigDict( @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "anonymize": obj.get("anonymize"), "credentials": ContractsCreateConsentFlowContractRequestContractReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.from_dict(_v)) for _k, _v in obj["personal"].items() ) if obj.get("personal") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials.py index b00a90e5e1..966699bffa 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ContractsCreateConsentFlowContractRequestContractReadCredentials(BaseModel """ ContractsCreateConsentFlowContractRequestContractReadCredentials """ # noqa: E501 - categories: Optional[Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]] = None + categories: Optional[Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]] = None __properties: ClassVar[List[str]] = ["categories"] model_config = ConfigDict( @@ -89,7 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.from_dict(_v)) for _k, _v in obj["categories"].items() ) if obj.get("categories") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py new file mode 100644 index 0000000000..cc33ec2bbd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue(BaseModel): + """ + ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue + """ # noqa: E501 + required: StrictBool + default_enabled: Optional[StrictBool] = Field(default=None, alias="defaultEnabled") + __properties: ClassVar[List[str]] = ["required", "defaultEnabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "required": obj.get("required"), + "defaultEnabled": obj.get("defaultEnabled") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_write.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_write.py index 6d719bd381..d1a4e544db 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_write.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_create_consent_flow_contract_request_contract_write.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials import ContractsCreateConsentFlowContractRequestContractReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class ContractsCreateConsentFlowContractRequestContractWrite(BaseModel): ContractsCreateConsentFlowContractRequestContractWrite """ # noqa: E501 credentials: Optional[ContractsCreateConsentFlowContractRequestContractReadCredentials] = None - personal: Optional[Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue]] = None + personal: Optional[Dict[str, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue]] = None __properties: ClassVar[List[str]] = ["credentials", "personal"] model_config = ConfigDict( @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "credentials": ContractsCreateConsentFlowContractRequestContractReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue.from_dict(_v)) for _k, _v in obj["personal"].items() ) if obj.get("personal") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_forward_contract_request_to_profile_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_forward_contract_request_to_profile_request.py new file mode 100644 index 0000000000..a7803e55f2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_forward_contract_request_to_profile_request.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsForwardContractRequestToProfileRequest(BaseModel): + """ + ContractsForwardContractRequestToProfileRequest + """ # noqa: E501 + parent_profile_id: Optional[StrictStr] = Field(alias="parentProfileId") + target_profile_id: Optional[StrictStr] = Field(alias="targetProfileId") + contract_uri: Optional[StrictStr] = Field(default=None, alias="contractUri") + __properties: ClassVar[List[str]] = ["parentProfileId", "targetProfileId", "contractUri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsForwardContractRequestToProfileRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if parent_profile_id (nullable) is None + # and model_fields_set contains the field + if self.parent_profile_id is None and "parent_profile_id" in self.model_fields_set: + _dict['parentProfileId'] = None + + # set to None if target_profile_id (nullable) is None + # and model_fields_set contains the field + if self.target_profile_id is None and "target_profile_id" in self.model_fields_set: + _dict['targetProfileId'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsForwardContractRequestToProfileRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parentProfileId": obj.get("parentProfileId"), + "targetProfileId": obj.get("targetProfileId"), + "contractUri": obj.get("contractUri") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner.py new file mode 100644 index 0000000000..bb22d413eb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner_contract import ContractsGetAllContractRequestsForProfile200ResponseInnerContract +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetAllContractRequestsForProfile200ResponseInner(BaseModel): + """ + ContractsGetAllContractRequestsForProfile200ResponseInner + """ # noqa: E501 + contract: ContractsGetAllContractRequestsForProfile200ResponseInnerContract + profile: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + status: Optional[StrictStr] + read_status: Optional[StrictStr] = Field(default=None, alias="readStatus") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["contract", "profile", "status", "readStatus"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'accepted', 'denied']): + raise ValueError("must be one of enum values ('pending', 'accepted', 'denied')") + return value + + @field_validator('read_status') + def read_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unseen', 'seen']): + raise ValueError("must be one of enum values ('unseen', 'seen')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetAllContractRequestsForProfile200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of contract + if self.contract: + _dict['contract'] = self.contract.to_dict() + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['profile'] = self.profile.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if read_status (nullable) is None + # and model_fields_set contains the field + if self.read_status is None and "read_status" in self.model_fields_set: + _dict['readStatus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetAllContractRequestsForProfile200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contract": ContractsGetAllContractRequestsForProfile200ResponseInnerContract.from_dict(obj["contract"]) if obj.get("contract") is not None else None, + "profile": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["profile"]) if obj.get("profile") is not None else None, + "status": obj.get("status"), + "readStatus": obj.get("readStatus") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner_contract.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner_contract.py new file mode 100644 index 0000000000..a8855e679c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_contract_requests_for_profile200_response_inner_contract.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetAllContractRequestsForProfile200ResponseInnerContract(BaseModel): + """ + ContractsGetAllContractRequestsForProfile200ResponseInnerContract + """ # noqa: E501 + read: ContractsGetConsentFlowContract200ResponseContractRead + write: StorageResolve200ResponseAnyOfAnyOf1Write + uri: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["read", "write", "uri"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetAllContractRequestsForProfile200ResponseInnerContract from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetAllContractRequestsForProfile200ResponseInnerContract from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": ContractsGetConsentFlowContract200ResponseContractRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": StorageResolve200ResponseAnyOfAnyOf1Write.from_dict(obj["write"]) if obj.get("write") is not None else None, + "uri": obj.get("uri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_credentials_for_terms_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_credentials_for_terms_request.py index ab00e90e05..d55a511c2d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_credentials_for_terms_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_all_credentials_for_terms_request.py @@ -71,6 +71,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response.py index a052d62edb..af852b3fa5 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo -from openapi_client.models.storage_resolve200_response_any_of_any_of import StorageResolve200ResponseAnyOfAnyOf +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract from typing import Optional, Set from typing_extensions import Self @@ -28,22 +28,23 @@ class ContractsGetConsentFlowContract200Response(BaseModel): """ ContractsGetConsentFlowContract200Response """ # noqa: E501 - contract: StorageResolve200ResponseAnyOfAnyOf - owner: BoostGetBoostRecipients200ResponseInnerTo - name: StrictStr + contract: ContractsGetConsentFlowContract200ResponseContract + owner: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + name: Optional[StrictStr] subtitle: Optional[StrictStr] = None description: Optional[StrictStr] = None reason_for_accessing: Optional[StrictStr] = Field(default=None, alias="reasonForAccessing") image: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] needs_guardian_consent: Optional[StrictBool] = Field(default=None, alias="needsGuardianConsent") redirect_url: Optional[StrictStr] = Field(default=None, alias="redirectUrl") front_door_boost_uri: Optional[StrictStr] = Field(default=None, alias="frontDoorBoostUri") - created_at: StrictStr = Field(alias="createdAt") - updated_at: StrictStr = Field(alias="updatedAt") + created_at: Optional[StrictStr] = Field(alias="createdAt") + updated_at: Optional[StrictStr] = Field(alias="updatedAt") expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") auto_boosts: Optional[List[StrictStr]] = Field(default=None, alias="autoBoosts") - writers: Optional[List[BoostGetBoostRecipients200ResponseInnerTo]] = None + writers: Optional[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["contract", "owner", "name", "subtitle", "description", "reasonForAccessing", "image", "uri", "needsGuardianConsent", "redirectUrl", "frontDoorBoostUri", "createdAt", "updatedAt", "expiresAt", "autoBoosts", "writers"] model_config = ConfigDict( @@ -76,8 +77,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -98,6 +101,66 @@ def to_dict(self) -> Dict[str, Any]: if _item_writers: _items.append(_item_writers.to_dict()) _dict['writers'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if subtitle (nullable) is None + # and model_fields_set contains the field + if self.subtitle is None and "subtitle" in self.model_fields_set: + _dict['subtitle'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if reason_for_accessing (nullable) is None + # and model_fields_set contains the field + if self.reason_for_accessing is None and "reason_for_accessing" in self.model_fields_set: + _dict['reasonForAccessing'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if redirect_url (nullable) is None + # and model_fields_set contains the field + if self.redirect_url is None and "redirect_url" in self.model_fields_set: + _dict['redirectUrl'] = None + + # set to None if front_door_boost_uri (nullable) is None + # and model_fields_set contains the field + if self.front_door_boost_uri is None and "front_door_boost_uri" in self.model_fields_set: + _dict['frontDoorBoostUri'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + return _dict @classmethod @@ -110,8 +173,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "contract": StorageResolve200ResponseAnyOfAnyOf.from_dict(obj["contract"]) if obj.get("contract") is not None else None, - "owner": BoostGetBoostRecipients200ResponseInnerTo.from_dict(obj["owner"]) if obj.get("owner") is not None else None, + "contract": ContractsGetConsentFlowContract200ResponseContract.from_dict(obj["contract"]) if obj.get("contract") is not None else None, + "owner": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["owner"]) if obj.get("owner") is not None else None, "name": obj.get("name"), "subtitle": obj.get("subtitle"), "description": obj.get("description"), @@ -125,8 +188,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updatedAt": obj.get("updatedAt"), "expiresAt": obj.get("expiresAt"), "autoBoosts": obj.get("autoBoosts"), - "writers": [BoostGetBoostRecipients200ResponseInnerTo.from_dict(_item) for _item in obj["writers"]] if obj.get("writers") is not None else None + "writers": [BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(_item) for _item in obj["writers"]] if obj.get("writers") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract.py new file mode 100644 index 0000000000..5396918a33 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentFlowContract200ResponseContract(BaseModel): + """ + ContractsGetConsentFlowContract200ResponseContract + """ # noqa: E501 + read: ContractsGetConsentFlowContract200ResponseContractRead + write: StorageResolve200ResponseAnyOfAnyOf1Write + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["read", "write"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentFlowContract200ResponseContract from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentFlowContract200ResponseContract from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": ContractsGetConsentFlowContract200ResponseContractRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": StorageResolve200ResponseAnyOfAnyOf1Write.from_dict(obj["write"]) if obj.get("write") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract_read.py new file mode 100644 index 0000000000..df169527e3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contract200_response_contract_read.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentFlowContract200ResponseContractRead(BaseModel): + """ + ContractsGetConsentFlowContract200ResponseContractRead + """ # noqa: E501 + anonymize: Optional[StrictBool] = None + credentials: StorageResolve200ResponseAnyOfAnyOf1WriteCredentials + personal: Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentFlowContract200ResponseContractRead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in personal (dict) + _field_dict = {} + if self.personal: + for _key_personal in self.personal: + if self.personal[_key_personal]: + _field_dict[_key_personal] = self.personal[_key_personal].to_dict() + _dict['personal'] = _field_dict + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentFlowContract200ResponseContractRead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "anonymize": obj.get("anonymize"), + "credentials": StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": dict( + (_k, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_dict(_v)) + for _k, _v in obj["personal"].items() + ) + if obj.get("personal") is not None + else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response.py index 92b3634bb3..5beb5b0a7c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response.py @@ -30,6 +30,7 @@ class ContractsGetConsentFlowContracts200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetConsentFlowContracts200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetConsentFlowContracts200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response_records_inner.py index 43aef2e5ae..f671068ba1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts200_response_records_inner.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo -from openapi_client.models.storage_resolve200_response_any_of_any_of import StorageResolve200ResponseAnyOfAnyOf +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract from typing import Optional, Set from typing_extensions import Self @@ -28,21 +28,22 @@ class ContractsGetConsentFlowContracts200ResponseRecordsInner(BaseModel): """ ContractsGetConsentFlowContracts200ResponseRecordsInner """ # noqa: E501 - contract: StorageResolve200ResponseAnyOfAnyOf - name: StrictStr + contract: ContractsGetConsentFlowContract200ResponseContract + name: Optional[StrictStr] subtitle: Optional[StrictStr] = None description: Optional[StrictStr] = None reason_for_accessing: Optional[StrictStr] = Field(default=None, alias="reasonForAccessing") image: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] needs_guardian_consent: Optional[StrictBool] = Field(default=None, alias="needsGuardianConsent") redirect_url: Optional[StrictStr] = Field(default=None, alias="redirectUrl") front_door_boost_uri: Optional[StrictStr] = Field(default=None, alias="frontDoorBoostUri") - created_at: StrictStr = Field(alias="createdAt") - updated_at: StrictStr = Field(alias="updatedAt") + created_at: Optional[StrictStr] = Field(alias="createdAt") + updated_at: Optional[StrictStr] = Field(alias="updatedAt") expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") auto_boosts: Optional[List[StrictStr]] = Field(default=None, alias="autoBoosts") - writers: Optional[List[BoostGetBoostRecipients200ResponseInnerTo]] = None + writers: Optional[List[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo]] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["contract", "name", "subtitle", "description", "reasonForAccessing", "image", "uri", "needsGuardianConsent", "redirectUrl", "frontDoorBoostUri", "createdAt", "updatedAt", "expiresAt", "autoBoosts", "writers"] model_config = ConfigDict( @@ -75,8 +76,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -94,6 +97,66 @@ def to_dict(self) -> Dict[str, Any]: if _item_writers: _items.append(_item_writers.to_dict()) _dict['writers'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if subtitle (nullable) is None + # and model_fields_set contains the field + if self.subtitle is None and "subtitle" in self.model_fields_set: + _dict['subtitle'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if reason_for_accessing (nullable) is None + # and model_fields_set contains the field + if self.reason_for_accessing is None and "reason_for_accessing" in self.model_fields_set: + _dict['reasonForAccessing'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if redirect_url (nullable) is None + # and model_fields_set contains the field + if self.redirect_url is None and "redirect_url" in self.model_fields_set: + _dict['redirectUrl'] = None + + # set to None if front_door_boost_uri (nullable) is None + # and model_fields_set contains the field + if self.front_door_boost_uri is None and "front_door_boost_uri" in self.model_fields_set: + _dict['frontDoorBoostUri'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + return _dict @classmethod @@ -106,7 +169,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "contract": StorageResolve200ResponseAnyOfAnyOf.from_dict(obj["contract"]) if obj.get("contract") is not None else None, + "contract": ContractsGetConsentFlowContract200ResponseContract.from_dict(obj["contract"]) if obj.get("contract") is not None else None, "name": obj.get("name"), "subtitle": obj.get("subtitle"), "description": obj.get("description"), @@ -120,8 +183,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "updatedAt": obj.get("updatedAt"), "expiresAt": obj.get("expiresAt"), "autoBoosts": obj.get("autoBoosts"), - "writers": [BoostGetBoostRecipients200ResponseInnerTo.from_dict(_item) for _item in obj["writers"]] if obj.get("writers") is not None else None + "writers": [BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(_item) for _item in obj["writers"]] if obj.get("writers") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts_request.py index c09580e3e9..98d1ece555 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consent_flow_contracts_request.py @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response.py index c262febcda..061d8d9252 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response.py @@ -30,6 +30,7 @@ class ContractsGetConsentedContracts200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetConsentedContracts200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetConsentedContracts200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner.py index 6f64be26e6..c93bb6fa5f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner.py @@ -19,9 +19,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo from openapi_client.models.contracts_get_consent_flow_contract200_response import ContractsGetConsentFlowContract200Response -from openapi_client.models.storage_resolve200_response_any_of1 import StorageResolve200ResponseAnyOf1 +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms import ContractsGetConsentedContracts200ResponseRecordsInnerTerms from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,12 @@ class ContractsGetConsentedContracts200ResponseRecordsInner(BaseModel): """ # noqa: E501 expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") one_time: Optional[StrictBool] = Field(default=None, alias="oneTime") - terms: StorageResolve200ResponseAnyOf1 + terms: ContractsGetConsentedContracts200ResponseRecordsInnerTerms contract: ContractsGetConsentFlowContract200Response - uri: StrictStr - consenter: BoostGetBoostRecipients200ResponseInnerTo + uri: Optional[StrictStr] + consenter: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo status: StrictStr + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["expiresAt", "oneTime", "terms", "contract", "uri", "consenter", "status"] @field_validator('status') @@ -75,8 +76,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -93,6 +96,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of consenter if self.consenter: _dict['consenter'] = self.consenter.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -107,12 +125,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "expiresAt": obj.get("expiresAt"), "oneTime": obj.get("oneTime"), - "terms": StorageResolve200ResponseAnyOf1.from_dict(obj["terms"]) if obj.get("terms") is not None else None, + "terms": ContractsGetConsentedContracts200ResponseRecordsInnerTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, "contract": ContractsGetConsentFlowContract200Response.from_dict(obj["contract"]) if obj.get("contract") is not None else None, "uri": obj.get("uri"), - "consenter": BoostGetBoostRecipients200ResponseInnerTo.from_dict(obj["consenter"]) if obj.get("consenter") is not None else None, + "consenter": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["consenter"]) if obj.get("consenter") is not None else None, "status": obj.get("status") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms.py new file mode 100644 index 0000000000..cd569e3548 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead +from openapi_client.models.storage_resolve200_response_any_of1_write import StorageResolve200ResponseAnyOf1Write +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedContracts200ResponseRecordsInnerTerms(BaseModel): + """ + ContractsGetConsentedContracts200ResponseRecordsInnerTerms + """ # noqa: E501 + read: ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + write: StorageResolve200ResponseAnyOf1Write + denied_writers: Optional[List[StrictStr]] = Field(default=None, alias="deniedWriters") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["read", "write", "deniedWriters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTerms from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTerms from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": StorageResolve200ResponseAnyOf1Write.from_dict(obj["write"]) if obj.get("write") is not None else None, + "deniedWriters": obj.get("deniedWriters") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read.py new file mode 100644 index 0000000000..a643d7da01 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead(BaseModel): + """ + ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + """ # noqa: E501 + anonymize: Optional[StrictBool] = None + credentials: ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + personal: Dict[str, StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "anonymize": obj.get("anonymize"), + "credentials": ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": obj.get("personal") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py new file mode 100644 index 0000000000..4f1c18864a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials(BaseModel): + """ + ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + """ # noqa: E501 + share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") + sharing: Optional[StrictBool] = None + categories: Dict[str, ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue] + __properties: ClassVar[List[str]] = ["shareAll", "sharing", "categories"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in categories (dict) + _field_dict = {} + if self.categories: + for _key_categories in self.categories: + if self.categories[_key_categories]: + _field_dict[_key_categories] = self.categories[_key_categories].to_dict() + _dict['categories'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shareAll": obj.get("shareAll"), + "sharing": obj.get("sharing"), + "categories": dict( + (_k, ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue.from_dict(_v)) + for _k, _v in obj["categories"].items() + ) + if obj.get("categories") is not None + else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py new file mode 100644 index 0000000000..67ff7f5fdc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue(BaseModel): + """ + ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue + """ # noqa: E501 + sharing: Optional[StrictBool] = None + shared: Optional[List[StrictStr]] = None + share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") + share_until: Optional[StrictStr] = Field(default=None, alias="shareUntil") + __properties: ClassVar[List[str]] = ["sharing", "shared", "shareAll", "shareUntil"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sharing": obj.get("sharing"), + "shared": obj.get("shared"), + "shareAll": obj.get("shareAll"), + "shareUntil": obj.get("shareUntil") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request.py index 468a0358ee..0c566f33c8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request.py @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read.py index 66bee16a73..67efc8025c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read.py @@ -29,7 +29,7 @@ class ContractsGetConsentedContractsRequestQueryRead(BaseModel): """ # noqa: E501 anonymize: Optional[StrictBool] = None credentials: Optional[ContractsGetConsentedContractsRequestQueryReadCredentials] = None - personal: Optional[Dict[str, StrictStr]] = None + personal: Optional[Dict[str, Optional[StrictStr]]] = None __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] model_config = ConfigDict( diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials.py index f133b7eb56..fd5ee80ea8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.storage_resolve200_response_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class ContractsGetConsentedContractsRequestQueryReadCredentials(BaseModel): """ # noqa: E501 share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") sharing: Optional[StrictBool] = None - categories: Optional[Dict[str, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue]] = None + categories: Optional[Dict[str, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue]] = None __properties: ClassVar[List[str]] = ["shareAll", "sharing", "categories"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "shareAll": obj.get("shareAll"), "sharing": obj.get("sharing"), "categories": dict( - (_k, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue.from_dict(_v)) + (_k, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.from_dict(_v)) for _k, _v in obj["categories"].items() ) if obj.get("categories") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials_categories_value.py new file mode 100644 index 0000000000..3399a9deda --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_contracts_request_query_read_credentials_categories_value.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue(BaseModel): + """ + ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue + """ # noqa: E501 + sharing: Optional[StrictBool] = None + shared: Optional[List[StrictStr]] = None + share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") + share_until: Optional[StrictStr] = Field(default=None, alias="shareUntil") + __properties: ClassVar[List[str]] = ["sharing", "shared", "shareAll", "shareUntil"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sharing": obj.get("sharing"), + "shared": obj.get("shared"), + "shareAll": obj.get("shareAll"), + "shareUntil": obj.get("shareUntil") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response.py new file mode 100644 index 0000000000..d1c2a4d7c5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_data200_response_records_inner import ContractsGetConsentedData200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedData200Response(BaseModel): + """ + ContractsGetConsentedData200Response + """ # noqa: E501 + cursor: Optional[StrictStr] = None + has_more: StrictBool = Field(alias="hasMore") + records: List[ContractsGetConsentedData200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedData200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedData200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cursor": obj.get("cursor"), + "hasMore": obj.get("hasMore"), + "records": [ContractsGetConsentedData200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response_records_inner.py new file mode 100644 index 0000000000..663716ae0e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data200_response_records_inner.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner_credentials import ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetConsentedData200ResponseRecordsInner(BaseModel): + """ + ContractsGetConsentedData200ResponseRecordsInner + """ # noqa: E501 + credentials: ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials + personal: Dict[str, StrictStr] + var_date: Optional[StrictStr] = Field(alias="date") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["credentials", "personal", "date"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetConsentedData200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetConsentedData200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "credentials": ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": obj.get("personal"), + "date": obj.get("date") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response.py index cb67535eb7..7a557330ff 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response.py @@ -30,6 +30,7 @@ class ContractsGetConsentedDataForContract200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetConsentedDataForContract200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetConsentedDataForContract200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner.py index df9f9c721c..6544934766 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_get_consented_data_for_contract200_response_records_inner_credentials import ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials from typing import Optional, Set from typing_extensions import Self @@ -28,8 +28,9 @@ class ContractsGetConsentedDataForContract200ResponseRecordsInner(BaseModel): ContractsGetConsentedDataForContract200ResponseRecordsInner """ # noqa: E501 credentials: ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials - personal: Dict[str, StrictStr] - var_date: StrictStr = Field(alias="date") + personal: Dict[str, Optional[StrictStr]] + var_date: Optional[StrictStr] = Field(alias="date") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credentials", "personal", "date"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -74,6 +77,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of credentials if self.credentials: _dict['credentials'] = self.credentials.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + return _dict @classmethod @@ -90,6 +103,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "personal": obj.get("personal"), "date": obj.get("date") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner_credentials.py index eb6bbc1894..5d57620476 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract200_response_records_inner_credentials.py @@ -27,6 +27,7 @@ class ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials(Bas ContractsGetConsentedDataForContract200ResponseRecordsInnerCredentials """ # noqa: E501 categories: Dict[str, List[StrictStr]] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["categories"] model_config = ConfigDict( @@ -59,8 +60,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -68,6 +71,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -82,6 +90,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": obj.get("categories") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract_request.py index f38f968065..207c67dc29 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_contract_request.py @@ -30,7 +30,7 @@ class ContractsGetConsentedDataForContractRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[ContractsGetConsentedDataForContractRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query"] @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response.py index 0879a3a96c..aa6ac406d9 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response.py @@ -30,6 +30,7 @@ class ContractsGetConsentedDataForDid200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetConsentedDataForDid200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetConsentedDataForDid200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner.py index b4d4911ce9..c2656b6d26 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_get_consented_data_for_did200_response_records_inner_credentials_inner import ContractsGetConsentedDataForDid200ResponseRecordsInnerCredentialsInner from typing import Optional, Set from typing_extensions import Self @@ -29,8 +29,9 @@ class ContractsGetConsentedDataForDid200ResponseRecordsInner(BaseModel): """ # noqa: E501 credentials: List[ContractsGetConsentedDataForDid200ResponseRecordsInnerCredentialsInner] personal: Dict[str, StrictStr] - var_date: StrictStr = Field(alias="date") - contract_uri: StrictStr = Field(alias="contractUri") + var_date: Optional[StrictStr] = Field(alias="date") + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credentials", "personal", "date", "contractUri"] model_config = ConfigDict( @@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -79,6 +82,21 @@ def to_dict(self) -> Dict[str, Any]: if _item_credentials: _items.append(_item_credentials.to_dict()) _dict['credentials'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + return _dict @classmethod @@ -96,6 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "date": obj.get("date"), "contractUri": obj.get("contractUri") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner_credentials_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner_credentials_inner.py index fe503bf4b2..c1e327cbaf 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner_credentials_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did200_response_records_inner_credentials_inner.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,9 @@ class ContractsGetConsentedDataForDid200ResponseRecordsInnerCredentialsInner(Bas """ ContractsGetConsentedDataForDid200ResponseRecordsInnerCredentialsInner """ # noqa: E501 - category: StrictStr - uri: StrictStr + category: Optional[StrictStr] + uri: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["category", "uri"] model_config = ConfigDict( @@ -60,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -69,6 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -84,6 +102,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "category": obj.get("category"), "uri": obj.get("uri") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request.py index b9e7c14706..95dcb0b2c2 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request.py @@ -30,7 +30,7 @@ class ContractsGetConsentedDataForDidRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - did: StrictStr + did: Optional[StrictStr] query: Optional[ContractsGetConsentedDataForDidRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "did", "query"] @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request_query.py index e933326636..7dea01f71b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_for_did_request_query.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement from openapi_client.models.contracts_get_consented_data_for_contract_request_query_credentials import ContractsGetConsentedDataForContractRequestQueryCredentials from typing import Optional, Set from typing_extensions import Self @@ -30,7 +30,7 @@ class ContractsGetConsentedDataForDidRequestQuery(BaseModel): """ # noqa: E501 credentials: Optional[ContractsGetConsentedDataForContractRequestQueryCredentials] = None personal: Optional[Dict[str, StrictBool]] = None - id: Optional[BoostGetBoostsRequestQueryUri] = None + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None __properties: ClassVar[List[str]] = ["credentials", "personal", "id"] model_config = ConfigDict( @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "credentials": ContractsGetConsentedDataForContractRequestQueryCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": obj.get("personal"), - "id": BoostGetBoostsRequestQueryUri.from_dict(obj["id"]) if obj.get("id") is not None else None + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_request.py index 5617c0f95c..90a328d58c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_consented_data_request.py @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_contract_sent_requests200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_contract_sent_requests200_response_inner.py new file mode 100644 index 0000000000..38faf85915 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_contract_sent_requests200_response_inner.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetContractSentRequests200ResponseInner(BaseModel): + """ + ContractsGetContractSentRequests200ResponseInner + """ # noqa: E501 + profile: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + status: Optional[StrictStr] + read_status: Optional[StrictStr] = Field(default=None, alias="readStatus") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["profile", "status", "readStatus"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'accepted', 'denied']): + raise ValueError("must be one of enum values ('pending', 'accepted', 'denied')") + return value + + @field_validator('read_status') + def read_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unseen', 'seen']): + raise ValueError("must be one of enum values ('unseen', 'seen')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetContractSentRequests200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['profile'] = self.profile.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if read_status (nullable) is None + # and model_fields_set contains the field + if self.read_status is None and "read_status" in self.model_fields_set: + _dict['readStatus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetContractSentRequests200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profile": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["profile"]) if obj.get("profile") is not None else None, + "status": obj.get("status"), + "readStatus": obj.get("readStatus") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response.py index ebbac92b43..45a0028448 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response.py @@ -30,6 +30,7 @@ class ContractsGetCredentialsForContract200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetCredentialsForContract200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetCredentialsForContract200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response_records_inner.py index 26c0f722d6..119d04eb19 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract200_response_records_inner.py @@ -26,12 +26,13 @@ class ContractsGetCredentialsForContract200ResponseRecordsInner(BaseModel): """ ContractsGetCredentialsForContract200ResponseRecordsInner """ # noqa: E501 - credential_uri: StrictStr = Field(alias="credentialUri") - terms_uri: StrictStr = Field(alias="termsUri") - contract_uri: StrictStr = Field(alias="contractUri") - boost_uri: StrictStr = Field(alias="boostUri") + credential_uri: Optional[StrictStr] = Field(alias="credentialUri") + terms_uri: Optional[StrictStr] = Field(alias="termsUri") + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") category: Optional[StrictStr] = None - var_date: StrictStr = Field(alias="date") + var_date: Optional[StrictStr] = Field(alias="date") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credentialUri", "termsUri", "contractUri", "boostUri", "category", "date"] model_config = ConfigDict( @@ -64,8 +65,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -73,6 +76,41 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if credential_uri (nullable) is None + # and model_fields_set contains the field + if self.credential_uri is None and "credential_uri" in self.model_fields_set: + _dict['credentialUri'] = None + + # set to None if terms_uri (nullable) is None + # and model_fields_set contains the field + if self.terms_uri is None and "terms_uri" in self.model_fields_set: + _dict['termsUri'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + + # set to None if category (nullable) is None + # and model_fields_set contains the field + if self.category is None and "category" in self.model_fields_set: + _dict['category'] = None + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + return _dict @classmethod @@ -92,6 +130,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "category": obj.get("category"), "date": obj.get("date") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract_request.py index cbbcbfec64..46a8e0a45f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_credentials_for_contract_request.py @@ -29,7 +29,7 @@ class ContractsGetCredentialsForContractRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - terms_uri: StrictStr = Field(alias="termsUri") + terms_uri: Optional[StrictStr] = Field(alias="termsUri") include_received: Optional[StrictBool] = Field(default=True, alias="includeReceived") __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "termsUri", "includeReceived"] @@ -72,6 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if terms_uri (nullable) is None + # and model_fields_set contains the field + if self.terms_uri is None and "terms_uri" in self.model_fields_set: + _dict['termsUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_request_status_for_profile200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_request_status_for_profile200_response.py new file mode 100644 index 0000000000..de29068196 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_request_status_for_profile200_response.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetRequestStatusForProfile200Response(BaseModel): + """ + ContractsGetRequestStatusForProfile200Response + """ # noqa: E501 + profile: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + status: Optional[StrictStr] + read_status: Optional[StrictStr] = Field(default=None, alias="readStatus") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["profile", "status", "readStatus"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'accepted', 'denied']): + raise ValueError("must be one of enum values ('pending', 'accepted', 'denied')") + return value + + @field_validator('read_status') + def read_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unseen', 'seen']): + raise ValueError("must be one of enum values ('unseen', 'seen')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetRequestStatusForProfile200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['profile'] = self.profile.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if read_status (nullable) is None + # and model_fields_set contains the field + if self.read_status is None and "read_status" in self.model_fields_set: + _dict['readStatus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetRequestStatusForProfile200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profile": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["profile"]) if obj.get("profile") is not None else None, + "status": obj.get("status"), + "readStatus": obj.get("readStatus") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response.py index c4b43e5e68..4856d0fb5f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response.py @@ -30,6 +30,7 @@ class ContractsGetTermsTransactionHistory200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ContractsGetTermsTransactionHistory200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ContractsGetTermsTransactionHistory200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner.py index 42cb279cb8..d8a2042c91 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.storage_resolve200_response_any_of1 import StorageResolve200ResponseAnyOf1 +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms from typing import Optional, Set from typing_extensions import Self @@ -29,11 +29,12 @@ class ContractsGetTermsTransactionHistory200ResponseRecordsInner(BaseModel): """ # noqa: E501 expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") one_time: Optional[StrictBool] = Field(default=None, alias="oneTime") - terms: Optional[StorageResolve200ResponseAnyOf1] = None - id: StrictStr + terms: Optional[ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms] = None + id: Optional[StrictStr] action: StrictStr - var_date: StrictStr = Field(alias="date") + var_date: Optional[StrictStr] = Field(alias="date") uris: Optional[List[StrictStr]] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["expiresAt", "oneTime", "terms", "id", "action", "date", "uris"] @field_validator('action') @@ -73,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -85,6 +88,26 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of terms if self.terms: _dict['terms'] = self.terms.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + return _dict @classmethod @@ -99,12 +122,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "expiresAt": obj.get("expiresAt"), "oneTime": obj.get("oneTime"), - "terms": StorageResolve200ResponseAnyOf1.from_dict(obj["terms"]) if obj.get("terms") is not None else None, + "terms": ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, "id": obj.get("id"), "action": obj.get("action"), "date": obj.get("date"), "uris": obj.get("uris") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms.py new file mode 100644 index 0000000000..fd7a399a4a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms(BaseModel): + """ + ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms + """ # noqa: E501 + read: ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + write: ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + denied_writers: Optional[List[StrictStr]] = Field(default=None, alias="deniedWriters") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["read", "write", "deniedWriters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite.from_dict(obj["write"]) if obj.get("write") is not None else None, + "deniedWriters": obj.get("deniedWriters") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write.py new file mode 100644 index 0000000000..5be552b8d0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite(BaseModel): + """ + ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + """ # noqa: E501 + credentials: ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + personal: Dict[str, StrictBool] + __properties: ClassVar[List[str]] = ["credentials", "personal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "credentials": ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": obj.get("personal") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py new file mode 100644 index 0000000000..a48d8a35b7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials(BaseModel): + """ + ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + """ # noqa: E501 + categories: Dict[str, StrictBool] + __properties: ClassVar[List[str]] = ["categories"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": obj.get("categories") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request.py index 6096a77e96..44ea7581e9 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request.py @@ -30,7 +30,7 @@ class ContractsGetTermsTransactionHistoryRequest(BaseModel): limit: Optional[Union[StrictFloat, StrictInt]] = 25 cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None - uri: StrictStr + uri: Optional[StrictStr] query: Optional[ContractsGetTermsTransactionHistoryRequestQuery] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "uri", "query"] @@ -76,6 +76,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query.py index 3b6b3cf9b8..6d30bb08df 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query.py @@ -21,6 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.contracts_get_terms_transaction_history_request_query_action import ContractsGetTermsTransactionHistoryRequestQueryAction from openapi_client.models.contracts_get_terms_transaction_history_request_query_date import ContractsGetTermsTransactionHistoryRequestQueryDate +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at import ContractsGetTermsTransactionHistoryRequestQueryExpiresAt from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms import ContractsGetTermsTransactionHistoryRequestQueryTerms from typing import Optional, Set from typing_extensions import Self @@ -32,7 +33,7 @@ class ContractsGetTermsTransactionHistoryRequestQuery(BaseModel): terms: Optional[ContractsGetTermsTransactionHistoryRequestQueryTerms] = None action: Optional[ContractsGetTermsTransactionHistoryRequestQueryAction] = None var_date: Optional[ContractsGetTermsTransactionHistoryRequestQueryDate] = Field(default=None, alias="date") - expires_at: Optional[ContractsGetTermsTransactionHistoryRequestQueryDate] = Field(default=None, alias="expiresAt") + expires_at: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAt] = Field(default=None, alias="expiresAt") one_time: Optional[StrictBool] = Field(default=None, alias="oneTime") __properties: ClassVar[List[str]] = ["terms", "action", "date", "expiresAt", "oneTime"] @@ -102,7 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "terms": ContractsGetTermsTransactionHistoryRequestQueryTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, "action": ContractsGetTermsTransactionHistoryRequestQueryAction.from_dict(obj["action"]) if obj.get("action") is not None else None, "date": ContractsGetTermsTransactionHistoryRequestQueryDate.from_dict(obj["date"]) if obj.get("date") is not None else None, - "expiresAt": ContractsGetTermsTransactionHistoryRequestQueryDate.from_dict(obj["expiresAt"]) if obj.get("expiresAt") is not None else None, + "expiresAt": ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.from_dict(obj["expiresAt"]) if obj.get("expiresAt") is not None else None, "oneTime": obj.get("oneTime") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of1.py index ad1846fa40..4ce350cef1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of1.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1(BaseModel): """ ContractsGetTermsTransactionHistoryRequestQueryDateAnyOf1 """ # noqa: E501 - eq: StrictStr = Field(alias="$eq") + eq: Optional[StrictStr] = Field(alias="$eq") __properties: ClassVar[List[str]] = ["$eq"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if eq (nullable) is None + # and model_fields_set contains the field + if self.eq is None and "eq" in self.model_fields_set: + _dict['$eq'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py index d756e26a0c..9456fd66fb 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf(BaseModel): """ ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf """ # noqa: E501 - gt: StrictStr = Field(alias="$gt") + gt: Optional[StrictStr] = Field(alias="$gt") __properties: ClassVar[List[str]] = ["$gt"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if gt (nullable) is None + # and model_fields_set contains the field + if self.gt is None and "gt" in self.model_fields_set: + _dict['$gt'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py index 86d484015b..c07d04898f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_date_any_of_any_of1.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1(BaseModel): """ ContractsGetTermsTransactionHistoryRequestQueryDateAnyOfAnyOf1 """ # noqa: E501 - lt: StrictStr = Field(alias="$lt") + lt: Optional[StrictStr] = Field(alias="$lt") __properties: ClassVar[List[str]] = ["$lt"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if lt (nullable) is None + # and model_fields_set contains the field + if self.lt is None and "lt" in self.model_fields_set: + _dict['$lt'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at.py new file mode 100644 index 0000000000..4a2231d86a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CONTRACTSGETTERMSTRANSACTIONHISTORYREQUESTQUERYEXPIRESAT_ANY_OF_SCHEMAS = ["ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf", "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1"] + +class ContractsGetTermsTransactionHistoryRequestQueryExpiresAt(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryExpiresAt + """ + + # data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + anyof_schema_1_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf] = None + # data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + anyof_schema_2_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf", "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAt.model_construct() + error_messages = [] + # validate data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + if not isinstance(v, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf`") + else: + return v + + # validate data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + if not isinstance(v, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in ContractsGetTermsTransactionHistoryRequestQueryExpiresAt with anyOf schemas: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf] = None + try: + instance.actual_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1] = None + try: + instance.actual_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into ContractsGetTermsTransactionHistoryRequestQueryExpiresAt with anyOf schemas: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of.py new file mode 100644 index 0000000000..56ad54fca5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CONTRACTSGETTERMSTRANSACTIONHISTORYREQUESTQUERYEXPIRESATANYOF_ANY_OF_SCHEMAS = ["ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf", "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1"] + +class ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + """ + + # data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + anyof_schema_1_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf] = None + # data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + anyof_schema_2_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf", "ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf.model_construct() + error_messages = [] + # validate data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + if not isinstance(v, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf`") + else: + return v + + # validate data type: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + if not isinstance(v, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf with anyOf schemas: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf] = None + try: + instance.actual_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1] = None + try: + instance.actual_instance = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf with anyOf schemas: ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf, ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py new file mode 100644 index 0000000000..c7090ba2c1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + """ # noqa: E501 + eq: StrictStr = Field(alias="$eq") + __properties: ClassVar[List[str]] = ["$eq"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$eq": obj.get("$eq") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py new file mode 100644 index 0000000000..cfeae1233b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + """ # noqa: E501 + gt: StrictStr = Field(alias="$gt") + __properties: ClassVar[List[str]] = ["$gt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$gt": obj.get("$gt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py new file mode 100644 index 0000000000..09919d9549 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + """ # noqa: E501 + lt: StrictStr = Field(alias="$lt") + __properties: ClassVar[List[str]] = ["$lt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$lt": obj.get("$lt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms.py index 9d11ebbb6d..e95c24ccee 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contracts_get_consented_contracts_request_query_read import ContractsGetConsentedContractsRequestQueryRead from openapi_client.models.contracts_get_consented_contracts_request_query_write import ContractsGetConsentedContractsRequestQueryWrite +from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read import ContractsGetTermsTransactionHistoryRequestQueryTermsRead from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class ContractsGetTermsTransactionHistoryRequestQueryTerms(BaseModel): """ ContractsGetTermsTransactionHistoryRequestQueryTerms """ # noqa: E501 - read: Optional[ContractsGetConsentedContractsRequestQueryRead] = None + read: Optional[ContractsGetTermsTransactionHistoryRequestQueryTermsRead] = None write: Optional[ContractsGetConsentedContractsRequestQueryWrite] = None __properties: ClassVar[List[str]] = ["read", "write"] @@ -89,7 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "read": ContractsGetConsentedContractsRequestQueryRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "read": ContractsGetTermsTransactionHistoryRequestQueryTermsRead.from_dict(obj["read"]) if obj.get("read") is not None else None, "write": ContractsGetConsentedContractsRequestQueryWrite.from_dict(obj["write"]) if obj.get("write") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms_read.py new file mode 100644 index 0000000000..a18c9fe169 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_get_terms_transaction_history_request_query_terms_read.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials import ContractsGetConsentedContractsRequestQueryReadCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsGetTermsTransactionHistoryRequestQueryTermsRead(BaseModel): + """ + ContractsGetTermsTransactionHistoryRequestQueryTermsRead + """ # noqa: E501 + anonymize: Optional[StrictBool] = None + credentials: Optional[ContractsGetConsentedContractsRequestQueryReadCredentials] = None + personal: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryTermsRead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsGetTermsTransactionHistoryRequestQueryTermsRead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "anonymize": obj.get("anonymize"), + "credentials": ContractsGetConsentedContractsRequestQueryReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": obj.get("personal") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_mark_contract_request_as_seen_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_mark_contract_request_as_seen_request.py new file mode 100644 index 0000000000..d15fd5ac31 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_mark_contract_request_as_seen_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsMarkContractRequestAsSeenRequest(BaseModel): + """ + ContractsMarkContractRequestAsSeenRequest + """ # noqa: E501 + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + target_profile_id: Optional[StrictStr] = Field(alias="targetProfileId") + __properties: ClassVar[List[str]] = ["contractUri", "targetProfileId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsMarkContractRequestAsSeenRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if target_profile_id (nullable) is None + # and model_fields_set contains the field + if self.target_profile_id is None and "target_profile_id" in self.model_fields_set: + _dict['targetProfileId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsMarkContractRequestAsSeenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractUri": obj.get("contractUri"), + "targetProfileId": obj.get("targetProfileId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_remove_auto_boosts_from_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_remove_auto_boosts_from_contract_request.py index da55162acc..870d004883 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_remove_auto_boosts_from_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_remove_auto_boosts_from_contract_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContractsRemoveAutoBoostsFromContractRequest(BaseModel): """ ContractsRemoveAutoBoostsFromContractRequest """ # noqa: E501 - contract_uri: StrictStr = Field(alias="contractUri") + contract_uri: Optional[StrictStr] = Field(alias="contractUri") boost_uris: List[StrictStr] = Field(alias="boostUris") __properties: ClassVar[List[str]] = ["contractUri", "boostUris"] @@ -69,6 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insight_share_request_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insight_share_request_request.py new file mode 100644 index 0000000000..539b3318ef --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insight_share_request_request.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsSendAiInsightShareRequestRequest(BaseModel): + """ + ContractsSendAiInsightShareRequestRequest + """ # noqa: E501 + child_profile_id: Optional[StrictStr] = Field(default=None, alias="childProfileId") + target_profile_id: Optional[StrictStr] = Field(alias="targetProfileId") + share_link: Optional[StrictStr] = Field(alias="shareLink") + __properties: ClassVar[List[str]] = ["childProfileId", "targetProfileId", "shareLink"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsSendAiInsightShareRequestRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if child_profile_id (nullable) is None + # and model_fields_set contains the field + if self.child_profile_id is None and "child_profile_id" in self.model_fields_set: + _dict['childProfileId'] = None + + # set to None if target_profile_id (nullable) is None + # and model_fields_set contains the field + if self.target_profile_id is None and "target_profile_id" in self.model_fields_set: + _dict['targetProfileId'] = None + + # set to None if share_link (nullable) is None + # and model_fields_set contains the field + if self.share_link is None and "share_link" in self.model_fields_set: + _dict['shareLink'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsSendAiInsightShareRequestRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "childProfileId": obj.get("childProfileId"), + "targetProfileId": obj.get("targetProfileId"), + "shareLink": obj.get("shareLink") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insights_contract_request_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insights_contract_request_request.py new file mode 100644 index 0000000000..36b9004fe0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_send_ai_insights_contract_request_request.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractsSendAiInsightsContractRequestRequest(BaseModel): + """ + ContractsSendAiInsightsContractRequestRequest + """ # noqa: E501 + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + target_profile_id: Optional[StrictStr] = Field(alias="targetProfileId") + share_link: Optional[StrictStr] = Field(alias="shareLink") + __properties: ClassVar[List[str]] = ["contractUri", "targetProfileId", "shareLink"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsSendAiInsightsContractRequestRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if target_profile_id (nullable) is None + # and model_fields_set contains the field + if self.target_profile_id is None and "target_profile_id" in self.model_fields_set: + _dict['targetProfileId'] = None + + # set to None if share_link (nullable) is None + # and model_fields_set contains the field + if self.share_link is None and "share_link" in self.model_fields_set: + _dict['shareLink'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsSendAiInsightsContractRequestRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractUri": obj.get("contractUri"), + "targetProfileId": obj.get("targetProfileId"), + "shareLink": obj.get("shareLink") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_sync_credentials_to_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_sync_credentials_to_contract_request.py index a8adce7eb4..f3755aa69a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_sync_credentials_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_sync_credentials_to_contract_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ContractsSyncCredentialsToContractRequest(BaseModel): """ ContractsSyncCredentialsToContractRequest """ # noqa: E501 - terms_uri: StrictStr = Field(alias="termsUri") + terms_uri: Optional[StrictStr] = Field(alias="termsUri") categories: Dict[str, List[StrictStr]] __properties: ClassVar[List[str]] = ["termsUri", "categories"] @@ -69,6 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if terms_uri (nullable) is None + # and model_fields_set contains the field + if self.terms_uri is None and "terms_uri" in self.model_fields_set: + _dict['termsUri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request.py index 05a2e42614..1fef844064 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contracts_consent_to_contract_request_terms import ContractsConsentToContractRequestTerms +from openapi_client.models.contracts_update_consented_contract_terms_request_terms import ContractsUpdateConsentedContractTermsRequestTerms from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ContractsUpdateConsentedContractTermsRequest(BaseModel): """ ContractsUpdateConsentedContractTermsRequest """ # noqa: E501 - uri: StrictStr - terms: ContractsConsentToContractRequestTerms + uri: Optional[StrictStr] + terms: ContractsUpdateConsentedContractTermsRequestTerms expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt") one_time: Optional[StrictBool] = Field(default=None, alias="oneTime") __properties: ClassVar[List[str]] = ["uri", "terms", "expiresAt", "oneTime"] @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of terms if self.terms: _dict['terms'] = self.terms.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + return _dict @classmethod @@ -88,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "uri": obj.get("uri"), - "terms": ContractsConsentToContractRequestTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, + "terms": ContractsUpdateConsentedContractTermsRequestTerms.from_dict(obj["terms"]) if obj.get("terms") is not None else None, "expiresAt": obj.get("expiresAt"), "oneTime": obj.get("oneTime") }) diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms.py new file mode 100644 index 0000000000..b713a189bc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_consent_to_contract_request_terms_write import ContractsConsentToContractRequestTermsWrite +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read import ContractsUpdateConsentedContractTermsRequestTermsRead +from typing import Optional, Set +from typing_extensions import Self + +class ContractsUpdateConsentedContractTermsRequestTerms(BaseModel): + """ + ContractsUpdateConsentedContractTermsRequestTerms + """ # noqa: E501 + read: Optional[ContractsUpdateConsentedContractTermsRequestTermsRead] = None + write: Optional[ContractsConsentToContractRequestTermsWrite] = None + denied_writers: Optional[List[StrictStr]] = Field(default=None, alias="deniedWriters") + __properties: ClassVar[List[str]] = ["read", "write", "deniedWriters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTerms from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTerms from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": ContractsUpdateConsentedContractTermsRequestTermsRead.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": ContractsConsentToContractRequestTermsWrite.from_dict(obj["write"]) if obj.get("write") is not None else None, + "deniedWriters": obj.get("deniedWriters") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read.py new file mode 100644 index 0000000000..cc0b37137c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials import ContractsUpdateConsentedContractTermsRequestTermsReadCredentials +from typing import Optional, Set +from typing_extensions import Self + +class ContractsUpdateConsentedContractTermsRequestTermsRead(BaseModel): + """ + ContractsUpdateConsentedContractTermsRequestTermsRead + """ # noqa: E501 + anonymize: Optional[StrictBool] = None + credentials: Optional[ContractsUpdateConsentedContractTermsRequestTermsReadCredentials] = None + personal: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTermsRead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTermsRead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "anonymize": obj.get("anonymize"), + "credentials": ContractsUpdateConsentedContractTermsRequestTermsReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "personal": obj.get("personal") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read_credentials.py new file mode 100644 index 0000000000..4fdbd8ce85 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_update_consented_contract_terms_request_terms_read_credentials.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue +from typing import Optional, Set +from typing_extensions import Self + +class ContractsUpdateConsentedContractTermsRequestTermsReadCredentials(BaseModel): + """ + ContractsUpdateConsentedContractTermsRequestTermsReadCredentials + """ # noqa: E501 + share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") + sharing: Optional[StrictBool] = None + categories: Optional[Dict[str, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue]] = None + __properties: ClassVar[List[str]] = ["shareAll", "sharing", "categories"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in categories (dict) + _field_dict = {} + if self.categories: + for _key_categories in self.categories: + if self.categories[_key_categories]: + _field_dict[_key_categories] = self.categories[_key_categories].to_dict() + _dict['categories'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractsUpdateConsentedContractTermsRequestTermsReadCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shareAll": obj.get("shareAll"), + "sharing": obj.get("sharing"), + "categories": dict( + (_k, ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue.from_dict(_v)) + for _k, _v in obj["categories"].items() + ) + if obj.get("categories") is not None + else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request.py index 2421d90254..9511819934 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.boost_send_boost_request_credential import BoostSendBoostRequestCredential +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_write_credential_to_contract_request_credential import ContractsWriteCredentialToContractRequestCredential from typing import Optional, Set from typing_extensions import Self @@ -27,10 +27,10 @@ class ContractsWriteCredentialToContractRequest(BaseModel): """ ContractsWriteCredentialToContractRequest """ # noqa: E501 - did: StrictStr - contract_uri: StrictStr = Field(alias="contractUri") - boost_uri: StrictStr = Field(alias="boostUri") - credential: BoostSendBoostRequestCredential + did: Optional[StrictStr] + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + credential: ContractsWriteCredentialToContractRequestCredential __properties: ClassVar[List[str]] = ["did", "contractUri", "boostUri", "credential"] model_config = ConfigDict( @@ -75,6 +75,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of credential if self.credential: _dict['credential'] = self.credential.to_dict() + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + return _dict @classmethod @@ -90,7 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "did": obj.get("did"), "contractUri": obj.get("contractUri"), "boostUri": obj.get("boostUri"), - "credential": BoostSendBoostRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + "credential": ContractsWriteCredentialToContractRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request_credential.py new file mode 100644 index 0000000000..c53706c78f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_request_credential.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CONTRACTSWRITECREDENTIALTOCONTRACTREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOf", "CredentialSendCredentialRequestCredentialAnyOf1"] + +class ContractsWriteCredentialToContractRequestCredential(BaseModel): + """ + ContractsWriteCredentialToContractRequestCredential + """ + + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + # data type: CredentialSendCredentialRequestCredentialAnyOf1 + anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOf", "CredentialSendCredentialRequestCredentialAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = ContractsWriteCredentialToContractRequestCredential.model_construct() + error_messages = [] + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") + else: + return v + + # validate data type: CredentialSendCredentialRequestCredentialAnyOf1 + if not isinstance(v, CredentialSendCredentialRequestCredentialAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `CredentialSendCredentialRequestCredentialAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in ContractsWriteCredentialToContractRequestCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + try: + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None + try: + instance.actual_instance = CredentialSendCredentialRequestCredentialAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into ContractsWriteCredentialToContractRequestCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_via_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_via_signing_authority_request.py index bbaa12d103..031ee96f89 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_via_signing_authority_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/contracts_write_credential_to_contract_via_signing_authority_request.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.boost_send_boost_via_signing_authority_request_signing_authority import BoostSendBoostViaSigningAuthorityRequestSigningAuthority +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority import ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority from typing import Optional, Set from typing_extensions import Self @@ -27,10 +27,10 @@ class ContractsWriteCredentialToContractViaSigningAuthorityRequest(BaseModel): """ ContractsWriteCredentialToContractViaSigningAuthorityRequest """ # noqa: E501 - did: StrictStr - contract_uri: StrictStr = Field(alias="contractUri") - boost_uri: StrictStr = Field(alias="boostUri") - signing_authority: BoostSendBoostViaSigningAuthorityRequestSigningAuthority = Field(alias="signingAuthority") + did: Optional[StrictStr] + contract_uri: Optional[StrictStr] = Field(alias="contractUri") + boost_uri: Optional[StrictStr] = Field(alias="boostUri") + signing_authority: ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority = Field(alias="signingAuthority") __properties: ClassVar[List[str]] = ["did", "contractUri", "boostUri", "signingAuthority"] model_config = ConfigDict( @@ -75,6 +75,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of signing_authority if self.signing_authority: _dict['signingAuthority'] = self.signing_authority.to_dict() + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + + # set to None if contract_uri (nullable) is None + # and model_fields_set contains the field + if self.contract_uri is None and "contract_uri" in self.model_fields_set: + _dict['contractUri'] = None + + # set to None if boost_uri (nullable) is None + # and model_fields_set contains the field + if self.boost_uri is None and "boost_uri" in self.model_fields_set: + _dict['boostUri'] = None + return _dict @classmethod @@ -90,7 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "did": obj.get("did"), "contractUri": obj.get("contractUri"), "boostUri": obj.get("boostUri"), - "signingAuthority": BoostSendBoostViaSigningAuthorityRequestSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None + "signingAuthority": ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request.py index c53a238eb4..52121c1430 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_options import BoostSendBoostRequestOptions +from openapi_client.models.credential_accept_credential_request_options import CredentialAcceptCredentialRequestOptions from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class CredentialAcceptCredentialRequest(BaseModel): """ CredentialAcceptCredentialRequest """ # noqa: E501 - uri: StrictStr - options: Optional[BoostSendBoostRequestOptions] = None + uri: Optional[StrictStr] + options: Optional[CredentialAcceptCredentialRequestOptions] = None __properties: ClassVar[List[str]] = ["uri", "options"] model_config = ConfigDict( @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of options if self.options: _dict['options'] = self.options.to_dict() + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod @@ -86,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "uri": obj.get("uri"), - "options": BoostSendBoostRequestOptions.from_dict(obj["options"]) if obj.get("options") is not None else None + "options": CredentialAcceptCredentialRequestOptions.from_dict(obj["options"]) if obj.get("options") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request_options.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request_options.py new file mode 100644 index 0000000000..dcb3bdc547 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_accept_credential_request_options.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CredentialAcceptCredentialRequestOptions(BaseModel): + """ + CredentialAcceptCredentialRequestOptions + """ # noqa: E501 + skip_notification: Optional[StrictBool] = Field(default=False, alias="skipNotification") + metadata: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["skipNotification", "metadata"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CredentialAcceptCredentialRequestOptions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CredentialAcceptCredentialRequestOptions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skipNotification": obj.get("skipNotification") if obj.get("skipNotification") is not None else False, + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_received_credentials200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_received_credentials200_response_inner.py index 09809c8941..d135d2f358 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_received_credentials200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_received_credentials200_response_inner.py @@ -27,12 +27,31 @@ class CredentialReceivedCredentials200ResponseInner(BaseModel): """ CredentialReceivedCredentials200ResponseInner """ # noqa: E501 - uri: StrictStr - to: StrictStr - var_from: StrictStr = Field(alias="from") + uri: Optional[StrictStr] + to: Optional[StrictStr] + var_from: Optional[StrictStr] = Field(alias="from") sent: datetime received: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["uri", "to", "from", "sent", "received"] + metadata: Optional[Dict[str, Any]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uri", "to", "from", "sent", "received", "metadata"] + + @field_validator('sent') + def sent_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value + + @field_validator('received') + def received_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$", value): + raise ValueError(r"must validate the regular expression /^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/") + return value model_config = ConfigDict( populate_by_name=True, @@ -64,8 +83,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -73,6 +94,31 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + + # set to None if to (nullable) is None + # and model_fields_set contains the field + if self.to is None and "to" in self.model_fields_set: + _dict['to'] = None + + # set to None if var_from (nullable) is None + # and model_fields_set contains the field + if self.var_from is None and "var_from" in self.model_fields_set: + _dict['from'] = None + + # set to None if received (nullable) is None + # and model_fields_set contains the field + if self.received is None and "received" in self.model_fields_set: + _dict['received'] = None + return _dict @classmethod @@ -89,8 +135,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "to": obj.get("to"), "from": obj.get("from"), "sent": obj.get("sent"), - "received": obj.get("received") + "received": obj.get("received"), + "metadata": obj.get("metadata") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request.py index 6c72b575a9..3c5a72b5da 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.credential_send_credential_request_credential import CredentialSendCredentialRequestCredential from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,8 @@ class CredentialSendCredentialRequest(BaseModel): CredentialSendCredentialRequest """ # noqa: E501 credential: CredentialSendCredentialRequestCredential - __properties: ClassVar[List[str]] = ["credential"] + metadata: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["credential", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "credential": CredentialSendCredentialRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + "credential": CredentialSendCredentialRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, + "metadata": obj.get("metadata") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential.py index 2c81f9c8d5..1ab997ffc9 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential.py @@ -19,13 +19,13 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_send_boost_request_credential_any_of1 import BoostSendBoostRequestCredentialAnyOf1 from openapi_client.models.credential_send_credential_request_credential_any_of import CredentialSendCredentialRequestCredentialAnyOf +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -CREDENTIALSENDCREDENTIALREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOf1", "CredentialSendCredentialRequestCredentialAnyOf"] +CREDENTIALSENDCREDENTIALREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["CredentialSendCredentialRequestCredentialAnyOf", "CredentialSendCredentialRequestCredentialAnyOf1"] class CredentialSendCredentialRequestCredential(BaseModel): """ @@ -34,13 +34,13 @@ class CredentialSendCredentialRequestCredential(BaseModel): # data type: CredentialSendCredentialRequestCredentialAnyOf anyof_schema_1_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf] = None - # data type: BoostSendBoostRequestCredentialAnyOf1 - anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # data type: CredentialSendCredentialRequestCredentialAnyOf1 + anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOf1, CredentialSendCredentialRequestCredentialAnyOf]] = None + actual_instance: Optional[Union[CredentialSendCredentialRequestCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOf1", "CredentialSendCredentialRequestCredentialAnyOf" } + any_of_schemas: Set[str] = { "CredentialSendCredentialRequestCredentialAnyOf", "CredentialSendCredentialRequestCredentialAnyOf1" } model_config = { "validate_assignment": True, @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: BoostSendBoostRequestCredentialAnyOf1 - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf1`") + # validate data type: CredentialSendCredentialRequestCredentialAnyOf1 + if not isinstance(v, CredentialSendCredentialRequestCredentialAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `CredentialSendCredentialRequestCredentialAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in CredentialSendCredentialRequestCredential with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, CredentialSendCredentialRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in CredentialSendCredentialRequestCredential with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf1.from_json(json_str) + instance.actual_instance = CredentialSendCredentialRequestCredentialAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into CredentialSendCredentialRequestCredential with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, CredentialSendCredentialRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into CredentialSendCredentialRequestCredential with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOf1, CredentialSendCredentialRequestCredentialAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], CredentialSendCredentialRequestCredentialAnyOf, CredentialSendCredentialRequestCredentialAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of.py index 8a56e1e770..4f4be130ba 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of.py @@ -20,12 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf -from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -CREDENTIALSENDCREDENTIALREQUESTCREDENTIALANYOF_ANY_OF_SCHEMAS = ["BoostCreateBoostRequestCredentialAnyOf", "BoostSendBoostRequestCredentialAnyOf"] +CREDENTIALSENDCREDENTIALREQUESTCREDENTIALANYOF_ANY_OF_SCHEMAS = ["BoostCreateBoostRequestCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf"] class CredentialSendCredentialRequestCredentialAnyOf(BaseModel): """ @@ -34,13 +34,13 @@ class CredentialSendCredentialRequestCredentialAnyOf(BaseModel): # data type: BoostCreateBoostRequestCredentialAnyOf anyof_schema_1_validator: Optional[BoostCreateBoostRequestCredentialAnyOf] = None - # data type: BoostSendBoostRequestCredentialAnyOf - anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf]] = None + actual_instance: Optional[Union[BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostCreateBoostRequestCredentialAnyOf", "BoostSendBoostRequestCredentialAnyOf" } + any_of_schemas: Set[str] = { "BoostCreateBoostRequestCredentialAnyOf", "BoostSendRequestTemplateCredentialAnyOf" } model_config = { "validate_assignment": True, @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: BoostSendBoostRequestCredentialAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf`") + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in CredentialSendCredentialRequestCredentialAnyOf with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in CredentialSendCredentialRequestCredentialAnyOf with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # anyof_schema_2_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf.from_json(json_str) + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into CredentialSendCredentialRequestCredentialAnyOf with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into CredentialSendCredentialRequestCredentialAnyOf with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostCreateBoostRequestCredentialAnyOf, BoostSendBoostRequestCredentialAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostCreateBoostRequestCredentialAnyOf, BoostSendRequestTemplateCredentialAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1.py new file mode 100644 index 0000000000..6062fc35e2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner +from typing import Optional, Set +from typing_extensions import Self + +class CredentialSendCredentialRequestCredentialAnyOf1(BaseModel): + """ + CredentialSendCredentialRequestCredentialAnyOf1 + """ # noqa: E501 + protected: StrictStr + iv: StrictStr + ciphertext: StrictStr + tag: StrictStr + aad: Optional[StrictStr] = None + recipients: Optional[List[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner]] = None + __properties: ClassVar[List[str]] = ["protected", "iv", "ciphertext", "tag", "aad", "recipients"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in recipients (list) + _items = [] + if self.recipients: + for _item_recipients in self.recipients: + if _item_recipients: + _items.append(_item_recipients.to_dict()) + _dict['recipients'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "protected": obj.get("protected"), + "iv": obj.get("iv"), + "ciphertext": obj.get("ciphertext"), + "tag": obj.get("tag"), + "aad": obj.get("aad"), + "recipients": [CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner.from_dict(_item) for _item in obj["recipients"]] if obj.get("recipients") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner.py new file mode 100644 index 0000000000..7c98076a49 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader +from typing import Optional, Set +from typing_extensions import Self + +class CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner(BaseModel): + """ + CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner + """ # noqa: E501 + header: CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + encrypted_key: StrictStr + __properties: ClassVar[List[str]] = ["header", "encrypted_key"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of header + if self.header: + _dict['header'] = self.header.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "header": CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader.from_dict(obj["header"]) if obj.get("header") is not None else None, + "encrypted_key": obj.get("encrypted_key") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header.py new file mode 100644 index 0000000000..4f094cdd8e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header_epk import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk +from typing import Optional, Set +from typing_extensions import Self + +class CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader(BaseModel): + """ + CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + """ # noqa: E501 + alg: StrictStr + iv: StrictStr + tag: StrictStr + epk: Optional[CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk] = None + kid: Optional[StrictStr] = None + apv: Optional[StrictStr] = None + apu: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["alg", "iv", "tag", "epk", "kid", "apv", "apu"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of epk + if self.epk: + _dict['epk'] = self.epk.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alg": obj.get("alg"), + "iv": obj.get("iv"), + "tag": obj.get("tag"), + "epk": CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk.from_dict(obj["epk"]) if obj.get("epk") is not None else None, + "kid": obj.get("kid"), + "apv": obj.get("apv"), + "apu": obj.get("apu") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py new file mode 100644 index 0000000000..c999009acc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk(BaseModel): + """ + CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk + """ # noqa: E501 + kty: Optional[StrictStr] = None + crv: Optional[StrictStr] = None + x: Optional[StrictStr] = None + y: Optional[StrictStr] = None + n: Optional[StrictStr] = None + d: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["kty", "crv", "x", "y", "n", "d"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "crv": obj.get("crv"), + "x": obj.get("x"), + "y": obj.get("y"), + "n": obj.get("n"), + "d": obj.get("d") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request.py index 84e487bc7c..8d88c09053 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request.py @@ -19,9 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType -from openapi_client.models.boost_send_boost_request_credential_any_of_proof import BoostSendBoostRequestCredentialAnyOfProof +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner from openapi_client.models.did_metadata_add_did_metadata_request_service_inner import DidMetadataAddDidMetadataRequestServiceInner from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner import DidMetadataAddDidMetadataRequestVerificationMethodInner from typing import Optional, Set @@ -31,19 +32,19 @@ class DidMetadataAddDidMetadataRequest(BaseModel): """ DidMetadataAddDidMetadataRequest """ # noqa: E501 - context: Optional[List[BoostSendBoostRequestCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") id: Optional[StrictStr] = None also_known_as: Optional[StrictStr] = Field(default=None, alias="alsoKnownAs") - controller: Optional[BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType] = None + controller: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None verification_method: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="verificationMethod") - authentication: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = None - assertion_method: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="assertionMethod") - key_agreement: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="keyAgreement") - capability_invocation: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="capabilityInvocation") - capability_delegation: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="capabilityDelegation") - public_key: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="publicKey") + authentication: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = None + assertion_method: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="assertionMethod") + key_agreement: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="keyAgreement") + capability_invocation: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="capabilityInvocation") + capability_delegation: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="capabilityDelegation") + public_key: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="publicKey") service: Optional[List[DidMetadataAddDidMetadataRequestServiceInner]] = None - proof: Optional[BoostSendBoostRequestCredentialAnyOfProof] = None + proof: Optional[BoostSendRequestTemplateCredentialAnyOfProof] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["@context", "id", "alsoKnownAs", "controller", "verificationMethod", "authentication", "assertionMethod", "keyAgreement", "capabilityInvocation", "capabilityDelegation", "publicKey", "service", "proof"] @@ -162,6 +163,16 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if also_known_as (nullable) is None + # and model_fields_set contains the field + if self.also_known_as is None and "also_known_as" in self.model_fields_set: + _dict['alsoKnownAs'] = None + return _dict @classmethod @@ -174,19 +185,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@context": [BoostSendBoostRequestCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, "id": obj.get("id"), "alsoKnownAs": obj.get("alsoKnownAs"), - "controller": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "controller": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, "verificationMethod": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["verificationMethod"]] if obj.get("verificationMethod") is not None else None, - "authentication": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, - "assertionMethod": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, - "keyAgreement": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, - "capabilityInvocation": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, - "capabilityDelegation": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, - "publicKey": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, + "authentication": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, + "assertionMethod": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, + "keyAgreement": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, + "capabilityInvocation": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, + "capabilityDelegation": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, + "publicKey": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, "service": [DidMetadataAddDidMetadataRequestServiceInner.from_dict(_item) for _item in obj["service"]] if obj.get("service") is not None else None, - "proof": BoostSendBoostRequestCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner.py new file mode 100644 index 0000000000..b18c5e0d67 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +DIDMETADATAADDDIDMETADATAREQUESTAUTHENTICATIONINNER_ANY_OF_SCHEMAS = ["DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf", "str"] + +class DidMetadataAddDidMetadataRequestAuthenticationInner(BaseModel): + """ + DidMetadataAddDidMetadataRequestAuthenticationInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + anyof_schema_2_validator: Optional[DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = DidMetadataAddDidMetadataRequestAuthenticationInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + if not isinstance(v, DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in DidMetadataAddDidMetadataRequestAuthenticationInner with anyOf schemas: DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf] = None + try: + instance.actual_instance = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into DidMetadataAddDidMetadataRequestAuthenticationInner with anyOf schemas: DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of.py new file mode 100644 index 0000000000..614fea6460 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf(BaseModel): + """ + DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + """ # noqa: E501 + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: StrictStr + type: StrictStr + controller: StrictStr + public_key_jwk: Optional[DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk] = Field(default=None, alias="publicKeyJwk") + public_key_base58: Optional[StrictStr] = Field(default=None, alias="publicKeyBase58") + public_key_multibase: Optional[StrictStr] = Field(default=None, alias="publicKeyMultibase") + block_chain_account_id: Optional[StrictStr] = Field(default=None, alias="blockChainAccountId") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "controller", "publicKeyJwk", "publicKeyBase58", "publicKeyMultibase", "blockChainAccountId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of public_key_jwk + if self.public_key_jwk: + _dict['publicKeyJwk'] = self.public_key_jwk.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "controller": obj.get("controller"), + "publicKeyJwk": DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk.from_dict(obj["publicKeyJwk"]) if obj.get("publicKeyJwk") is not None else None, + "publicKeyBase58": obj.get("publicKeyBase58"), + "publicKeyMultibase": obj.get("publicKeyMultibase"), + "blockChainAccountId": obj.get("blockChainAccountId") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..ce8e30c4e1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk(BaseModel): + """ + DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk + """ # noqa: E501 + kty: StrictStr + crv: StrictStr + x: StrictStr + y: Optional[StrictStr] = None + n: Optional[StrictStr] = None + d: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["kty", "crv", "x", "y", "n", "d"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "crv": obj.get("crv"), + "x": obj.get("x"), + "y": obj.get("y"), + "n": obj.get("n"), + "d": obj.get("d") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner.py index 2be10e217e..8b3b86edca 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_service_inner.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner_service_endpoint import DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint +from typing_extensions import Annotated +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType from typing import Optional, Set from typing_extensions import Self @@ -28,9 +28,9 @@ class DidMetadataAddDidMetadataRequestServiceInner(BaseModel): """ DidMetadataAddDidMetadataRequestServiceInner """ # noqa: E501 - id: StrictStr - type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType - service_endpoint: Optional[DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint] = Field(default=None, alias="serviceEndpoint") + id: Optional[StrictStr] + type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + service_endpoint: Optional[Annotated[List[Any], Field(min_length=1)]] = Field(alias="serviceEndpoint") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "type", "serviceEndpoint"] @@ -78,14 +78,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of type if self.type: _dict['type'] = self.type.to_dict() - # override the default output from pydantic by calling `to_dict()` of service_endpoint - if self.service_endpoint: - _dict['serviceEndpoint'] = self.service_endpoint.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if service_endpoint (nullable) is None + # and model_fields_set contains the field + if self.service_endpoint is None and "service_endpoint" in self.model_fields_set: + _dict['serviceEndpoint'] = None + return _dict @classmethod @@ -99,8 +106,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), - "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, - "serviceEndpoint": DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint.from_dict(obj["serviceEndpoint"]) if obj.get("serviceEndpoint") is not None else None + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "serviceEndpoint": obj.get("serviceEndpoint") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of.py index 99e927d98d..15e2ed8ede 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk from typing import Optional, Set from typing_extensions import Self @@ -28,15 +28,16 @@ class DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf(BaseModel): """ DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOf """ # noqa: E501 - context: Optional[List[BoostSendBoostRequestCredentialAnyOfContextInner]] = Field(default=None, alias="@context") - id: StrictStr - type: StrictStr - controller: StrictStr + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: Optional[StrictStr] + type: Optional[StrictStr] + controller: Optional[StrictStr] public_key_jwk: Optional[DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk] = Field(default=None, alias="publicKeyJwk") public_key_base58: Optional[StrictStr] = Field(default=None, alias="publicKeyBase58") + public_key_multibase: Optional[StrictStr] = Field(default=None, alias="publicKeyMultibase") block_chain_account_id: Optional[StrictStr] = Field(default=None, alias="blockChainAccountId") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["@context", "id", "type", "controller", "publicKeyJwk", "publicKeyBase58", "blockChainAccountId"] + __properties: ClassVar[List[str]] = ["@context", "id", "type", "controller", "publicKeyJwk", "publicKeyBase58", "publicKeyMultibase", "blockChainAccountId"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,36 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if controller (nullable) is None + # and model_fields_set contains the field + if self.controller is None and "controller" in self.model_fields_set: + _dict['controller'] = None + + # set to None if public_key_base58 (nullable) is None + # and model_fields_set contains the field + if self.public_key_base58 is None and "public_key_base58" in self.model_fields_set: + _dict['publicKeyBase58'] = None + + # set to None if public_key_multibase (nullable) is None + # and model_fields_set contains the field + if self.public_key_multibase is None and "public_key_multibase" in self.model_fields_set: + _dict['publicKeyMultibase'] = None + + # set to None if block_chain_account_id (nullable) is None + # and model_fields_set contains the field + if self.block_chain_account_id is None and "block_chain_account_id" in self.model_fields_set: + _dict['blockChainAccountId'] = None + return _dict @classmethod @@ -106,12 +137,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@context": [BoostSendBoostRequestCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, "id": obj.get("id"), "type": obj.get("type"), "controller": obj.get("controller"), "publicKeyJwk": DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk.from_dict(obj["publicKeyJwk"]) if obj.get("publicKeyJwk") is not None else None, "publicKeyBase58": obj.get("publicKeyBase58"), + "publicKeyMultibase": obj.get("publicKeyMultibase"), "blockChainAccountId": obj.get("blockChainAccountId") }) # store additional fields in additional_properties diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py index 41ca5916b2..df6d4c3a86 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_add_did_metadata_request_verification_method_inner_any_of_public_key_jwk.py @@ -26,9 +26,9 @@ class DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk(B """ DidMetadataAddDidMetadataRequestVerificationMethodInnerAnyOfPublicKeyJwk """ # noqa: E501 - kty: StrictStr - crv: StrictStr - x: StrictStr + kty: Optional[StrictStr] + crv: Optional[StrictStr] + x: Optional[StrictStr] y: Optional[StrictStr] = None n: Optional[StrictStr] = None d: Optional[StrictStr] = None @@ -73,6 +73,36 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if kty (nullable) is None + # and model_fields_set contains the field + if self.kty is None and "kty" in self.model_fields_set: + _dict['kty'] = None + + # set to None if crv (nullable) is None + # and model_fields_set contains the field + if self.crv is None and "crv" in self.model_fields_set: + _dict['crv'] = None + + # set to None if x (nullable) is None + # and model_fields_set contains the field + if self.x is None and "x" in self.model_fields_set: + _dict['x'] = None + + # set to None if y (nullable) is None + # and model_fields_set contains the field + if self.y is None and "y" in self.model_fields_set: + _dict['y'] = None + + # set to None if n (nullable) is None + # and model_fields_set contains the field + if self.n is None and "n" in self.model_fields_set: + _dict['n'] = None + + # set to None if d (nullable) is None + # and model_fields_set contains the field + if self.d is None and "d" in self.model_fields_set: + _dict['d'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response.py new file mode 100644 index 0000000000..4cc0e8d8c5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner import DidMetadataGetDidMetadata200ResponseVerificationMethodInner +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200Response(BaseModel): + """ + DidMetadataGetDidMetadata200Response + """ # noqa: E501 + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: Optional[StrictStr] = None + also_known_as: Optional[StrictStr] = Field(default=None, alias="alsoKnownAs") + controller: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + verification_method: Optional[List[DidMetadataGetDidMetadata200ResponseVerificationMethodInner]] = Field(default=None, alias="verificationMethod") + authentication: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = None + assertion_method: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="assertionMethod") + key_agreement: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="keyAgreement") + capability_invocation: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="capabilityInvocation") + capability_delegation: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="capabilityDelegation") + public_key: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="publicKey") + service: Optional[List[DidMetadataGetDidMetadata200ResponseServiceInner]] = None + proof: Optional[BoostSendRequestTemplateCredentialAnyOfProof] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "alsoKnownAs", "controller", "verificationMethod", "authentication", "assertionMethod", "keyAgreement", "capabilityInvocation", "capabilityDelegation", "publicKey", "service", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in verification_method (list) + _items = [] + if self.verification_method: + for _item_verification_method in self.verification_method: + if _item_verification_method: + _items.append(_item_verification_method.to_dict()) + _dict['verificationMethod'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in authentication (list) + _items = [] + if self.authentication: + for _item_authentication in self.authentication: + if _item_authentication: + _items.append(_item_authentication.to_dict()) + _dict['authentication'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in assertion_method (list) + _items = [] + if self.assertion_method: + for _item_assertion_method in self.assertion_method: + if _item_assertion_method: + _items.append(_item_assertion_method.to_dict()) + _dict['assertionMethod'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in key_agreement (list) + _items = [] + if self.key_agreement: + for _item_key_agreement in self.key_agreement: + if _item_key_agreement: + _items.append(_item_key_agreement.to_dict()) + _dict['keyAgreement'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in capability_invocation (list) + _items = [] + if self.capability_invocation: + for _item_capability_invocation in self.capability_invocation: + if _item_capability_invocation: + _items.append(_item_capability_invocation.to_dict()) + _dict['capabilityInvocation'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in capability_delegation (list) + _items = [] + if self.capability_delegation: + for _item_capability_delegation in self.capability_delegation: + if _item_capability_delegation: + _items.append(_item_capability_delegation.to_dict()) + _dict['capabilityDelegation'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in public_key (list) + _items = [] + if self.public_key: + for _item_public_key in self.public_key: + if _item_public_key: + _items.append(_item_public_key.to_dict()) + _dict['publicKey'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in service (list) + _items = [] + if self.service: + for _item_service in self.service: + if _item_service: + _items.append(_item_service.to_dict()) + _dict['service'] = _items + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if also_known_as (nullable) is None + # and model_fields_set contains the field + if self.also_known_as is None and "also_known_as" in self.model_fields_set: + _dict['alsoKnownAs'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "alsoKnownAs": obj.get("alsoKnownAs"), + "controller": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "verificationMethod": [DidMetadataGetDidMetadata200ResponseVerificationMethodInner.from_dict(_item) for _item in obj["verificationMethod"]] if obj.get("verificationMethod") is not None else None, + "authentication": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, + "assertionMethod": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, + "keyAgreement": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, + "capabilityInvocation": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, + "capabilityDelegation": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, + "publicKey": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, + "service": [DidMetadataGetDidMetadata200ResponseServiceInner.from_dict(_item) for _item in obj["service"]] if obj.get("service") is not None else None, + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner.py new file mode 100644 index 0000000000..3aee68f65b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +DIDMETADATAGETDIDMETADATA200RESPONSEAUTHENTICATIONINNER_ANY_OF_SCHEMAS = ["DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf", "str"] + +class DidMetadataGetDidMetadata200ResponseAuthenticationInner(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseAuthenticationInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + anyof_schema_2_validator: Optional[DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = DidMetadataGetDidMetadata200ResponseAuthenticationInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + if not isinstance(v, DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in DidMetadataGetDidMetadata200ResponseAuthenticationInner with anyOf schemas: DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf] = None + try: + instance.actual_instance = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into DidMetadataGetDidMetadata200ResponseAuthenticationInner with anyOf schemas: DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of.py new file mode 100644 index 0000000000..f923af8047 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + """ # noqa: E501 + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: StrictStr + type: StrictStr + controller: StrictStr + public_key_jwk: Optional[DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk] = Field(default=None, alias="publicKeyJwk") + public_key_base58: Optional[StrictStr] = Field(default=None, alias="publicKeyBase58") + public_key_multibase: Optional[StrictStr] = Field(default=None, alias="publicKeyMultibase") + block_chain_account_id: Optional[StrictStr] = Field(default=None, alias="blockChainAccountId") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "controller", "publicKeyJwk", "publicKeyBase58", "publicKeyMultibase", "blockChainAccountId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of public_key_jwk + if self.public_key_jwk: + _dict['publicKeyJwk'] = self.public_key_jwk.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "controller": obj.get("controller"), + "publicKeyJwk": DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk.from_dict(obj["publicKeyJwk"]) if obj.get("publicKeyJwk") is not None else None, + "publicKeyBase58": obj.get("publicKeyBase58"), + "publicKeyMultibase": obj.get("publicKeyMultibase"), + "blockChainAccountId": obj.get("blockChainAccountId") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..835129b3c4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk + """ # noqa: E501 + kty: StrictStr + crv: StrictStr + x: StrictStr + y: Optional[StrictStr] = None + n: Optional[StrictStr] = None + d: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["kty", "crv", "x", "y", "n", "d"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "crv": obj.get("crv"), + "x": obj.get("x"), + "y": obj.get("y"), + "n": obj.get("n"), + "d": obj.get("d") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_service_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_service_inner.py new file mode 100644 index 0000000000..b19fa8ceb8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_service_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200ResponseServiceInner(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseServiceInner + """ # noqa: E501 + id: StrictStr + type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + service_endpoint: Optional[Annotated[List[Any], Field(min_length=1)]] = Field(alias="serviceEndpoint") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "serviceEndpoint"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseServiceInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if service_endpoint (nullable) is None + # and model_fields_set contains the field + if self.service_endpoint is None and "service_endpoint" in self.model_fields_set: + _dict['serviceEndpoint'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseServiceInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "serviceEndpoint": obj.get("serviceEndpoint") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner.py new file mode 100644 index 0000000000..ee7a75d8eb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +DIDMETADATAGETDIDMETADATA200RESPONSEVERIFICATIONMETHODINNER_ANY_OF_SCHEMAS = ["DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf", "str"] + +class DidMetadataGetDidMetadata200ResponseVerificationMethodInner(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseVerificationMethodInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + anyof_schema_2_validator: Optional[DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = DidMetadataGetDidMetadata200ResponseVerificationMethodInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + if not isinstance(v, DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in DidMetadataGetDidMetadata200ResponseVerificationMethodInner with anyOf schemas: DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf] = None + try: + instance.actual_instance = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into DidMetadataGetDidMetadata200ResponseVerificationMethodInner with anyOf schemas: DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py new file mode 100644 index 0000000000..c0c9d3c42b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + """ # noqa: E501 + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: Optional[StrictStr] + type: Optional[StrictStr] + controller: Optional[StrictStr] + public_key_jwk: Optional[DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk] = Field(default=None, alias="publicKeyJwk") + public_key_base58: Optional[StrictStr] = Field(default=None, alias="publicKeyBase58") + public_key_multibase: Optional[StrictStr] = Field(default=None, alias="publicKeyMultibase") + block_chain_account_id: Optional[StrictStr] = Field(default=None, alias="blockChainAccountId") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "controller", "publicKeyJwk", "publicKeyBase58", "publicKeyMultibase", "blockChainAccountId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of public_key_jwk + if self.public_key_jwk: + _dict['publicKeyJwk'] = self.public_key_jwk.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if controller (nullable) is None + # and model_fields_set contains the field + if self.controller is None and "controller" in self.model_fields_set: + _dict['controller'] = None + + # set to None if public_key_base58 (nullable) is None + # and model_fields_set contains the field + if self.public_key_base58 is None and "public_key_base58" in self.model_fields_set: + _dict['publicKeyBase58'] = None + + # set to None if public_key_multibase (nullable) is None + # and model_fields_set contains the field + if self.public_key_multibase is None and "public_key_multibase" in self.model_fields_set: + _dict['publicKeyMultibase'] = None + + # set to None if block_chain_account_id (nullable) is None + # and model_fields_set contains the field + if self.block_chain_account_id is None and "block_chain_account_id" in self.model_fields_set: + _dict['blockChainAccountId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "controller": obj.get("controller"), + "publicKeyJwk": DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk.from_dict(obj["publicKeyJwk"]) if obj.get("publicKeyJwk") is not None else None, + "publicKeyBase58": obj.get("publicKeyBase58"), + "publicKeyMultibase": obj.get("publicKeyMultibase"), + "blockChainAccountId": obj.get("blockChainAccountId") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..781600f7fe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk(BaseModel): + """ + DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk + """ # noqa: E501 + kty: Optional[StrictStr] + crv: Optional[StrictStr] + x: Optional[StrictStr] + y: Optional[StrictStr] = None + n: Optional[StrictStr] = None + d: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["kty", "crv", "x", "y", "n", "d"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if kty (nullable) is None + # and model_fields_set contains the field + if self.kty is None and "kty" in self.model_fields_set: + _dict['kty'] = None + + # set to None if crv (nullable) is None + # and model_fields_set contains the field + if self.crv is None and "crv" in self.model_fields_set: + _dict['crv'] = None + + # set to None if x (nullable) is None + # and model_fields_set contains the field + if self.x is None and "x" in self.model_fields_set: + _dict['x'] = None + + # set to None if y (nullable) is None + # and model_fields_set contains the field + if self.y is None and "y" in self.model_fields_set: + _dict['y'] = None + + # set to None if n (nullable) is None + # and model_fields_set contains the field + if self.n is None and "n" in self.model_fields_set: + _dict['n'] = None + + # set to None if d (nullable) is None + # and model_fields_set contains the field + if self.d is None and "d" in self.model_fields_set: + _dict['d'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "crv": obj.get("crv"), + "x": obj.get("x"), + "y": obj.get("y"), + "n": obj.get("n"), + "d": obj.get("d") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_my_did_metadata200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_my_did_metadata200_response_inner.py index 08df9e1bbc..fc199e8cf8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_my_did_metadata200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_get_my_did_metadata200_response_inner.py @@ -19,11 +19,11 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType -from openapi_client.models.boost_send_boost_request_credential_any_of_proof import BoostSendBoostRequestCredentialAnyOfProof -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner import DidMetadataAddDidMetadataRequestServiceInner -from openapi_client.models.did_metadata_add_did_metadata_request_verification_method_inner import DidMetadataAddDidMetadataRequestVerificationMethodInner +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner from typing import Optional, Set from typing_extensions import Self @@ -31,19 +31,19 @@ class DidMetadataGetMyDidMetadata200ResponseInner(BaseModel): """ DidMetadataGetMyDidMetadata200ResponseInner """ # noqa: E501 - context: Optional[List[BoostSendBoostRequestCredentialAnyOfContextInner]] = Field(default=None, alias="@context") - id: StrictStr + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: Optional[StrictStr] also_known_as: Optional[StrictStr] = Field(default=None, alias="alsoKnownAs") - controller: Optional[BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType] = None - verification_method: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="verificationMethod") - authentication: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = None - assertion_method: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="assertionMethod") - key_agreement: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="keyAgreement") - capability_invocation: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="capabilityInvocation") - capability_delegation: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="capabilityDelegation") - public_key: Optional[List[DidMetadataAddDidMetadataRequestVerificationMethodInner]] = Field(default=None, alias="publicKey") - service: Optional[List[DidMetadataAddDidMetadataRequestServiceInner]] = None - proof: Optional[BoostSendBoostRequestCredentialAnyOfProof] = None + controller: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + verification_method: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="verificationMethod") + authentication: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = None + assertion_method: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="assertionMethod") + key_agreement: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="keyAgreement") + capability_invocation: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="capabilityInvocation") + capability_delegation: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="capabilityDelegation") + public_key: Optional[List[DidMetadataGetDidMetadata200ResponseAuthenticationInner]] = Field(default=None, alias="publicKey") + service: Optional[List[DidMetadataGetDidMetadata200ResponseServiceInner]] = None + proof: Optional[BoostSendRequestTemplateCredentialAnyOfProof] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["@context", "id", "alsoKnownAs", "controller", "verificationMethod", "authentication", "assertionMethod", "keyAgreement", "capabilityInvocation", "capabilityDelegation", "publicKey", "service", "proof"] @@ -162,6 +162,16 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if also_known_as (nullable) is None + # and model_fields_set contains the field + if self.also_known_as is None and "also_known_as" in self.model_fields_set: + _dict['alsoKnownAs'] = None + return _dict @classmethod @@ -174,19 +184,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@context": [BoostSendBoostRequestCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, "id": obj.get("id"), "alsoKnownAs": obj.get("alsoKnownAs"), - "controller": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, - "verificationMethod": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["verificationMethod"]] if obj.get("verificationMethod") is not None else None, - "authentication": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, - "assertionMethod": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, - "keyAgreement": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, - "capabilityInvocation": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, - "capabilityDelegation": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, - "publicKey": [DidMetadataAddDidMetadataRequestVerificationMethodInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, - "service": [DidMetadataAddDidMetadataRequestServiceInner.from_dict(_item) for _item in obj["service"]] if obj.get("service") is not None else None, - "proof": BoostSendBoostRequestCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + "controller": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "verificationMethod": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["verificationMethod"]] if obj.get("verificationMethod") is not None else None, + "authentication": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, + "assertionMethod": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, + "keyAgreement": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, + "capabilityInvocation": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, + "capabilityDelegation": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, + "publicKey": [DidMetadataGetDidMetadata200ResponseAuthenticationInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, + "service": [DidMetadataGetDidMetadata200ResponseServiceInner.from_dict(_item) for _item in obj["service"]] if obj.get("service") is not None else None, + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request.py index a7cdc7287c..1122044ba4 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from openapi_client.models.did_metadata_add_did_metadata_request import DidMetadataAddDidMetadataRequest +from openapi_client.models.did_metadata_update_did_metadata_request_updates import DidMetadataUpdateDidMetadataRequestUpdates from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class DidMetadataUpdateDidMetadataRequest(BaseModel): """ DidMetadataUpdateDidMetadataRequest """ # noqa: E501 - updates: DidMetadataAddDidMetadataRequest + updates: DidMetadataUpdateDidMetadataRequestUpdates __properties: ClassVar[List[str]] = ["updates"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "updates": DidMetadataAddDidMetadataRequest.from_dict(obj["updates"]) if obj.get("updates") is not None else None + "updates": DidMetadataUpdateDidMetadataRequestUpdates.from_dict(obj["updates"]) if obj.get("updates") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request_updates.py new file mode 100644 index 0000000000..fa44519801 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/did_metadata_update_did_metadata_request_updates.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner +from typing import Optional, Set +from typing_extensions import Self + +class DidMetadataUpdateDidMetadataRequestUpdates(BaseModel): + """ + DidMetadataUpdateDidMetadataRequestUpdates + """ # noqa: E501 + context: Optional[List[BoostSendRequestTemplateCredentialAnyOfContextInner]] = Field(default=None, alias="@context") + id: Optional[StrictStr] = None + also_known_as: Optional[StrictStr] = Field(default=None, alias="alsoKnownAs") + controller: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + verification_method: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="verificationMethod") + authentication: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = None + assertion_method: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="assertionMethod") + key_agreement: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="keyAgreement") + capability_invocation: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="capabilityInvocation") + capability_delegation: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="capabilityDelegation") + public_key: Optional[List[DidMetadataAddDidMetadataRequestAuthenticationInner]] = Field(default=None, alias="publicKey") + service: Optional[List[DidMetadataGetDidMetadata200ResponseServiceInner]] = None + proof: Optional[BoostSendRequestTemplateCredentialAnyOfProof] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "alsoKnownAs", "controller", "verificationMethod", "authentication", "assertionMethod", "keyAgreement", "capabilityInvocation", "capabilityDelegation", "publicKey", "service", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DidMetadataUpdateDidMetadataRequestUpdates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in verification_method (list) + _items = [] + if self.verification_method: + for _item_verification_method in self.verification_method: + if _item_verification_method: + _items.append(_item_verification_method.to_dict()) + _dict['verificationMethod'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in authentication (list) + _items = [] + if self.authentication: + for _item_authentication in self.authentication: + if _item_authentication: + _items.append(_item_authentication.to_dict()) + _dict['authentication'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in assertion_method (list) + _items = [] + if self.assertion_method: + for _item_assertion_method in self.assertion_method: + if _item_assertion_method: + _items.append(_item_assertion_method.to_dict()) + _dict['assertionMethod'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in key_agreement (list) + _items = [] + if self.key_agreement: + for _item_key_agreement in self.key_agreement: + if _item_key_agreement: + _items.append(_item_key_agreement.to_dict()) + _dict['keyAgreement'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in capability_invocation (list) + _items = [] + if self.capability_invocation: + for _item_capability_invocation in self.capability_invocation: + if _item_capability_invocation: + _items.append(_item_capability_invocation.to_dict()) + _dict['capabilityInvocation'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in capability_delegation (list) + _items = [] + if self.capability_delegation: + for _item_capability_delegation in self.capability_delegation: + if _item_capability_delegation: + _items.append(_item_capability_delegation.to_dict()) + _dict['capabilityDelegation'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in public_key (list) + _items = [] + if self.public_key: + for _item_public_key in self.public_key: + if _item_public_key: + _items.append(_item_public_key.to_dict()) + _dict['publicKey'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in service (list) + _items = [] + if self.service: + for _item_service in self.service: + if _item_service: + _items.append(_item_service.to_dict()) + _dict['service'] = _items + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DidMetadataUpdateDidMetadataRequestUpdates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "alsoKnownAs": obj.get("alsoKnownAs"), + "controller": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "verificationMethod": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["verificationMethod"]] if obj.get("verificationMethod") is not None else None, + "authentication": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["authentication"]] if obj.get("authentication") is not None else None, + "assertionMethod": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["assertionMethod"]] if obj.get("assertionMethod") is not None else None, + "keyAgreement": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["keyAgreement"]] if obj.get("keyAgreement") is not None else None, + "capabilityInvocation": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["capabilityInvocation"]] if obj.get("capabilityInvocation") is not None else None, + "capabilityDelegation": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["capabilityDelegation"]] if obj.get("capabilityDelegation") is not None else None, + "publicKey": [DidMetadataAddDidMetadataRequestAuthenticationInner.from_dict(_item) for _item in obj["publicKey"]] if obj.get("publicKey") is not None else None, + "service": [DidMetadataGetDidMetadata200ResponseServiceInner.from_dict(_item) for _item in obj["service"]] if obj.get("service") is not None else None, + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest.py index a502f672d7..fddfded34e 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.error_badrequest_issues_inner import ErrorBADREQUESTIssuesInner from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class ErrorBADREQUEST(BaseModel): """ # noqa: E501 message: StrictStr = Field(description="The error message") code: StrictStr = Field(description="The error code") - issues: Optional[List[ContactMethodsSetPrimaryContactMethod200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + issues: Optional[List[ErrorBADREQUESTIssuesInner]] = Field(default=None, description="An array of issues that were responsible for the error") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "code", "issues"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_issues: _items.append(_item_issues.to_dict()) _dict['issues'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,8 +100,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "code": obj.get("code"), - "issues": [ContactMethodsSetPrimaryContactMethod200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None + "issues": [ErrorBADREQUESTIssuesInner.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest_issues_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest_issues_inner.py new file mode 100644 index 0000000000..fd3ddace3f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_badrequest_issues_inner.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ErrorBADREQUESTIssuesInner(BaseModel): + """ + ErrorBADREQUESTIssuesInner + """ # noqa: E501 + message: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ErrorBADREQUESTIssuesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ErrorBADREQUESTIssuesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_forbidden.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_forbidden.py index 19f38f01da..7fbc70c800 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_forbidden.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_forbidden.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class ErrorFORBIDDEN(BaseModel): """ # noqa: E501 message: StrictStr = Field(description="The error message") code: StrictStr = Field(description="The error code") - issues: Optional[List[ContactMethodsSetPrimaryContactMethod200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + issues: Optional[List[ContactMethodsSendChallenge200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "code", "issues"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_issues: _items.append(_item_issues.to_dict()) _dict['issues'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,8 +100,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "code": obj.get("code"), - "issues": [ContactMethodsSetPrimaryContactMethod200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None + "issues": [ContactMethodsSendChallenge200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_internalservererror.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_internalservererror.py index 33222d810e..df15490fd6 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_internalservererror.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_internalservererror.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class ErrorINTERNALSERVERERROR(BaseModel): """ # noqa: E501 message: StrictStr = Field(description="The error message") code: StrictStr = Field(description="The error code") - issues: Optional[List[ContactMethodsSetPrimaryContactMethod200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + issues: Optional[List[ContactMethodsSendChallenge200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "code", "issues"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_issues: _items.append(_item_issues.to_dict()) _dict['issues'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,8 +100,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "code": obj.get("code"), - "issues": [ContactMethodsSetPrimaryContactMethod200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None + "issues": [ContactMethodsSendChallenge200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_notfound.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_notfound.py index 1014d4b35c..e258965feb 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_notfound.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_notfound.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class ErrorNOTFOUND(BaseModel): """ # noqa: E501 message: StrictStr = Field(description="The error message") code: StrictStr = Field(description="The error code") - issues: Optional[List[ContactMethodsSetPrimaryContactMethod200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + issues: Optional[List[ContactMethodsSendChallenge200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "code", "issues"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_issues: _items.append(_item_issues.to_dict()) _dict['issues'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,8 +100,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "code": obj.get("code"), - "issues": [ContactMethodsSetPrimaryContactMethod200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None + "issues": [ContactMethodsSendChallenge200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_unauthorized.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_unauthorized.py index e708efded4..3adc2feeb1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/error_unauthorized.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/error_unauthorized.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class ErrorUNAUTHORIZED(BaseModel): """ # noqa: E501 message: StrictStr = Field(description="The error message") code: StrictStr = Field(description="The error code") - issues: Optional[List[ContactMethodsSetPrimaryContactMethod200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + issues: Optional[List[ContactMethodsSendChallenge200Response]] = Field(default=None, description="An array of issues that were responsible for the error") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["message", "code", "issues"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_issues: _items.append(_item_issues.to_dict()) _dict['issues'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,8 +100,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "code": obj.get("code"), - "issues": [ContactMethodsSetPrimaryContactMethod200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None + "issues": [ContactMethodsSendChallenge200Response.from_dict(_item) for _item in obj["issues"]] if obj.get("issues") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_approve_guardian_request_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_approve_guardian_request_request.py new file mode 100644 index 0000000000..f142c009a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_approve_guardian_request_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class InboxApproveGuardianRequestRequest(BaseModel): + """ + InboxApproveGuardianRequestRequest + """ # noqa: E501 + token: StrictStr + __properties: ClassVar[List[str]] = ["token"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxApproveGuardianRequestRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxApproveGuardianRequestRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "token": obj.get("token") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response.py new file mode 100644 index 0000000000..be6c6d3822 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.inbox_claim200_response_inbox_credential import InboxClaim200ResponseInboxCredential +from typing import Optional, Set +from typing_extensions import Self + +class InboxClaim200Response(BaseModel): + """ + InboxClaim200Response + """ # noqa: E501 + inbox_credential: InboxClaim200ResponseInboxCredential = Field(alias="inboxCredential") + status: Optional[StrictStr] + recipient_did: Optional[StrictStr] = Field(default=None, alias="recipientDid") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["inboxCredential", "status", "recipientDid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxClaim200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inbox_credential + if self.inbox_credential: + _dict['inboxCredential'] = self.inbox_credential.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if recipient_did (nullable) is None + # and model_fields_set contains the field + if self.recipient_did is None and "recipient_did" in self.model_fields_set: + _dict['recipientDid'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxClaim200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "inboxCredential": InboxClaim200ResponseInboxCredential.from_dict(obj["inboxCredential"]) if obj.get("inboxCredential") is not None else None, + "status": obj.get("status"), + "recipientDid": obj.get("recipientDid") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential.py new file mode 100644 index 0000000000..95ace7ab2d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.inbox_claim200_response_inbox_credential_signing_authority import InboxClaim200ResponseInboxCredentialSigningAuthority +from typing import Optional, Set +from typing_extensions import Self + +class InboxClaim200ResponseInboxCredential(BaseModel): + """ + InboxClaim200ResponseInboxCredential + """ # noqa: E501 + id: Optional[StrictStr] + credential: Optional[StrictStr] + is_signed: StrictBool = Field(alias="isSigned") + current_status: StrictStr = Field(alias="currentStatus") + is_accepted: Optional[StrictBool] = Field(default=None, alias="isAccepted") + expires_at: Optional[StrictStr] = Field(alias="expiresAt") + created_at: Optional[StrictStr] = Field(alias="createdAt") + issuer_did: Optional[StrictStr] = Field(alias="issuerDid") + webhook_url: Optional[StrictStr] = Field(default=None, alias="webhookUrl") + signing_authority: Optional[InboxClaim200ResponseInboxCredentialSigningAuthority] = Field(default=None, alias="signingAuthority") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "credential", "isSigned", "currentStatus", "isAccepted", "expiresAt", "createdAt", "issuerDid", "webhookUrl", "signingAuthority"] + + @field_validator('current_status') + def current_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED']): + raise ValueError("must be one of enum values ('PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxClaim200ResponseInboxCredential from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of signing_authority + if self.signing_authority: + _dict['signingAuthority'] = self.signing_authority.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if credential (nullable) is None + # and model_fields_set contains the field + if self.credential is None and "credential" in self.model_fields_set: + _dict['credential'] = None + + # set to None if expires_at (nullable) is None + # and model_fields_set contains the field + if self.expires_at is None and "expires_at" in self.model_fields_set: + _dict['expiresAt'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if issuer_did (nullable) is None + # and model_fields_set contains the field + if self.issuer_did is None and "issuer_did" in self.model_fields_set: + _dict['issuerDid'] = None + + # set to None if webhook_url (nullable) is None + # and model_fields_set contains the field + if self.webhook_url is None and "webhook_url" in self.model_fields_set: + _dict['webhookUrl'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxClaim200ResponseInboxCredential from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "credential": obj.get("credential"), + "isSigned": obj.get("isSigned"), + "currentStatus": obj.get("currentStatus"), + "isAccepted": obj.get("isAccepted"), + "expiresAt": obj.get("expiresAt"), + "createdAt": obj.get("createdAt"), + "issuerDid": obj.get("issuerDid"), + "webhookUrl": obj.get("webhookUrl"), + "signingAuthority": InboxClaim200ResponseInboxCredentialSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential_signing_authority.py new file mode 100644 index 0000000000..cbea844b2e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim200_response_inbox_credential_signing_authority.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxClaim200ResponseInboxCredentialSigningAuthority(BaseModel): + """ + InboxClaim200ResponseInboxCredentialSigningAuthority + """ # noqa: E501 + endpoint: Optional[StrictStr] = None + name: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["endpoint", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxClaim200ResponseInboxCredentialSigningAuthority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxClaim200ResponseInboxCredentialSigningAuthority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint"), + "name": obj.get("name") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request.py new file mode 100644 index 0000000000..18831a84bd --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.inbox_claim_request_configuration import InboxClaimRequestConfiguration +from openapi_client.models.inbox_claim_request_credential import InboxClaimRequestCredential +from typing import Optional, Set +from typing_extensions import Self + +class InboxClaimRequest(BaseModel): + """ + InboxClaimRequest + """ # noqa: E501 + credential: InboxClaimRequestCredential + configuration: Optional[InboxClaimRequestConfiguration] = None + __properties: ClassVar[List[str]] = ["credential", "configuration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxClaimRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credential + if self.credential: + _dict['credential'] = self.credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxClaimRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "credential": InboxClaimRequestCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None, + "configuration": InboxClaimRequestConfiguration.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_configuration.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_configuration.py new file mode 100644 index 0000000000..def6522e94 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_configuration.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxClaimRequestConfiguration(BaseModel): + """ + InboxClaimRequestConfiguration + """ # noqa: E501 + publishable_key: Optional[StrictStr] = Field(alias="publishableKey") + signing_authority_name: Optional[StrictStr] = Field(default=None, alias="signingAuthorityName") + __properties: ClassVar[List[str]] = ["publishableKey", "signingAuthorityName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxClaimRequestConfiguration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if publishable_key (nullable) is None + # and model_fields_set contains the field + if self.publishable_key is None and "publishable_key" in self.model_fields_set: + _dict['publishableKey'] = None + + # set to None if signing_authority_name (nullable) is None + # and model_fields_set contains the field + if self.signing_authority_name is None and "signing_authority_name" in self.model_fields_set: + _dict['signingAuthorityName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxClaimRequestConfiguration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishableKey": obj.get("publishableKey"), + "signingAuthorityName": obj.get("signingAuthorityName") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_credential.py similarity index 60% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_credential.py index 1c849b3e23..cb16fc57ca 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_claim_request_credential.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_get_boosts_request_query_uri_any_of import BoostGetBoostsRequestQueryUriAnyOf -from openapi_client.models.boost_get_boosts_request_query_uri_any_of1 import BoostGetBoostsRequestQueryUriAnyOf1 +from openapi_client.models.boost_create_boost_request_credential_any_of import BoostCreateBoostRequestCredentialAnyOf +from openapi_client.models.inbox_issue_request_credential_any_of import InboxIssueRequestCredentialAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BOOSTGETBOOSTSREQUESTQUERYURI_ANY_OF_SCHEMAS = ["BoostGetBoostsRequestQueryUriAnyOf", "BoostGetBoostsRequestQueryUriAnyOf1"] +INBOXCLAIMREQUESTCREDENTIAL_ANY_OF_SCHEMAS = ["BoostCreateBoostRequestCredentialAnyOf", "InboxIssueRequestCredentialAnyOf"] -class BoostGetBoostsRequestQueryUri(BaseModel): +class InboxClaimRequestCredential(BaseModel): """ - BoostGetBoostsRequestQueryUri + The credential to issue. """ - # data type: BoostGetBoostsRequestQueryUriAnyOf - anyof_schema_1_validator: Optional[BoostGetBoostsRequestQueryUriAnyOf] = None - # data type: BoostGetBoostsRequestQueryUriAnyOf1 - anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryUriAnyOf1] = None + # data type: InboxIssueRequestCredentialAnyOf + anyof_schema_1_validator: Optional[InboxIssueRequestCredentialAnyOf] = None + # data type: BoostCreateBoostRequestCredentialAnyOf + anyof_schema_2_validator: Optional[BoostCreateBoostRequestCredentialAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostGetBoostsRequestQueryUriAnyOf, BoostGetBoostsRequestQueryUriAnyOf1]] = None + actual_instance: Optional[Union[BoostCreateBoostRequestCredentialAnyOf, InboxIssueRequestCredentialAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostGetBoostsRequestQueryUriAnyOf", "BoostGetBoostsRequestQueryUriAnyOf1" } + any_of_schemas: Set[str] = { "BoostCreateBoostRequestCredentialAnyOf", "InboxIssueRequestCredentialAnyOf" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = BoostGetBoostsRequestQueryUri.model_construct() + instance = InboxClaimRequestCredential.model_construct() error_messages = [] - # validate data type: BoostGetBoostsRequestQueryUriAnyOf - if not isinstance(v, BoostGetBoostsRequestQueryUriAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryUriAnyOf`") + # validate data type: InboxIssueRequestCredentialAnyOf + if not isinstance(v, InboxIssueRequestCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssueRequestCredentialAnyOf`") else: return v - # validate data type: BoostGetBoostsRequestQueryUriAnyOf1 - if not isinstance(v, BoostGetBoostsRequestQueryUriAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostGetBoostsRequestQueryUriAnyOf1`") + # validate data type: BoostCreateBoostRequestCredentialAnyOf + if not isinstance(v, BoostCreateBoostRequestCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostCreateBoostRequestCredentialAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BoostGetBoostsRequestQueryUri with anyOf schemas: BoostGetBoostsRequestQueryUriAnyOf, BoostGetBoostsRequestQueryUriAnyOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in InboxClaimRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, InboxIssueRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostGetBoostsRequestQueryUriAnyOf] = None + # anyof_schema_1_validator: Optional[InboxIssueRequestCredentialAnyOf] = None try: - instance.actual_instance = BoostGetBoostsRequestQueryUriAnyOf.from_json(json_str) + instance.actual_instance = InboxIssueRequestCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostGetBoostsRequestQueryUriAnyOf1] = None + # anyof_schema_2_validator: Optional[BoostCreateBoostRequestCredentialAnyOf] = None try: - instance.actual_instance = BoostGetBoostsRequestQueryUriAnyOf1.from_json(json_str) + instance.actual_instance = BoostCreateBoostRequestCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BoostGetBoostsRequestQueryUri with anyOf schemas: BoostGetBoostsRequestQueryUriAnyOf, BoostGetBoostsRequestQueryUriAnyOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into InboxClaimRequestCredential with anyOf schemas: BoostCreateBoostRequestCredentialAnyOf, InboxIssueRequestCredentialAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostGetBoostsRequestQueryUriAnyOf, BoostGetBoostsRequestQueryUriAnyOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostCreateBoostRequestCredentialAnyOf, InboxIssueRequestCredentialAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_finalize200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_finalize200_response.py new file mode 100644 index 0000000000..f16426c516 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_finalize200_response.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 +from typing import Optional, Set +from typing_extensions import Self + +class InboxFinalize200Response(BaseModel): + """ + InboxFinalize200Response + """ # noqa: E501 + processed: Optional[Union[StrictFloat, StrictInt]] + claimed: Optional[Union[StrictFloat, StrictInt]] + errors: Optional[Union[StrictFloat, StrictInt]] + verifiable_credentials: List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] = Field(alias="verifiableCredentials") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["processed", "claimed", "errors", "verifiableCredentials"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxFinalize200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in verifiable_credentials (list) + _items = [] + if self.verifiable_credentials: + for _item_verifiable_credentials in self.verifiable_credentials: + if _item_verifiable_credentials: + _items.append(_item_verifiable_credentials.to_dict()) + _dict['verifiableCredentials'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if processed (nullable) is None + # and model_fields_set contains the field + if self.processed is None and "processed" in self.model_fields_set: + _dict['processed'] = None + + # set to None if claimed (nullable) is None + # and model_fields_set contains the field + if self.claimed is None and "claimed" in self.model_fields_set: + _dict['claimed'] = None + + # set to None if errors (nullable) is None + # and model_fields_set contains the field + if self.errors is None and "errors" in self.model_fields_set: + _dict['errors'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxFinalize200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "processed": obj.get("processed"), + "claimed": obj.get("claimed"), + "errors": obj.get("errors"), + "verifiableCredentials": [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.from_dict(_item) for _item in obj["verifiableCredentials"]] if obj.get("verifiableCredentials") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response.py index 1d868c71d9..44bffcde5a 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response.py @@ -30,6 +30,7 @@ class InboxGetMyIssuedCredentials200Response(BaseModel): has_more: StrictBool = Field(alias="hasMore") records: List[InboxGetMyIssuedCredentials200ResponseRecordsInner] cursor: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["hasMore", "records", "cursor"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "records": [InboxGetMyIssuedCredentials200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None, "cursor": obj.get("cursor") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner.py index ab1a4aeddd..edb7e77c73 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner_signing_authority import InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from typing import Optional, Set from typing_extensions import Self @@ -30,19 +31,19 @@ class InboxGetMyIssuedCredentials200ResponseRecordsInner(BaseModel): credential: StrictStr is_signed: StrictBool = Field(alias="isSigned") current_status: StrictStr = Field(alias="currentStatus") + is_accepted: Optional[StrictBool] = Field(default=None, alias="isAccepted") expires_at: StrictStr = Field(alias="expiresAt") created_at: StrictStr = Field(alias="createdAt") issuer_did: StrictStr = Field(alias="issuerDid") webhook_url: Optional[StrictStr] = Field(default=None, alias="webhookUrl") - signing_authority_endpoint: Optional[StrictStr] = Field(default=None, alias="signingAuthority.endpoint") - signing_authority_name: Optional[StrictStr] = Field(default=None, alias="signingAuthority.name") - __properties: ClassVar[List[str]] = ["id", "credential", "isSigned", "currentStatus", "expiresAt", "createdAt", "issuerDid", "webhookUrl", "signingAuthority.endpoint", "signingAuthority.name"] + signing_authority: Optional[InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority] = Field(default=None, alias="signingAuthority") + __properties: ClassVar[List[str]] = ["id", "credential", "isSigned", "currentStatus", "isAccepted", "expiresAt", "createdAt", "issuerDid", "webhookUrl", "signingAuthority"] @field_validator('current_status') def current_status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED']): - raise ValueError("must be one of enum values ('PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED')") + if value not in set(['PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED']): + raise ValueError("must be one of enum values ('PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED')") return value model_config = ConfigDict( @@ -84,6 +85,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of signing_authority + if self.signing_authority: + _dict['signingAuthority'] = self.signing_authority.to_dict() return _dict @classmethod @@ -100,12 +104,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "credential": obj.get("credential"), "isSigned": obj.get("isSigned"), "currentStatus": obj.get("currentStatus"), + "isAccepted": obj.get("isAccepted"), "expiresAt": obj.get("expiresAt"), "createdAt": obj.get("createdAt"), "issuerDid": obj.get("issuerDid"), "webhookUrl": obj.get("webhookUrl"), - "signingAuthority.endpoint": obj.get("signingAuthority.endpoint"), - "signingAuthority.name": obj.get("signingAuthority.name") + "signingAuthority": InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py new file mode 100644 index 0000000000..757fe7c4f8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority(BaseModel): + """ + InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority + """ # noqa: E501 + endpoint: Optional[StrictStr] = None + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["endpoint", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint"), + "name": obj.get("name") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request.py index 4355ae9852..3549f79295 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from openapi_client.models.inbox_get_my_issued_credentials_request_query import InboxGetMyIssuedCredentialsRequestQuery -from openapi_client.models.inbox_issue200_response_recipient import InboxIssue200ResponseRecipient +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient import InboxGetMyIssuedCredentialsRequestRecipient from typing import Optional, Set from typing_extensions import Self @@ -32,7 +32,7 @@ class InboxGetMyIssuedCredentialsRequest(BaseModel): cursor: Optional[StrictStr] = None sort: Optional[StrictStr] = None query: Optional[InboxGetMyIssuedCredentialsRequestQuery] = None - recipient: Optional[InboxIssue200ResponseRecipient] = None + recipient: Optional[InboxGetMyIssuedCredentialsRequestRecipient] = None __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "query", "recipient"] model_config = ConfigDict( @@ -80,6 +80,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of recipient if self.recipient: _dict['recipient'] = self.recipient.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod @@ -96,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cursor": obj.get("cursor"), "sort": obj.get("sort"), "query": InboxGetMyIssuedCredentialsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, - "recipient": InboxIssue200ResponseRecipient.from_dict(obj["recipient"]) if obj.get("recipient") is not None else None + "recipient": InboxGetMyIssuedCredentialsRequestRecipient.from_dict(obj["recipient"]) if obj.get("recipient") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_query.py index e78b59ce1a..021d0d5d1b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_query.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_query.py @@ -29,8 +29,9 @@ class InboxGetMyIssuedCredentialsRequestQuery(BaseModel): current_status: Optional[StrictStr] = Field(default=None, alias="currentStatus") id: Optional[StrictStr] = None is_signed: Optional[StrictBool] = Field(default=None, alias="isSigned") + is_accepted: Optional[StrictBool] = Field(default=None, alias="isAccepted") issuer_did: Optional[StrictStr] = Field(default=None, alias="issuerDid") - __properties: ClassVar[List[str]] = ["currentStatus", "id", "isSigned", "issuerDid"] + __properties: ClassVar[List[str]] = ["currentStatus", "id", "isSigned", "isAccepted", "issuerDid"] @field_validator('current_status') def current_status_validate_enum(cls, value): @@ -38,8 +39,8 @@ def current_status_validate_enum(cls, value): if value is None: return value - if value not in set(['PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED']): - raise ValueError("must be one of enum values ('PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED')") + if value not in set(['PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED']): + raise ValueError("must be one of enum values ('PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED')") return value model_config = ConfigDict( @@ -81,6 +82,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if issuer_did (nullable) is None + # and model_fields_set contains the field + if self.issuer_did is None and "issuer_did" in self.model_fields_set: + _dict['issuerDid'] = None + return _dict @classmethod @@ -96,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "currentStatus": obj.get("currentStatus"), "id": obj.get("id"), "isSigned": obj.get("isSigned"), + "isAccepted": obj.get("isAccepted"), "issuerDid": obj.get("issuerDid") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient.py new file mode 100644 index 0000000000..2ad5664e73 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient_one_of import InboxGetMyIssuedCredentialsRequestRecipientOneOf +from openapi_client.models.inbox_issue_request_recipient_one_of import InboxIssueRequestRecipientOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +INBOXGETMYISSUEDCREDENTIALSREQUESTRECIPIENT_ONE_OF_SCHEMAS = ["InboxGetMyIssuedCredentialsRequestRecipientOneOf", "InboxIssueRequestRecipientOneOf"] + +class InboxGetMyIssuedCredentialsRequestRecipient(BaseModel): + """ + InboxGetMyIssuedCredentialsRequestRecipient + """ + # data type: InboxIssueRequestRecipientOneOf + oneof_schema_1_validator: Optional[InboxIssueRequestRecipientOneOf] = None + # data type: InboxGetMyIssuedCredentialsRequestRecipientOneOf + oneof_schema_2_validator: Optional[InboxGetMyIssuedCredentialsRequestRecipientOneOf] = None + actual_instance: Optional[Union[InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf]] = None + one_of_schemas: Set[str] = { "InboxGetMyIssuedCredentialsRequestRecipientOneOf", "InboxIssueRequestRecipientOneOf" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = InboxGetMyIssuedCredentialsRequestRecipient.model_construct() + error_messages = [] + match = 0 + # validate data type: InboxIssueRequestRecipientOneOf + if not isinstance(v, InboxIssueRequestRecipientOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssueRequestRecipientOneOf`") + else: + match += 1 + # validate data type: InboxGetMyIssuedCredentialsRequestRecipientOneOf + if not isinstance(v, InboxGetMyIssuedCredentialsRequestRecipientOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `InboxGetMyIssuedCredentialsRequestRecipientOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in InboxGetMyIssuedCredentialsRequestRecipient with oneOf schemas: InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in InboxGetMyIssuedCredentialsRequestRecipient with oneOf schemas: InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InboxIssueRequestRecipientOneOf + try: + instance.actual_instance = InboxIssueRequestRecipientOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InboxGetMyIssuedCredentialsRequestRecipientOneOf + try: + instance.actual_instance = InboxGetMyIssuedCredentialsRequestRecipientOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into InboxGetMyIssuedCredentialsRequestRecipient with oneOf schemas: InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into InboxGetMyIssuedCredentialsRequestRecipient with oneOf schemas: InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InboxGetMyIssuedCredentialsRequestRecipientOneOf, InboxIssueRequestRecipientOneOf]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient_one_of.py new file mode 100644 index 0000000000..f2fc730d57 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_get_my_issued_credentials_request_recipient_one_of.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class InboxGetMyIssuedCredentialsRequestRecipientOneOf(BaseModel): + """ + InboxGetMyIssuedCredentialsRequestRecipientOneOf + """ # noqa: E501 + type: StrictStr + value: StrictStr + __properties: ClassVar[List[str]] = ["type", "value"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['phone']): + raise ValueError("must be one of enum values ('phone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxGetMyIssuedCredentialsRequestRecipientOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxGetMyIssuedCredentialsRequestRecipientOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response.py index 3455f4c7cb..c1404021a0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response.py @@ -27,18 +27,19 @@ class InboxIssue200Response(BaseModel): """ InboxIssue200Response """ # noqa: E501 - issuance_id: StrictStr = Field(alias="issuanceId") + issuance_id: Optional[StrictStr] = Field(alias="issuanceId") status: StrictStr recipient: InboxIssue200ResponseRecipient claim_url: Optional[StrictStr] = Field(default=None, alias="claimUrl") recipient_did: Optional[StrictStr] = Field(default=None, alias="recipientDid") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["issuanceId", "status", "recipient", "claimUrl", "recipientDid"] @field_validator('status') def status_validate_enum(cls, value): """Validates the enum""" - if value not in set(['PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED']): - raise ValueError("must be one of enum values ('PENDING', 'DELIVERED', 'CLAIMED', 'EXPIRED')") + if value not in set(['PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED']): + raise ValueError("must be one of enum values ('PENDING', 'ISSUED', 'EXPIRED', 'DELIVERED', 'CLAIMED')") return value model_config = ConfigDict( @@ -71,8 +72,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -83,6 +86,21 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of recipient if self.recipient: _dict['recipient'] = self.recipient.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if issuance_id (nullable) is None + # and model_fields_set contains the field + if self.issuance_id is None and "issuance_id" in self.model_fields_set: + _dict['issuanceId'] = None + + # set to None if recipient_did (nullable) is None + # and model_fields_set contains the field + if self.recipient_did is None and "recipient_did" in self.model_fields_set: + _dict['recipientDid'] = None + return _dict @classmethod @@ -101,6 +119,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "claimUrl": obj.get("claimUrl"), "recipientDid": obj.get("recipientDid") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient.py index 3385013f6c..c84563bf90 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient.py @@ -17,24 +17,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from openapi_client.models.inbox_issue_request_recipient_one_of import InboxIssueRequestRecipientOneOf -from openapi_client.models.inbox_issue_request_recipient_one_of1 import InboxIssueRequestRecipientOneOf1 +from openapi_client.models.inbox_issue200_response_recipient_one_of import InboxIssue200ResponseRecipientOneOf +from openapi_client.models.inbox_issue200_response_recipient_one_of1 import InboxIssue200ResponseRecipientOneOf1 from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -INBOXISSUE200RESPONSERECIPIENT_ONE_OF_SCHEMAS = ["InboxIssueRequestRecipientOneOf", "InboxIssueRequestRecipientOneOf1"] +INBOXISSUE200RESPONSERECIPIENT_ONE_OF_SCHEMAS = ["InboxIssue200ResponseRecipientOneOf", "InboxIssue200ResponseRecipientOneOf1"] class InboxIssue200ResponseRecipient(BaseModel): """ InboxIssue200ResponseRecipient """ - # data type: InboxIssueRequestRecipientOneOf - oneof_schema_1_validator: Optional[InboxIssueRequestRecipientOneOf] = None - # data type: InboxIssueRequestRecipientOneOf1 - oneof_schema_2_validator: Optional[InboxIssueRequestRecipientOneOf1] = None - actual_instance: Optional[Union[InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1]] = None - one_of_schemas: Set[str] = { "InboxIssueRequestRecipientOneOf", "InboxIssueRequestRecipientOneOf1" } + # data type: InboxIssue200ResponseRecipientOneOf + oneof_schema_1_validator: Optional[InboxIssue200ResponseRecipientOneOf] = None + # data type: InboxIssue200ResponseRecipientOneOf1 + oneof_schema_2_validator: Optional[InboxIssue200ResponseRecipientOneOf1] = None + actual_instance: Optional[Union[InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1]] = None + one_of_schemas: Set[str] = { "InboxIssue200ResponseRecipientOneOf", "InboxIssue200ResponseRecipientOneOf1" } model_config = ConfigDict( validate_assignment=True, @@ -57,22 +57,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = InboxIssue200ResponseRecipient.model_construct() error_messages = [] match = 0 - # validate data type: InboxIssueRequestRecipientOneOf - if not isinstance(v, InboxIssueRequestRecipientOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssueRequestRecipientOneOf`") + # validate data type: InboxIssue200ResponseRecipientOneOf + if not isinstance(v, InboxIssue200ResponseRecipientOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssue200ResponseRecipientOneOf`") else: match += 1 - # validate data type: InboxIssueRequestRecipientOneOf1 - if not isinstance(v, InboxIssueRequestRecipientOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssueRequestRecipientOneOf1`") + # validate data type: InboxIssue200ResponseRecipientOneOf1 + if not isinstance(v, InboxIssue200ResponseRecipientOneOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `InboxIssue200ResponseRecipientOneOf1`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in InboxIssue200ResponseRecipient with oneOf schemas: InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in InboxIssue200ResponseRecipient with oneOf schemas: InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in InboxIssue200ResponseRecipient with oneOf schemas: InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in InboxIssue200ResponseRecipient with oneOf schemas: InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1. Details: " + ", ".join(error_messages)) else: return v @@ -87,25 +87,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into InboxIssueRequestRecipientOneOf + # deserialize data into InboxIssue200ResponseRecipientOneOf try: - instance.actual_instance = InboxIssueRequestRecipientOneOf.from_json(json_str) + instance.actual_instance = InboxIssue200ResponseRecipientOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into InboxIssueRequestRecipientOneOf1 + # deserialize data into InboxIssue200ResponseRecipientOneOf1 try: - instance.actual_instance = InboxIssueRequestRecipientOneOf1.from_json(json_str) + instance.actual_instance = InboxIssue200ResponseRecipientOneOf1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into InboxIssue200ResponseRecipient with oneOf schemas: InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into InboxIssue200ResponseRecipient with oneOf schemas: InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into InboxIssue200ResponseRecipient with oneOf schemas: InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into InboxIssue200ResponseRecipient with oneOf schemas: InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], InboxIssueRequestRecipientOneOf, InboxIssueRequestRecipientOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], InboxIssue200ResponseRecipientOneOf, InboxIssue200ResponseRecipientOneOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of.py new file mode 100644 index 0000000000..237ffaf525 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class InboxIssue200ResponseRecipientOneOf(BaseModel): + """ + InboxIssue200ResponseRecipientOneOf + """ # noqa: E501 + type: StrictStr + value: Annotated[str, Field(strict=True)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "value"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['email']): + raise ValueError("must be one of enum values ('email')") + return value + + @field_validator('value') + def value_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxIssue200ResponseRecipientOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxIssue200ResponseRecipientOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of1.py new file mode 100644 index 0000000000..2e3babd789 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue200_response_recipient_one_of1.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxIssue200ResponseRecipientOneOf1(BaseModel): + """ + InboxIssue200ResponseRecipientOneOf1 + """ # noqa: E501 + type: StrictStr + value: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type", "value"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['phone']): + raise ValueError("must be one of enum values ('phone')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxIssue200ResponseRecipientOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxIssue200ResponseRecipientOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_configuration_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_configuration_signing_authority.py index b1338b0d35..5f67e39c0f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_configuration_signing_authority.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_configuration_signing_authority.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class InboxIssueRequestConfigurationSigningAuthority(BaseModel): The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed. """ # noqa: E501 endpoint: StrictStr - name: StrictStr + name: Optional[StrictStr] __properties: ClassVar[List[str]] = ["endpoint", "name"] model_config = ConfigDict( @@ -69,6 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_credential_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_credential_any_of.py index 2d448a216e..9b91b757dd 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_credential_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_credential_any_of.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf -from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -INBOXISSUEREQUESTCREDENTIALANYOF_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOf", "PresentationSendPresentationRequestPresentationAnyOf"] +INBOXISSUEREQUESTCREDENTIALANYOF_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOf", "StorageStoreRequestItemAnyOfAnyOf"] class InboxIssueRequestCredentialAnyOf(BaseModel): """ InboxIssueRequestCredentialAnyOf """ - # data type: BoostSendBoostRequestCredentialAnyOf - anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None - # data type: PresentationSendPresentationRequestPresentationAnyOf - anyof_schema_2_validator: Optional[PresentationSendPresentationRequestPresentationAnyOf] = None + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + # data type: StorageStoreRequestItemAnyOfAnyOf + anyof_schema_2_validator: Optional[StorageStoreRequestItemAnyOfAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf]] = None + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOf", "PresentationSendPresentationRequestPresentationAnyOf" } + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOf", "StorageStoreRequestItemAnyOfAnyOf" } model_config = { "validate_assignment": True, @@ -61,21 +61,21 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = InboxIssueRequestCredentialAnyOf.model_construct() error_messages = [] - # validate data type: BoostSendBoostRequestCredentialAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf`") + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") else: return v - # validate data type: PresentationSendPresentationRequestPresentationAnyOf - if not isinstance(v, PresentationSendPresentationRequestPresentationAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `PresentationSendPresentationRequestPresentationAnyOf`") + # validate data type: StorageStoreRequestItemAnyOfAnyOf + if not isinstance(v, StorageStoreRequestItemAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageStoreRequestItemAnyOfAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in InboxIssueRequestCredentialAnyOf with anyOf schemas: BoostSendBoostRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in InboxIssueRequestCredentialAnyOf with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf.from_json(json_str) + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[PresentationSendPresentationRequestPresentationAnyOf] = None + # anyof_schema_2_validator: Optional[StorageStoreRequestItemAnyOfAnyOf] = None try: - instance.actual_instance = PresentationSendPresentationRequestPresentationAnyOf.from_json(json_str) + instance.actual_instance = StorageStoreRequestItemAnyOfAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into InboxIssueRequestCredentialAnyOf with anyOf schemas: BoostSendBoostRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into InboxIssueRequestCredentialAnyOf with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of.py index 34b7a0fdeb..b0b0e3e321 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class InboxIssueRequestRecipientOneOf(BaseModel): InboxIssueRequestRecipientOneOf """ # noqa: E501 type: StrictStr - value: StrictStr + value: Annotated[str, Field(strict=True)] __properties: ClassVar[List[str]] = ["type", "value"] @field_validator('type') @@ -37,6 +38,13 @@ def type_validate_enum(cls, value): raise ValueError("must be one of enum values ('email')") return value + @field_validator('value') + def value_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of1.py index cb60d0cbc8..c35f3477dc 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_issue_request_recipient_one_of1.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class InboxIssueRequestRecipientOneOf1(BaseModel): InboxIssueRequestRecipientOneOf1 """ # noqa: E501 type: StrictStr - value: StrictStr + value: Optional[StrictStr] __properties: ClassVar[List[str]] = ["type", "value"] @field_validator('type') @@ -76,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email200_response.py new file mode 100644 index 0000000000..b51b4ab278 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email200_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxSendGuardianApprovalEmail200Response(BaseModel): + """ + InboxSendGuardianApprovalEmail200Response + """ # noqa: E501 + message: Optional[StrictStr] + approval_url: Optional[StrictStr] = Field(alias="approvalUrl") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["message", "approvalUrl"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmail200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if approval_url (nullable) is None + # and model_fields_set contains the field + if self.approval_url is None and "approval_url" in self.model_fields_set: + _dict['approvalUrl'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmail200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "approvalUrl": obj.get("approvalUrl") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request.py new file mode 100644 index 0000000000..f015818ee1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.inbox_send_guardian_approval_email_request_template import InboxSendGuardianApprovalEmailRequestTemplate +from typing import Optional, Set +from typing_extensions import Self + +class InboxSendGuardianApprovalEmailRequest(BaseModel): + """ + InboxSendGuardianApprovalEmailRequest + """ # noqa: E501 + guardian_email: Annotated[str, Field(strict=True)] = Field(alias="guardianEmail") + ttl_hours: Optional[Annotated[int, Field(le=720, strict=True, ge=0)]] = Field(default=None, alias="ttlHours") + template: Optional[InboxSendGuardianApprovalEmailRequestTemplate] = None + __properties: ClassVar[List[str]] = ["guardianEmail", "ttlHours", "template"] + + @field_validator('guardian_email') + def guardian_email_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmailRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of template + if self.template: + _dict['template'] = self.template.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmailRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guardianEmail": obj.get("guardianEmail"), + "ttlHours": obj.get("ttlHours"), + "template": InboxSendGuardianApprovalEmailRequestTemplate.from_dict(obj["template"]) if obj.get("template") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request_template.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request_template.py new file mode 100644 index 0000000000..02a09b43fa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/inbox_send_guardian_approval_email_request_template.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InboxSendGuardianApprovalEmailRequestTemplate(BaseModel): + """ + InboxSendGuardianApprovalEmailRequestTemplate + """ # noqa: E501 + id: Optional[StrictStr] = None + model: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["id", "model"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmailRequestTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InboxSendGuardianApprovalEmailRequestTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "model": obj.get("model") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request.py new file mode 100644 index 0000000000..8ea9353cb0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsAddIntegrationRequest(BaseModel): + """ + IntegrationsAddIntegrationRequest + """ # noqa: E501 + name: Optional[StrictStr] + description: Optional[StrictStr] = None + whitelisted_domains: Optional[List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]] = Field(default=None, alias="whitelistedDomains") + __properties: ClassVar[List[str]] = ["name", "description", "whitelistedDomains"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsAddIntegrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in whitelisted_domains (list) + _items = [] + if self.whitelisted_domains: + for _item_whitelisted_domains in self.whitelisted_domains: + if _item_whitelisted_domains: + _items.append(_item_whitelisted_domains.to_dict()) + _dict['whitelistedDomains'] = _items + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsAddIntegrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "whitelistedDomains": [IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_dict(_item) for _item in obj["whitelistedDomains"]] if obj.get("whitelistedDomains") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request_whitelisted_domains_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request_whitelisted_domains_inner.py new file mode 100644 index 0000000000..a9aa56daf1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_add_integration_request_whitelisted_domains_inner.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from typing_extensions import Annotated +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +INTEGRATIONSADDINTEGRATIONREQUESTWHITELISTEDDOMAINSINNER_ANY_OF_SCHEMAS = ["str"] + +class IntegrationsAddIntegrationRequestWhitelistedDomainsInner(BaseModel): + """ + IntegrationsAddIntegrationRequestWhitelistedDomainsInner + """ + + # data type: str + anyof_schema_1_validator: Optional[Annotated[str, Field(strict=True)]] = None + # data type: str + anyof_schema_2_validator: Optional[Annotated[str, Field(strict=True)]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = IntegrationsAddIntegrationRequestWhitelistedDomainsInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in IntegrationsAddIntegrationRequestWhitelistedDomainsInner with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into IntegrationsAddIntegrationRequestWhitelistedDomainsInner with anyOf schemas: str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_associate_integration_with_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_associate_integration_with_signing_authority_request.py new file mode 100644 index 0000000000..989f8a9ccb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_associate_integration_with_signing_authority_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsAssociateIntegrationWithSigningAuthorityRequest(BaseModel): + """ + IntegrationsAssociateIntegrationWithSigningAuthorityRequest + """ # noqa: E501 + endpoint: Optional[StrictStr] + name: Annotated[str, Field(strict=True, max_length=15)] + did: Optional[StrictStr] + is_primary: Optional[StrictBool] = Field(default=None, alias="isPrimary") + __properties: ClassVar[List[str]] = ["endpoint", "name", "did", "isPrimary"] + + @field_validator('name') + def name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z0-9-]+$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9-]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsAssociateIntegrationWithSigningAuthorityRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsAssociateIntegrationWithSigningAuthorityRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint"), + "name": obj.get("name"), + "did": obj.get("did"), + "isPrimary": obj.get("isPrimary") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_count_integrations_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_count_integrations_request.py new file mode 100644 index 0000000000..2fa8138083 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_count_integrations_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsCountIntegrationsRequest(BaseModel): + """ + IntegrationsCountIntegrationsRequest + """ # noqa: E501 + query: Optional[IntegrationsGetIntegrationsRequestQuery] = None + __properties: ClassVar[List[str]] = ["query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsCountIntegrationsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsCountIntegrationsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "query": IntegrationsGetIntegrationsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integration200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integration200_response.py new file mode 100644 index 0000000000..6bf5b87afc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integration200_response.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsGetIntegration200Response(BaseModel): + """ + IntegrationsGetIntegration200Response + """ # noqa: E501 + id: Optional[StrictStr] + name: Optional[StrictStr] + description: Optional[StrictStr] = None + publishable_key: Optional[StrictStr] = Field(alias="publishableKey") + whitelisted_domains: List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner] = Field(alias="whitelistedDomains") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name", "description", "publishableKey", "whitelistedDomains"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegration200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in whitelisted_domains (list) + _items = [] + if self.whitelisted_domains: + for _item_whitelisted_domains in self.whitelisted_domains: + if _item_whitelisted_domains: + _items.append(_item_whitelisted_domains.to_dict()) + _dict['whitelistedDomains'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if publishable_key (nullable) is None + # and model_fields_set contains the field + if self.publishable_key is None and "publishable_key" in self.model_fields_set: + _dict['publishableKey'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegration200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "publishableKey": obj.get("publishableKey"), + "whitelistedDomains": [IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_dict(_item) for _item in obj["whitelistedDomains"]] if obj.get("whitelistedDomains") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response.py new file mode 100644 index 0000000000..ec9acad810 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_get_integrations200_response_records_inner import IntegrationsGetIntegrations200ResponseRecordsInner +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsGetIntegrations200Response(BaseModel): + """ + IntegrationsGetIntegrations200Response + """ # noqa: E501 + cursor: Optional[StrictStr] = None + has_more: StrictBool = Field(alias="hasMore") + records: List[IntegrationsGetIntegrations200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrations200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrations200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cursor": obj.get("cursor"), + "hasMore": obj.get("hasMore"), + "records": [IntegrationsGetIntegrations200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response_records_inner.py new file mode 100644 index 0000000000..fc44b2265b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations200_response_records_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsGetIntegrations200ResponseRecordsInner(BaseModel): + """ + IntegrationsGetIntegrations200ResponseRecordsInner + """ # noqa: E501 + id: StrictStr + name: StrictStr + description: Optional[StrictStr] = None + publishable_key: StrictStr = Field(alias="publishableKey") + whitelisted_domains: List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner] = Field(alias="whitelistedDomains") + __properties: ClassVar[List[str]] = ["id", "name", "description", "publishableKey", "whitelistedDomains"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrations200ResponseRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in whitelisted_domains (list) + _items = [] + if self.whitelisted_domains: + for _item_whitelisted_domains in self.whitelisted_domains: + if _item_whitelisted_domains: + _items.append(_item_whitelisted_domains.to_dict()) + _dict['whitelistedDomains'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrations200ResponseRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "publishableKey": obj.get("publishableKey"), + "whitelistedDomains": [IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_dict(_item) for _item in obj["whitelistedDomains"]] if obj.get("whitelistedDomains") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request.py new file mode 100644 index 0000000000..ac5eb49746 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsGetIntegrationsRequest(BaseModel): + """ + IntegrationsGetIntegrationsRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = None + cursor: Optional[StrictStr] = None + query: Optional[IntegrationsGetIntegrationsRequestQuery] = None + __properties: ClassVar[List[str]] = ["limit", "cursor", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrationsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if limit (nullable) is None + # and model_fields_set contains the field + if self.limit is None and "limit" in self.model_fields_set: + _dict['limit'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrationsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit"), + "cursor": obj.get("cursor"), + "query": IntegrationsGetIntegrationsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request_query.py new file mode 100644 index 0000000000..3d6d3ef6b3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_get_integrations_request_query.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsGetIntegrationsRequestQuery(BaseModel): + """ + IntegrationsGetIntegrationsRequestQuery + """ # noqa: E501 + id: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + name: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + description: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement] = None + __properties: ClassVar[List[str]] = ["id", "name", "description"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrationsRequestQuery from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + # override the default output from pydantic by calling `to_dict()` of name + if self.name: + _dict['name'] = self.name.to_dict() + # override the default output from pydantic by calling `to_dict()` of description + if self.description: + _dict['description'] = self.description.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsGetIntegrationsRequestQuery from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["name"]) if obj.get("name") is not None else None, + "description": BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement.from_dict(obj["description"]) if obj.get("description") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request.py new file mode 100644 index 0000000000..076f6c30ee --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.integrations_update_integration_request_updates import IntegrationsUpdateIntegrationRequestUpdates +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsUpdateIntegrationRequest(BaseModel): + """ + IntegrationsUpdateIntegrationRequest + """ # noqa: E501 + updates: IntegrationsUpdateIntegrationRequestUpdates + __properties: ClassVar[List[str]] = ["updates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsUpdateIntegrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updates + if self.updates: + _dict['updates'] = self.updates.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsUpdateIntegrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updates": IntegrationsUpdateIntegrationRequestUpdates.from_dict(obj["updates"]) if obj.get("updates") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request_updates.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request_updates.py new file mode 100644 index 0000000000..b7b58ed892 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/integrations_update_integration_request_updates.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner +from typing import Optional, Set +from typing_extensions import Self + +class IntegrationsUpdateIntegrationRequestUpdates(BaseModel): + """ + IntegrationsUpdateIntegrationRequestUpdates + """ # noqa: E501 + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + whitelisted_domains: Optional[List[IntegrationsAddIntegrationRequestWhitelistedDomainsInner]] = Field(default=None, alias="whitelistedDomains") + rotate_publishable_key: Optional[StrictBool] = Field(default=None, alias="rotatePublishableKey") + __properties: ClassVar[List[str]] = ["name", "description", "whitelistedDomains", "rotatePublishableKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IntegrationsUpdateIntegrationRequestUpdates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in whitelisted_domains (list) + _items = [] + if self.whitelisted_domains: + for _item_whitelisted_domains in self.whitelisted_domains: + if _item_whitelisted_domains: + _items.append(_item_whitelisted_domains.to_dict()) + _dict['whitelistedDomains'] = _items + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IntegrationsUpdateIntegrationRequestUpdates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "whitelistedDomains": [IntegrationsAddIntegrationRequestWhitelistedDomainsInner.from_dict(_item) for _item in obj["whitelistedDomains"]] if obj.get("whitelistedDomains") is not None else None, + "rotatePublishableKey": obj.get("rotatePublishableKey") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_accept_presentation_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_accept_presentation_request.py index 92d95ca33a..0343f7cf57 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_accept_presentation_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_accept_presentation_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class PresentationAcceptPresentationRequest(BaseModel): """ PresentationAcceptPresentationRequest """ # noqa: E501 - uri: StrictStr + uri: Optional[StrictStr] __properties: ClassVar[List[str]] = ["uri"] model_config = ConfigDict( @@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if uri (nullable) is None + # and model_fields_set contains the field + if self.uri is None and "uri" in self.model_fields_set: + _dict['uri'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation.py index e7436fd2a0..ceee27de53 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation.py @@ -19,13 +19,13 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_send_boost_request_credential_any_of1 import BoostSendBoostRequestCredentialAnyOf1 +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -PRESENTATIONSENDPRESENTATIONREQUESTPRESENTATION_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOf1", "PresentationSendPresentationRequestPresentationAnyOf"] +PRESENTATIONSENDPRESENTATIONREQUESTPRESENTATION_ANY_OF_SCHEMAS = ["CredentialSendCredentialRequestCredentialAnyOf1", "PresentationSendPresentationRequestPresentationAnyOf"] class PresentationSendPresentationRequestPresentation(BaseModel): """ @@ -34,13 +34,13 @@ class PresentationSendPresentationRequestPresentation(BaseModel): # data type: PresentationSendPresentationRequestPresentationAnyOf anyof_schema_1_validator: Optional[PresentationSendPresentationRequestPresentationAnyOf] = None - # data type: BoostSendBoostRequestCredentialAnyOf1 - anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # data type: CredentialSendCredentialRequestCredentialAnyOf1 + anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf]] = None + actual_instance: Optional[Union[CredentialSendCredentialRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOf1", "PresentationSendPresentationRequestPresentationAnyOf" } + any_of_schemas: Set[str] = { "CredentialSendCredentialRequestCredentialAnyOf1", "PresentationSendPresentationRequestPresentationAnyOf" } model_config = { "validate_assignment": True, @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: BoostSendBoostRequestCredentialAnyOf1 - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf1`") + # validate data type: CredentialSendCredentialRequestCredentialAnyOf1 + if not isinstance(v, CredentialSendCredentialRequestCredentialAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `CredentialSendCredentialRequestCredentialAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in PresentationSendPresentationRequestPresentation with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in PresentationSendPresentationRequestPresentation with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf1.from_json(json_str) + instance.actual_instance = CredentialSendCredentialRequestCredentialAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into PresentationSendPresentationRequestPresentation with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into PresentationSendPresentationRequestPresentation with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], CredentialSendCredentialRequestCredentialAnyOf1, PresentationSendPresentationRequestPresentationAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of.py index d246af6c56..26009f6c0f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of.py @@ -19,9 +19,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of_context_inner import BoostSendBoostRequestCredentialAnyOfContextInner -from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType -from openapi_client.models.boost_send_boost_request_credential_any_of_proof import BoostSendBoostRequestCredentialAnyOfProof +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof from openapi_client.models.presentation_send_presentation_request_presentation_any_of_verifiable_credential import PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential from typing import Optional, Set from typing_extensions import Self @@ -30,12 +30,12 @@ class PresentationSendPresentationRequestPresentationAnyOf(BaseModel): """ PresentationSendPresentationRequestPresentationAnyOf """ # noqa: E501 - context: List[BoostSendBoostRequestCredentialAnyOfContextInner] = Field(alias="@context") + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") id: Optional[StrictStr] = None - type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType + type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType verifiable_credential: Optional[PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential] = Field(default=None, alias="verifiableCredential") holder: Optional[StrictStr] = None - proof: BoostSendBoostRequestCredentialAnyOfProof + proof: BoostSendRequestTemplateCredentialAnyOfProof additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["@context", "id", "type", "verifiableCredential", "holder", "proof"] @@ -101,6 +101,16 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if holder (nullable) is None + # and model_fields_set contains the field + if self.holder is None and "holder" in self.model_fields_set: + _dict['holder'] = None + return _dict @classmethod @@ -113,12 +123,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "@context": [BoostSendBoostRequestCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, "id": obj.get("id"), - "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, "verifiableCredential": PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.from_dict(obj["verifiableCredential"]) if obj.get("verifiableCredential") is not None else None, "holder": obj.get("holder"), - "proof": BoostSendBoostRequestCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of_verifiable_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of_verifiable_credential.py index c96c1e2304..480be2ac5b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of_verifiable_credential.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/presentation_send_presentation_request_presentation_any_of_verifiable_credential.py @@ -19,27 +19,27 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import List, Optional -from openapi_client.models.boost_send_boost_request_credential_any_of import BoostSendBoostRequestCredentialAnyOf +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -PRESENTATIONSENDPRESENTATIONREQUESTPRESENTATIONANYOFVERIFIABLECREDENTIAL_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOf", "List[BoostSendBoostRequestCredentialAnyOf]"] +PRESENTATIONSENDPRESENTATIONREQUESTPRESENTATIONANYOFVERIFIABLECREDENTIAL_ANY_OF_SCHEMAS = ["BoostSendRequestTemplateCredentialAnyOf", "List[BoostSendRequestTemplateCredentialAnyOf]"] class PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential(BaseModel): """ PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential """ - # data type: BoostSendBoostRequestCredentialAnyOf - anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None - # data type: List[BoostSendBoostRequestCredentialAnyOf] - anyof_schema_2_validator: Optional[List[BoostSendBoostRequestCredentialAnyOf]] = None + # data type: BoostSendRequestTemplateCredentialAnyOf + anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None + # data type: List[BoostSendRequestTemplateCredentialAnyOf] + anyof_schema_2_validator: Optional[List[BoostSendRequestTemplateCredentialAnyOf]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOf, List[BoostSendBoostRequestCredentialAnyOf]]] = None + actual_instance: Optional[Union[BoostSendRequestTemplateCredentialAnyOf, List[BoostSendRequestTemplateCredentialAnyOf]]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOf", "List[BoostSendBoostRequestCredentialAnyOf]" } + any_of_schemas: Set[str] = { "BoostSendRequestTemplateCredentialAnyOf", "List[BoostSendRequestTemplateCredentialAnyOf]" } model_config = { "validate_assignment": True, @@ -60,13 +60,13 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.model_construct() error_messages = [] - # validate data type: BoostSendBoostRequestCredentialAnyOf - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf`") + # validate data type: BoostSendRequestTemplateCredentialAnyOf + if not isinstance(v, BoostSendRequestTemplateCredentialAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendRequestTemplateCredentialAnyOf`") else: return v - # validate data type: List[BoostSendBoostRequestCredentialAnyOf] + # validate data type: List[BoostSendRequestTemplateCredentialAnyOf] try: instance.anyof_schema_2_validator = v return v @@ -74,7 +74,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential with anyOf schemas: BoostSendBoostRequestCredentialAnyOf, List[BoostSendBoostRequestCredentialAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, List[BoostSendRequestTemplateCredentialAnyOf]. Details: " + ", ".join(error_messages)) else: return v @@ -87,13 +87,13 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BoostSendBoostRequestCredentialAnyOf] = None + # anyof_schema_1_validator: Optional[BoostSendRequestTemplateCredentialAnyOf] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf.from_json(json_str) + instance.actual_instance = BoostSendRequestTemplateCredentialAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into List[BoostSendBoostRequestCredentialAnyOf] + # deserialize data into List[BoostSendRequestTemplateCredentialAnyOf] try: # validation instance.anyof_schema_2_validator = json.loads(json_str) @@ -105,7 +105,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential with anyOf schemas: BoostSendBoostRequestCredentialAnyOf, List[BoostSendBoostRequestCredentialAnyOf]. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential with anyOf schemas: BoostSendRequestTemplateCredentialAnyOf, List[BoostSendRequestTemplateCredentialAnyOf]. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +119,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOf, List[BoostSendBoostRequestCredentialAnyOf]]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendRequestTemplateCredentialAnyOf, List[BoostSendRequestTemplateCredentialAnyOf]]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request.py index 9ef91cd2de..16ca15e69c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.profile_create_profile_request_display import ProfileCreateProfileRequestDisplay from typing import Optional, Set from typing_extensions import Self @@ -39,10 +39,13 @@ class ProfileCreateProfileRequest(BaseModel): website_link: Optional[StrictStr] = Field(default=None, description="Website link for the profile.", alias="websiteLink") type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") - display: Optional[BoostGetBoostRecipients200ResponseInnerToDisplay] = None + display: Optional[ProfileCreateProfileRequestDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") - __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "type", "notificationsWebhook", "display", "role", "dob"] + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] @field_validator('notifications_webhook') def notifications_webhook_validate_regular_expression(cls, value): @@ -50,8 +53,8 @@ def notifications_webhook_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^http", value): - raise ValueError(r"must validate the regular expression /^http/") + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") return value model_config = ConfigDict( @@ -119,9 +122,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "websiteLink": obj.get("websiteLink"), "type": obj.get("type"), "notificationsWebhook": obj.get("notificationsWebhook"), - "display": BoostGetBoostRecipients200ResponseInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "display": ProfileCreateProfileRequestDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), "role": obj.get("role") if obj.get("role") is not None else '', - "dob": obj.get("dob") if obj.get("dob") is not None else '' + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request_display.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request_display.py new file mode 100644 index 0000000000..15db8fff1d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_profile_request_display.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ProfileCreateProfileRequestDisplay(BaseModel): + """ + Display settings for the profile. + """ # noqa: E501 + background_color: Optional[StrictStr] = Field(default=None, alias="backgroundColor") + background_image: Optional[StrictStr] = Field(default=None, alias="backgroundImage") + fade_background_image: Optional[StrictBool] = Field(default=None, alias="fadeBackgroundImage") + repeat_background_image: Optional[StrictBool] = Field(default=None, alias="repeatBackgroundImage") + font_color: Optional[StrictStr] = Field(default=None, alias="fontColor") + accent_color: Optional[StrictStr] = Field(default=None, alias="accentColor") + accent_font_color: Optional[StrictStr] = Field(default=None, alias="accentFontColor") + id_background_image: Optional[StrictStr] = Field(default=None, alias="idBackgroundImage") + fade_id_background_image: Optional[StrictBool] = Field(default=None, alias="fadeIdBackgroundImage") + id_background_color: Optional[StrictStr] = Field(default=None, alias="idBackgroundColor") + repeat_id_background_image: Optional[StrictBool] = Field(default=None, alias="repeatIdBackgroundImage") + __properties: ClassVar[List[str]] = ["backgroundColor", "backgroundImage", "fadeBackgroundImage", "repeatBackgroundImage", "fontColor", "accentColor", "accentFontColor", "idBackgroundImage", "fadeIdBackgroundImage", "idBackgroundColor", "repeatIdBackgroundImage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileCreateProfileRequestDisplay from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if background_color (nullable) is None + # and model_fields_set contains the field + if self.background_color is None and "background_color" in self.model_fields_set: + _dict['backgroundColor'] = None + + # set to None if background_image (nullable) is None + # and model_fields_set contains the field + if self.background_image is None and "background_image" in self.model_fields_set: + _dict['backgroundImage'] = None + + # set to None if font_color (nullable) is None + # and model_fields_set contains the field + if self.font_color is None and "font_color" in self.model_fields_set: + _dict['fontColor'] = None + + # set to None if accent_color (nullable) is None + # and model_fields_set contains the field + if self.accent_color is None and "accent_color" in self.model_fields_set: + _dict['accentColor'] = None + + # set to None if accent_font_color (nullable) is None + # and model_fields_set contains the field + if self.accent_font_color is None and "accent_font_color" in self.model_fields_set: + _dict['accentFontColor'] = None + + # set to None if id_background_image (nullable) is None + # and model_fields_set contains the field + if self.id_background_image is None and "id_background_image" in self.model_fields_set: + _dict['idBackgroundImage'] = None + + # set to None if id_background_color (nullable) is None + # and model_fields_set contains the field + if self.id_background_color is None and "id_background_color" in self.model_fields_set: + _dict['idBackgroundColor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileCreateProfileRequestDisplay from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "backgroundColor": obj.get("backgroundColor"), + "backgroundImage": obj.get("backgroundImage"), + "fadeBackgroundImage": obj.get("fadeBackgroundImage"), + "repeatBackgroundImage": obj.get("repeatBackgroundImage"), + "fontColor": obj.get("fontColor"), + "accentColor": obj.get("accentColor"), + "accentFontColor": obj.get("accentFontColor"), + "idBackgroundImage": obj.get("idBackgroundImage"), + "fadeIdBackgroundImage": obj.get("fadeIdBackgroundImage"), + "idBackgroundColor": obj.get("idBackgroundColor"), + "repeatIdBackgroundImage": obj.get("repeatIdBackgroundImage") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request.py new file mode 100644 index 0000000000..28f9a2d1ae --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay +from typing import Optional, Set +from typing_extensions import Self + +class ProfileCreateServiceProfileRequest(BaseModel): + """ + ProfileCreateServiceProfileRequest + """ # noqa: E501 + profile_id: Annotated[str, Field(min_length=3, strict=True, max_length=40)] = Field(description="Unique, URL-safe identifier for the profile.", alias="profileId") + display_name: Optional[StrictStr] = Field(default='', description="Human-readable display name for the profile.", alias="displayName") + short_bio: Optional[StrictStr] = Field(default='', description="Short bio for the profile.", alias="shortBio") + bio: Optional[StrictStr] = Field(default='', description="Longer bio for the profile.") + is_private: Optional[StrictBool] = Field(default=None, description="Whether the profile is private or not and shows up in search results.", alias="isPrivate") + email: Optional[StrictStr] = Field(default=None, description="Contact email address for the profile. (deprecated)") + image: Optional[StrictStr] = Field(default=None, description="Profile image URL for the profile.") + hero_image: Optional[StrictStr] = Field(default=None, description="Hero image URL for the profile.", alias="heroImage") + website_link: Optional[StrictStr] = Field(default=None, description="Website link for the profile.", alias="websiteLink") + type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") + notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") + display: Optional[ProfileCreateServiceProfileRequestDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") + role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") + dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] + + @field_validator('notifications_webhook') + def notifications_webhook_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileCreateServiceProfileRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of display + if self.display: + _dict['display'] = self.display.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileCreateServiceProfileRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profileId": obj.get("profileId"), + "displayName": obj.get("displayName") if obj.get("displayName") is not None else '', + "shortBio": obj.get("shortBio") if obj.get("shortBio") is not None else '', + "bio": obj.get("bio") if obj.get("bio") is not None else '', + "isPrivate": obj.get("isPrivate"), + "email": obj.get("email"), + "image": obj.get("image"), + "heroImage": obj.get("heroImage"), + "websiteLink": obj.get("websiteLink"), + "type": obj.get("type"), + "notificationsWebhook": obj.get("notificationsWebhook"), + "display": ProfileCreateServiceProfileRequestDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), + "role": obj.get("role") if obj.get("role") is not None else '', + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request_display.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request_display.py new file mode 100644 index 0000000000..bcee356381 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_create_service_profile_request_display.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ProfileCreateServiceProfileRequestDisplay(BaseModel): + """ + Display settings for the profile. + """ # noqa: E501 + background_color: Optional[StrictStr] = Field(default=None, alias="backgroundColor") + background_image: Optional[StrictStr] = Field(default=None, alias="backgroundImage") + fade_background_image: Optional[StrictBool] = Field(default=None, alias="fadeBackgroundImage") + repeat_background_image: Optional[StrictBool] = Field(default=None, alias="repeatBackgroundImage") + font_color: Optional[StrictStr] = Field(default=None, alias="fontColor") + accent_color: Optional[StrictStr] = Field(default=None, alias="accentColor") + accent_font_color: Optional[StrictStr] = Field(default=None, alias="accentFontColor") + id_background_image: Optional[StrictStr] = Field(default=None, alias="idBackgroundImage") + fade_id_background_image: Optional[StrictBool] = Field(default=None, alias="fadeIdBackgroundImage") + id_background_color: Optional[StrictStr] = Field(default=None, alias="idBackgroundColor") + repeat_id_background_image: Optional[StrictBool] = Field(default=None, alias="repeatIdBackgroundImage") + __properties: ClassVar[List[str]] = ["backgroundColor", "backgroundImage", "fadeBackgroundImage", "repeatBackgroundImage", "fontColor", "accentColor", "accentFontColor", "idBackgroundImage", "fadeIdBackgroundImage", "idBackgroundColor", "repeatIdBackgroundImage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileCreateServiceProfileRequestDisplay from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileCreateServiceProfileRequestDisplay from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "backgroundColor": obj.get("backgroundColor"), + "backgroundImage": obj.get("backgroundImage"), + "fadeBackgroundImage": obj.get("fadeBackgroundImage"), + "repeatBackgroundImage": obj.get("repeatBackgroundImage"), + "fontColor": obj.get("fontColor"), + "accentColor": obj.get("accentColor"), + "accentFontColor": obj.get("accentFontColor"), + "idBackgroundImage": obj.get("idBackgroundImage"), + "fadeIdBackgroundImage": obj.get("fadeIdBackgroundImage"), + "idBackgroundColor": obj.get("idBackgroundColor"), + "repeatIdBackgroundImage": obj.get("repeatIdBackgroundImage") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite200_response.py index 79f2b270fb..0b44dcd513 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite200_response.py @@ -26,9 +26,10 @@ class ProfileGenerateInvite200Response(BaseModel): """ ProfileGenerateInvite200Response """ # noqa: E501 - profile_id: StrictStr = Field(alias="profileId") - challenge: StrictStr + profile_id: Optional[StrictStr] = Field(alias="profileId") + challenge: Optional[StrictStr] expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(alias="expiresIn") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["profileId", "challenge", "expiresIn"] model_config = ConfigDict( @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,6 +73,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if profile_id (nullable) is None + # and model_fields_set contains the field + if self.profile_id is None and "profile_id" in self.model_fields_set: + _dict['profileId'] = None + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + # set to None if expires_in (nullable) is None # and model_fields_set contains the field if self.expires_in is None and "expires_in" in self.model_fields_set: @@ -91,6 +109,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "challenge": obj.get("challenge"), "expiresIn": obj.get("expiresIn") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite_request.py index 8467a3eb1c..5560d32536 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_generate_invite_request.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,8 @@ class ProfileGenerateInviteRequest(BaseModel): """ # noqa: E501 expiration: Optional[Union[StrictFloat, StrictInt]] = 2592000 challenge: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["expiration", "challenge"] + max_uses: Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=0)]] = Field(default=1, alias="maxUses") + __properties: ClassVar[List[str]] = ["expiration", "challenge", "maxUses"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + return _dict @classmethod @@ -82,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "expiration": obj.get("expiration") if obj.get("expiration") is not None else 2592000, - "challenge": obj.get("challenge") + "challenge": obj.get("challenge"), + "maxUses": obj.get("maxUses") if obj.get("maxUses") is not None else 1 }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response.py index 8999091022..89e30f3cf1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response.py @@ -30,6 +30,7 @@ class ProfileGetAvailableProfiles200Response(BaseModel): cursor: Optional[StrictStr] = None has_more: StrictBool = Field(alias="hasMore") records: List[ProfileGetAvailableProfiles200ResponseRecordsInner] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["cursor", "hasMore", "records"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_records: _items.append(_item_records.to_dict()) _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasMore": obj.get("hasMore"), "records": [ProfileGetAvailableProfiles200ResponseRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner.py index c996294353..48ecbd32f1 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.boost_get_boost_recipients200_response_inner_to import BoostGetBoostRecipients200ResponseInnerTo -from openapi_client.models.boost_get_children_profile_managers200_response_records_inner import BoostGetChildrenProfileManagers200ResponseRecordsInner +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager from typing import Optional, Set from typing_extensions import Self @@ -28,8 +28,9 @@ class ProfileGetAvailableProfiles200ResponseRecordsInner(BaseModel): """ ProfileGetAvailableProfiles200ResponseRecordsInner """ # noqa: E501 - profile: BoostGetBoostRecipients200ResponseInnerTo - manager: Optional[BoostGetChildrenProfileManagers200ResponseRecordsInner] = None + profile: BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + manager: Optional[ProfileGetAvailableProfiles200ResponseRecordsInnerManager] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["profile", "manager"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of manager if self.manager: _dict['manager'] = self.manager.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -89,9 +97,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "profile": BoostGetBoostRecipients200ResponseInnerTo.from_dict(obj["profile"]) if obj.get("profile") is not None else None, - "manager": BoostGetChildrenProfileManagers200ResponseRecordsInner.from_dict(obj["manager"]) if obj.get("manager") is not None else None + "profile": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo.from_dict(obj["profile"]) if obj.get("profile") is not None else None, + "manager": ProfileGetAvailableProfiles200ResponseRecordsInnerManager.from_dict(obj["manager"]) if obj.get("manager") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner_manager.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner_manager.py new file mode 100644 index 0000000000..83365fdd1e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles200_response_records_inner_manager.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ProfileGetAvailableProfiles200ResponseRecordsInnerManager(BaseModel): + """ + ProfileGetAvailableProfiles200ResponseRecordsInnerManager + """ # noqa: E501 + id: StrictStr + created: StrictStr + display_name: Optional[StrictStr] = Field(default='', alias="displayName") + short_bio: Optional[StrictStr] = Field(default='', alias="shortBio") + bio: Optional[StrictStr] = '' + email: Optional[StrictStr] = None + image: Optional[StrictStr] = None + hero_image: Optional[StrictStr] = Field(default=None, alias="heroImage") + did: StrictStr + __properties: ClassVar[List[str]] = ["id", "created", "displayName", "shortBio", "bio", "email", "image", "heroImage", "did"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileGetAvailableProfiles200ResponseRecordsInnerManager from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileGetAvailableProfiles200ResponseRecordsInnerManager from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "created": obj.get("created"), + "displayName": obj.get("displayName") if obj.get("displayName") is not None else '', + "shortBio": obj.get("shortBio") if obj.get("shortBio") is not None else '', + "bio": obj.get("bio") if obj.get("bio") is not None else '', + "email": obj.get("email"), + "image": obj.get("image"), + "heroImage": obj.get("heroImage"), + "did": obj.get("did") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles_request.py index db8be2fbb0..b7e317a19c 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_get_available_profiles_request.py @@ -75,6 +75,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + # set to None if sort (nullable) is None + # and model_fields_set contains the field + if self.sort is None and "sort" in self.model_fields_set: + _dict['sort'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_list_invites200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_list_invites200_response_inner.py new file mode 100644 index 0000000000..66bd882412 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_list_invites200_response_inner.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ProfileListInvites200ResponseInner(BaseModel): + """ + ProfileListInvites200ResponseInner + """ # noqa: E501 + challenge: Optional[StrictStr] + expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(alias="expiresIn") + uses_remaining: Optional[Union[StrictFloat, StrictInt]] = Field(alias="usesRemaining") + max_uses: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxUses") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["challenge", "expiresIn", "usesRemaining", "maxUses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileListInvites200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + + # set to None if expires_in (nullable) is None + # and model_fields_set contains the field + if self.expires_in is None and "expires_in" in self.model_fields_set: + _dict['expiresIn'] = None + + # set to None if uses_remaining (nullable) is None + # and model_fields_set contains the field + if self.uses_remaining is None and "uses_remaining" in self.model_fields_set: + _dict['usesRemaining'] = None + + # set to None if max_uses (nullable) is None + # and model_fields_set contains the field + if self.max_uses is None and "max_uses" in self.model_fields_set: + _dict['maxUses'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileListInvites200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "challenge": obj.get("challenge"), + "expiresIn": obj.get("expiresIn"), + "usesRemaining": obj.get("usesRemaining"), + "maxUses": obj.get("maxUses") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request.py index aed69d8940..23ee88e485 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request.py @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.profile_manager_create_profile_manager_request import ProfileManagerCreateProfileManagerRequest +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ProfileManagerCreateChildProfileManagerRequest(BaseModel): """ ProfileManagerCreateChildProfileManagerRequest """ # noqa: E501 - parent_uri: StrictStr = Field(alias="parentUri") - profile: ProfileManagerCreateProfileManagerRequest + parent_uri: Optional[StrictStr] = Field(alias="parentUri") + profile: ProfileManagerCreateChildProfileManagerRequestProfile __properties: ClassVar[List[str]] = ["parentUri", "profile"] model_config = ConfigDict( @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of profile if self.profile: _dict['profile'] = self.profile.to_dict() + # set to None if parent_uri (nullable) is None + # and model_fields_set contains the field + if self.parent_uri is None and "parent_uri" in self.model_fields_set: + _dict['parentUri'] = None + return _dict @classmethod @@ -86,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "parentUri": obj.get("parentUri"), - "profile": ProfileManagerCreateProfileManagerRequest.from_dict(obj["profile"]) if obj.get("profile") is not None else None + "profile": ProfileManagerCreateChildProfileManagerRequestProfile.from_dict(obj["profile"]) if obj.get("profile") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request_profile.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request_profile.py new file mode 100644 index 0000000000..e998f7b510 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_child_profile_manager_request_profile.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ProfileManagerCreateChildProfileManagerRequestProfile(BaseModel): + """ + ProfileManagerCreateChildProfileManagerRequestProfile + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default='', alias="displayName") + short_bio: Optional[StrictStr] = Field(default='', alias="shortBio") + bio: Optional[StrictStr] = '' + email: Optional[StrictStr] = None + image: Optional[StrictStr] = None + hero_image: Optional[StrictStr] = Field(default=None, alias="heroImage") + __properties: ClassVar[List[str]] = ["displayName", "shortBio", "bio", "email", "image", "heroImage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileManagerCreateChildProfileManagerRequestProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileManagerCreateChildProfileManagerRequestProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "displayName": obj.get("displayName") if obj.get("displayName") is not None else '', + "shortBio": obj.get("shortBio") if obj.get("shortBio") is not None else '', + "bio": obj.get("bio") if obj.get("bio") is not None else '', + "email": obj.get("email"), + "image": obj.get("image"), + "heroImage": obj.get("heroImage") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_managed_profile_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_managed_profile_request.py index 21c2a0f3ce..b7698c1351 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_managed_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_managed_profile_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay from typing import Optional, Set from typing_extensions import Self @@ -40,10 +40,13 @@ class ProfileManagerCreateManagedProfileRequest(BaseModel): is_service_profile: Optional[StrictBool] = Field(default=False, description="Whether the profile is a service profile or not.", alias="isServiceProfile") type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") - display: Optional[BoostGetBoostRecipients200ResponseInnerToDisplay] = None + display: Optional[ProfileCreateServiceProfileRequestDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") - __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "role", "dob"] + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] @field_validator('notifications_webhook') def notifications_webhook_validate_regular_expression(cls, value): @@ -51,8 +54,8 @@ def notifications_webhook_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^http", value): - raise ValueError(r"must validate the regular expression /^http/") + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") return value model_config = ConfigDict( @@ -121,9 +124,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isServiceProfile": obj.get("isServiceProfile") if obj.get("isServiceProfile") is not None else False, "type": obj.get("type"), "notificationsWebhook": obj.get("notificationsWebhook"), - "display": BoostGetBoostRecipients200ResponseInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "display": ProfileCreateServiceProfileRequestDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), "role": obj.get("role") if obj.get("role") is not None else '', - "dob": obj.get("dob") if obj.get("dob") is not None else '' + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_profile_manager_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_profile_manager_request.py index cf8cc8e18c..a80df7f04e 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_profile_manager_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_create_profile_manager_request.py @@ -73,6 +73,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + # set to None if hero_image (nullable) is None + # and model_fields_set contains the field + if self.hero_image is None and "hero_image" in self.model_fields_set: + _dict['heroImage'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_get_managed_profiles_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_get_managed_profiles_request.py new file mode 100644 index 0000000000..9b727f229d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_manager_get_managed_profiles_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.boost_get_paginated_boost_recipients_request_query import BoostGetPaginatedBoostRecipientsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class ProfileManagerGetManagedProfilesRequest(BaseModel): + """ + ProfileManagerGetManagedProfilesRequest + """ # noqa: E501 + limit: Optional[Union[StrictFloat, StrictInt]] = 25 + cursor: Optional[StrictStr] = None + sort: Optional[StrictStr] = None + query: Optional[BoostGetPaginatedBoostRecipientsRequestQuery] = None + __properties: ClassVar[List[str]] = ["limit", "cursor", "sort", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileManagerGetManagedProfilesRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileManagerGetManagedProfilesRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit") if obj.get("limit") is not None else 25, + "cursor": obj.get("cursor"), + "sort": obj.get("sort"), + "query": BoostGetPaginatedBoostRecipientsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_register_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_register_signing_authority_request.py index 546ae3053b..f60978a1b2 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_register_signing_authority_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_register_signing_authority_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,9 +27,9 @@ class ProfileRegisterSigningAuthorityRequest(BaseModel): """ ProfileRegisterSigningAuthorityRequest """ # noqa: E501 - endpoint: StrictStr + endpoint: Optional[StrictStr] name: Annotated[str, Field(strict=True, max_length=15)] - did: StrictStr + did: Optional[StrictStr] __properties: ClassVar[List[str]] = ["endpoint", "name", "did"] @field_validator('name') @@ -78,6 +78,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_search_profiles200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_search_profiles200_response_inner.py index f68ac85d3b..b6e018ca82 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_search_profiles200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_search_profiles200_response_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay from typing import Optional, Set from typing_extensions import Self @@ -41,11 +41,15 @@ class ProfileSearchProfiles200ResponseInner(BaseModel): is_service_profile: Optional[StrictBool] = Field(default=False, description="Whether the profile is a service profile or not.", alias="isServiceProfile") type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") - display: Optional[BoostGetBoostRecipients200ResponseInnerToDisplay] = None + display: Optional[BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") connection_status: Optional[StrictStr] = Field(default=None, alias="connectionStatus") - __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "did", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "role", "dob", "connectionStatus"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "did", "isPrivate", "email", "image", "heroImage", "websiteLink", "isServiceProfile", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved", "connectionStatus"] @field_validator('notifications_webhook') def notifications_webhook_validate_regular_expression(cls, value): @@ -53,8 +57,8 @@ def notifications_webhook_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^http", value): - raise ValueError(r"must validate the regular expression /^http/") + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") return value @field_validator('connection_status') @@ -97,8 +101,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -109,6 +115,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of display if self.display: _dict['display'] = self.display.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -134,11 +145,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isServiceProfile": obj.get("isServiceProfile") if obj.get("isServiceProfile") is not None else False, "type": obj.get("type"), "notificationsWebhook": obj.get("notificationsWebhook"), - "display": BoostGetBoostRecipients200ResponseInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "display": BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), "role": obj.get("role") if obj.get("role") is not None else '', "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved"), "connectionStatus": obj.get("connectionStatus") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_set_primary_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_set_primary_signing_authority_request.py index bb66b123ff..8587e2bcdf 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_set_primary_signing_authority_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_set_primary_signing_authority_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ProfileSetPrimarySigningAuthorityRequest(BaseModel): """ ProfileSetPrimarySigningAuthorityRequest """ # noqa: E501 - endpoint: StrictStr + endpoint: Optional[StrictStr] name: Annotated[str, Field(strict=True, max_length=15)] __properties: ClassVar[List[str]] = ["endpoint", "name"] @@ -77,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + return _dict @classmethod diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner.py index c9c58dcfee..3c7e5d3838 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner.py @@ -30,6 +30,7 @@ class ProfileSigningAuthorities200ResponseInner(BaseModel): """ # noqa: E501 signing_authority: ProfileSigningAuthorities200ResponseInnerSigningAuthority = Field(alias="signingAuthority") relationship: ProfileSigningAuthorities200ResponseInnerRelationship + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["signingAuthority", "relationship"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -77,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of relationship if self.relationship: _dict['relationship'] = self.relationship.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -92,6 +100,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "signingAuthority": ProfileSigningAuthorities200ResponseInnerSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None, "relationship": ProfileSigningAuthorities200ResponseInnerRelationship.from_dict(obj["relationship"]) if obj.get("relationship") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_relationship.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_relationship.py index 2174c874c3..734c08c561 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_relationship.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_relationship.py @@ -28,8 +28,9 @@ class ProfileSigningAuthorities200ResponseInnerRelationship(BaseModel): ProfileSigningAuthorities200ResponseInnerRelationship """ # noqa: E501 name: Annotated[str, Field(strict=True, max_length=15)] - did: StrictStr + did: Optional[StrictStr] is_primary: Optional[StrictBool] = Field(default=None, alias="isPrimary") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name", "did", "isPrimary"] @field_validator('name') @@ -69,8 +70,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if did (nullable) is None + # and model_fields_set contains the field + if self.did is None and "did" in self.model_fields_set: + _dict['did'] = None + return _dict @classmethod @@ -94,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "did": obj.get("did"), "isPrimary": obj.get("isPrimary") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_signing_authority.py index 9a2f96877b..e212d65585 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_signing_authority.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authorities200_response_inner_signing_authority.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,8 @@ class ProfileSigningAuthorities200ResponseInnerSigningAuthority(BaseModel): """ ProfileSigningAuthorities200ResponseInnerSigningAuthority """ # noqa: E501 - endpoint: StrictStr + endpoint: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["endpoint"] model_config = ConfigDict( @@ -59,8 +60,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -68,6 +71,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + return _dict @classmethod @@ -82,6 +95,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "endpoint": obj.get("endpoint") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response.py new file mode 100644 index 0000000000..8384e92caf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.profile_signing_authority200_response_relationship import ProfileSigningAuthority200ResponseRelationship +from openapi_client.models.profile_signing_authority200_response_signing_authority import ProfileSigningAuthority200ResponseSigningAuthority +from typing import Optional, Set +from typing_extensions import Self + +class ProfileSigningAuthority200Response(BaseModel): + """ + ProfileSigningAuthority200Response + """ # noqa: E501 + signing_authority: ProfileSigningAuthority200ResponseSigningAuthority = Field(alias="signingAuthority") + relationship: ProfileSigningAuthority200ResponseRelationship + __properties: ClassVar[List[str]] = ["signingAuthority", "relationship"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of signing_authority + if self.signing_authority: + _dict['signingAuthority'] = self.signing_authority.to_dict() + # override the default output from pydantic by calling `to_dict()` of relationship + if self.relationship: + _dict['relationship'] = self.relationship.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "signingAuthority": ProfileSigningAuthority200ResponseSigningAuthority.from_dict(obj["signingAuthority"]) if obj.get("signingAuthority") is not None else None, + "relationship": ProfileSigningAuthority200ResponseRelationship.from_dict(obj["relationship"]) if obj.get("relationship") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_relationship.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_relationship.py new file mode 100644 index 0000000000..0cfe36bb86 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_relationship.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ProfileSigningAuthority200ResponseRelationship(BaseModel): + """ + ProfileSigningAuthority200ResponseRelationship + """ # noqa: E501 + name: Annotated[str, Field(strict=True, max_length=15)] + did: StrictStr + is_primary: Optional[StrictBool] = Field(default=None, alias="isPrimary") + __properties: ClassVar[List[str]] = ["name", "did", "isPrimary"] + + @field_validator('name') + def name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z0-9-]+$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9-]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200ResponseRelationship from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200ResponseRelationship from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "did": obj.get("did"), + "isPrimary": obj.get("isPrimary") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_signing_authority.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_signing_authority.py new file mode 100644 index 0000000000..ae9560920e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_signing_authority200_response_signing_authority.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ProfileSigningAuthority200ResponseSigningAuthority(BaseModel): + """ + ProfileSigningAuthority200ResponseSigningAuthority + """ # noqa: E501 + endpoint: StrictStr + __properties: ClassVar[List[str]] = ["endpoint"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200ResponseSigningAuthority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProfileSigningAuthority200ResponseSigningAuthority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_update_profile_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_update_profile_request.py index ec58add79b..0414d30c75 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_update_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/profile_update_profile_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from openapi_client.models.boost_get_boost_recipients200_response_inner_to_display import BoostGetBoostRecipients200ResponseInnerToDisplay +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay from typing import Optional, Set from typing_extensions import Self @@ -39,10 +39,13 @@ class ProfileUpdateProfileRequest(BaseModel): website_link: Optional[StrictStr] = Field(default=None, description="Website link for the profile.", alias="websiteLink") type: Optional[StrictStr] = Field(default=None, description="Profile type: e.g. \"person\", \"organization\", \"service\".") notifications_webhook: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="URL to send notifications to.", alias="notificationsWebhook") - display: Optional[BoostGetBoostRecipients200ResponseInnerToDisplay] = None + display: Optional[ProfileCreateServiceProfileRequestDisplay] = None + highlighted_credentials: Optional[Annotated[List[StrictStr], Field(max_length=5)]] = Field(default=None, description="Up to 5 unique boost URIs to highlight on the profile.", alias="highlightedCredentials") role: Optional[StrictStr] = Field(default='', description="Role of the profile: e.g. \"teacher\", \"student\".") dob: Optional[StrictStr] = Field(default='', description="Date of birth of the profile: e.g. \"1990-01-01\".") - __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "type", "notificationsWebhook", "display", "role", "dob"] + country: Optional[StrictStr] = Field(default=None, description="Country for the profile.") + approved: Optional[StrictBool] = Field(default=None, description="Approval status for the profile.") + __properties: ClassVar[List[str]] = ["profileId", "displayName", "shortBio", "bio", "isPrivate", "email", "image", "heroImage", "websiteLink", "type", "notificationsWebhook", "display", "highlightedCredentials", "role", "dob", "country", "approved"] @field_validator('notifications_webhook') def notifications_webhook_validate_regular_expression(cls, value): @@ -50,8 +53,8 @@ def notifications_webhook_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^http", value): - raise ValueError(r"must validate the regular expression /^http/") + if not re.match(r"^http.*", value): + raise ValueError(r"must validate the regular expression /^http.*/") return value model_config = ConfigDict( @@ -119,9 +122,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "websiteLink": obj.get("websiteLink"), "type": obj.get("type"), "notificationsWebhook": obj.get("notificationsWebhook"), - "display": BoostGetBoostRecipients200ResponseInnerToDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "display": ProfileCreateServiceProfileRequestDisplay.from_dict(obj["display"]) if obj.get("display") is not None else None, + "highlightedCredentials": obj.get("highlightedCredentials"), "role": obj.get("role") if obj.get("role") is not None else '', - "dob": obj.get("dob") if obj.get("dob") is not None else '' + "dob": obj.get("dob") if obj.get("dob") is not None else '', + "country": obj.get("country"), + "approved": obj.get("approved") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/schema0.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/schema0.py new file mode 100644 index 0000000000..b8d65bd84b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/schema0.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Schema0(BaseModel): + """ + Schema0 + """ # noqa: E501 + id: Optional[StrictStr] = None + statement: StrictStr + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: Optional[StrictStr] = None + status: Optional[StrictStr] = None + children: Optional[List[Schema0]] = None + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "children"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Schema0 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in children (list) + _items = [] + if self.children: + for _item_children in self.children: + if _item_children: + _items.append(_item_children.to_dict()) + _dict['children'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Schema0 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type"), + "status": obj.get("status"), + "children": [Schema0.from_dict(_item) for _item in obj["children"]] if obj.get("children") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +Schema0.model_rebuild(raise_errors=False) + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/schema1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/schema1.py new file mode 100644 index 0000000000..bb98416fa0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/schema1.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Schema1(BaseModel): + """ + Schema1 + """ # noqa: E501 + id: StrictStr + statement: StrictStr + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: StrictStr + status: StrictStr + framework_id: Optional[StrictStr] = Field(default=None, alias="frameworkId") + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + children: List[Schema1] + has_children: StrictBool = Field(alias="hasChildren") + children_cursor: Optional[StrictStr] = Field(default=None, alias="childrenCursor") + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "frameworkId", "createdAt", "updatedAt", "children", "hasChildren", "childrenCursor"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Schema1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in children (list) + _items = [] + if self.children: + for _item_children in self.children: + if _item_children: + _items.append(_item_children.to_dict()) + _dict['children'] = _items + # set to None if children_cursor (nullable) is None + # and model_fields_set contains the field + if self.children_cursor is None and "children_cursor" in self.model_fields_set: + _dict['childrenCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Schema1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type") if obj.get("type") is not None else 'skill', + "status": obj.get("status") if obj.get("status") is not None else 'active', + "frameworkId": obj.get("frameworkId"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "children": [Schema1.from_dict(_item) for _item in obj["children"]] if obj.get("children") is not None else None, + "hasChildren": obj.get("hasChildren"), + "childrenCursor": obj.get("childrenCursor") + }) + return _obj + +# TODO: Rewrite to not use raise_errors +Schema1.model_rebuild(raise_errors=False) + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin200_response.py new file mode 100644 index 0000000000..30228d68b4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin200_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksAddFrameworkAdmin200Response(BaseModel): + """ + SkillFrameworksAddFrameworkAdmin200Response + """ # noqa: E501 + success: StrictBool + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksAddFrameworkAdmin200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksAddFrameworkAdmin200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin_request.py new file mode 100644 index 0000000000..f1246283a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_add_framework_admin_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksAddFrameworkAdminRequest(BaseModel): + """ + SkillFrameworksAddFrameworkAdminRequest + """ # noqa: E501 + profile_id: Optional[StrictStr] = Field(alias="profileId") + __properties: ClassVar[List[str]] = ["profileId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksAddFrameworkAdminRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if profile_id (nullable) is None + # and model_fields_set contains the field + if self.profile_id is None and "profile_id" in self.model_fields_set: + _dict['profileId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksAddFrameworkAdminRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profileId": obj.get("profileId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_count_boosts_that_use_framework200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_count_boosts_that_use_framework200_response.py new file mode 100644 index 0000000000..d1d274bc9a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_count_boosts_that_use_framework200_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksCountBoostsThatUseFramework200Response(BaseModel): + """ + SkillFrameworksCountBoostsThatUseFramework200Response + """ # noqa: E501 + count: Optional[Union[StrictFloat, StrictInt]] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksCountBoostsThatUseFramework200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if count (nullable) is None + # and model_fields_set contains the field + if self.count is None and "count" in self.model_fields_set: + _dict['count'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksCountBoostsThatUseFramework200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request.py new file mode 100644 index 0000000000..25c6ab7727 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner import SkillFrameworksCreateManagedBatchRequestFrameworksInner +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksCreateManagedBatchRequest(BaseModel): + """ + SkillFrameworksCreateManagedBatchRequest + """ # noqa: E501 + frameworks: Annotated[List[SkillFrameworksCreateManagedBatchRequestFrameworksInner], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["frameworks"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedBatchRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in frameworks (list) + _items = [] + if self.frameworks: + for _item_frameworks in self.frameworks: + if _item_frameworks: + _items.append(_item_frameworks.to_dict()) + _dict['frameworks'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedBatchRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworks": [SkillFrameworksCreateManagedBatchRequestFrameworksInner.from_dict(_item) for _item in obj["frameworks"]] if obj.get("frameworks") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request_frameworks_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request_frameworks_inner.py new file mode 100644 index 0000000000..ab3cc82dde --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_batch_request_frameworks_inner.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.schema0 import Schema0 +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksCreateManagedBatchRequestFrameworksInner(BaseModel): + """ + SkillFrameworksCreateManagedBatchRequestFrameworksInner + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Annotated[str, Field(min_length=1, strict=True)] + description: Optional[StrictStr] = None + image: Optional[StrictStr] = None + source_uri: Optional[StrictStr] = Field(default=None, alias="sourceURI") + status: Optional[StrictStr] = None + skills: Optional[List[Schema0]] = None + boost_uris: Optional[List[StrictStr]] = Field(default=None, alias="boostUris") + __properties: ClassVar[List[str]] = ["id", "name", "description", "image", "sourceURI", "status", "skills", "boostUris"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedBatchRequestFrameworksInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedBatchRequestFrameworksInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "image": obj.get("image"), + "sourceURI": obj.get("sourceURI"), + "status": obj.get("status"), + "skills": [Schema0.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None, + "boostUris": obj.get("boostUris") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_request.py new file mode 100644 index 0000000000..a8aed23208 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_managed_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.schema0 import Schema0 +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksCreateManagedRequest(BaseModel): + """ + SkillFrameworksCreateManagedRequest + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Annotated[str, Field(min_length=1, strict=True)] + description: Optional[StrictStr] = None + image: Optional[StrictStr] = None + source_uri: Optional[StrictStr] = Field(default=None, alias="sourceURI") + status: Optional[StrictStr] = None + skills: Optional[List[Schema0]] = None + boost_uris: Optional[List[StrictStr]] = Field(default=None, alias="boostUris") + __properties: ClassVar[List[str]] = ["id", "name", "description", "image", "sourceURI", "status", "skills", "boostUris"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksCreateManagedRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "image": obj.get("image"), + "sourceURI": obj.get("sourceURI"), + "status": obj.get("status"), + "skills": [Schema0.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None, + "boostUris": obj.get("boostUris") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_request.py similarity index 78% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of1.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_request.py index 98cafb2010..d44191e9cf 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/boost_get_boosts_request_query_uri_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_create_request.py @@ -22,12 +22,12 @@ from typing import Optional, Set from typing_extensions import Self -class BoostGetBoostsRequestQueryUriAnyOf1(BaseModel): +class SkillFrameworksCreateRequest(BaseModel): """ - BoostGetBoostsRequestQueryUriAnyOf1 + SkillFrameworksCreateRequest """ # noqa: E501 - regex: Optional[StrictStr] = Field(alias="$regex") - __properties: ClassVar[List[str]] = ["$regex"] + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + __properties: ClassVar[List[str]] = ["frameworkId"] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryUriAnyOf1 from a JSON string""" + """Create an instance of SkillFrameworksCreateRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -68,16 +68,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if regex (nullable) is None + # set to None if framework_id (nullable) is None # and model_fields_set contains the field - if self.regex is None and "regex" in self.model_fields_set: - _dict['$regex'] = None + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoostGetBoostsRequestQueryUriAnyOf1 from a dict""" + """Create an instance of SkillFrameworksCreateRequest from a dict""" if obj is None: return None @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "$regex": obj.get("$regex") + "frameworkId": obj.get("frameworkId") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_boosts_that_use_framework_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_boosts_that_use_framework_request.py new file mode 100644 index 0000000000..e80af5b360 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_boosts_that_use_framework_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_get_boosts_request_query import BoostGetBoostsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksGetBoostsThatUseFrameworkRequest(BaseModel): + """ + SkillFrameworksGetBoostsThatUseFrameworkRequest + """ # noqa: E501 + limit: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = 50 + cursor: Optional[StrictStr] = None + query: Optional[BoostGetBoostsRequestQuery] = None + __properties: ClassVar[List[str]] = ["limit", "cursor", "query"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksGetBoostsThatUseFrameworkRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksGetBoostsThatUseFrameworkRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "limit": obj.get("limit") if obj.get("limit") is not None else 50, + "cursor": obj.get("cursor"), + "query": BoostGetBoostsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response.py new file mode 100644 index 0000000000..a52e18f7b7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skill_frameworks_get_by_id200_response_skills import SkillFrameworksGetById200ResponseSkills +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksGetById200Response(BaseModel): + """ + SkillFrameworksGetById200Response + """ # noqa: E501 + framework: BoostGetBoostFrameworks200ResponseRecordsInner + skills: SkillFrameworksGetById200ResponseSkills + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["framework", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksGetById200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of framework + if self.framework: + _dict['framework'] = self.framework.to_dict() + # override the default output from pydantic by calling `to_dict()` of skills + if self.skills: + _dict['skills'] = self.skills.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksGetById200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "framework": BoostGetBoostFrameworks200ResponseRecordsInner.from_dict(obj["framework"]) if obj.get("framework") is not None else None, + "skills": SkillFrameworksGetById200ResponseSkills.from_dict(obj["skills"]) if obj.get("skills") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response_skills.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response_skills.py new file mode 100644 index 0000000000..2d65407ce5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_get_by_id200_response_skills.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.schema1 import Schema1 +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksGetById200ResponseSkills(BaseModel): + """ + SkillFrameworksGetById200ResponseSkills + """ # noqa: E501 + has_more: StrictBool = Field(alias="hasMore") + cursor: Optional[StrictStr] + records: List[Schema1] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["hasMore", "cursor", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksGetById200ResponseSkills from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksGetById200ResponseSkills from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hasMore": obj.get("hasMore"), + "cursor": obj.get("cursor"), + "records": [Schema1.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_remove_framework_admin200_response.py similarity index 80% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_remove_framework_admin200_response.py index de7cc3927e..f2c6b892e8 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_remove_framework_admin200_response.py @@ -22,12 +22,12 @@ from typing import Optional, Set from typing_extensions import Self -class StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue(BaseModel): +class SkillFrameworksRemoveFrameworkAdmin200Response(BaseModel): """ - StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue + SkillFrameworksRemoveFrameworkAdmin200Response """ # noqa: E501 - required: StrictBool - __properties: ClassVar[List[str]] = ["required"] + success: StrictBool + __properties: ClassVar[List[str]] = ["success"] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue from a JSON string""" + """Create an instance of SkillFrameworksRemoveFrameworkAdmin200Response from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue from a dict""" + """Create an instance of SkillFrameworksRemoveFrameworkAdmin200Response from a dict""" if obj is None: return None @@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "required": obj.get("required") + "success": obj.get("success") }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills200_response.py new file mode 100644 index 0000000000..19cd5f5540 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills200_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksReplaceSkills200Response(BaseModel): + """ + SkillFrameworksReplaceSkills200Response + """ # noqa: E501 + created: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + updated: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + deleted: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + unchanged: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + total: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["created", "updated", "deleted", "unchanged", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksReplaceSkills200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksReplaceSkills200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "created": obj.get("created"), + "updated": obj.get("updated"), + "deleted": obj.get("deleted"), + "unchanged": obj.get("unchanged"), + "total": obj.get("total") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills_request.py new file mode 100644 index 0000000000..90842aa19e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_replace_skills_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from openapi_client.models.schema0 import Schema0 +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksReplaceSkillsRequest(BaseModel): + """ + SkillFrameworksReplaceSkillsRequest + """ # noqa: E501 + skills: Annotated[List[Schema0], Field(min_length=0)] + __properties: ClassVar[List[str]] = ["skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksReplaceSkillsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksReplaceSkillsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skills": [Schema0.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_update_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_update_request.py new file mode 100644 index 0000000000..22af87644f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skill_frameworks_update_request.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillFrameworksUpdateRequest(BaseModel): + """ + SkillFrameworksUpdateRequest + """ # noqa: E501 + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + description: Optional[StrictStr] = None + image: Optional[StrictStr] = None + source_uri: Optional[StrictStr] = Field(default=None, alias="sourceURI") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "description", "image", "sourceURI", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillFrameworksUpdateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if image (nullable) is None + # and model_fields_set contains the field + if self.image is None and "image" in self.model_fields_set: + _dict['image'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillFrameworksUpdateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "image": obj.get("image"), + "sourceURI": obj.get("sourceURI"), + "status": obj.get("status") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag200_response_inner.py new file mode 100644 index 0000000000..8e361d9118 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag200_response_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillsAddSkillTag200ResponseInner(BaseModel): + """ + SkillsAddSkillTag200ResponseInner + """ # noqa: E501 + id: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] + slug: Annotated[str, Field(min_length=1, strict=True)] + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "slug", "createdAt", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsAddSkillTag200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsAddSkillTag200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "slug": obj.get("slug"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request.py similarity index 67% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method200_response.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request.py index 471a8c88b9..8935a148c7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/contact_methods_verify_contact_method200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request.py @@ -18,18 +18,18 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from openapi_client.models.contact_methods_get_my_contact_methods200_response_inner import ContactMethodsGetMyContactMethods200ResponseInner +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.skills_add_skill_tag_request_tag import SkillsAddSkillTagRequestTag from typing import Optional, Set from typing_extensions import Self -class ContactMethodsVerifyContactMethod200Response(BaseModel): +class SkillsAddSkillTagRequest(BaseModel): """ - ContactMethodsVerifyContactMethod200Response + SkillsAddSkillTagRequest """ # noqa: E501 - message: StrictStr - contact_method: ContactMethodsGetMyContactMethods200ResponseInner = Field(alias="contactMethod") - __properties: ClassVar[List[str]] = ["message", "contactMethod"] + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + tag: SkillsAddSkillTagRequestTag + __properties: ClassVar[List[str]] = ["frameworkId", "tag"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ContactMethodsVerifyContactMethod200Response from a JSON string""" + """Create an instance of SkillsAddSkillTagRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,14 +70,19 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of contact_method - if self.contact_method: - _dict['contactMethod'] = self.contact_method.to_dict() + # override the default output from pydantic by calling `to_dict()` of tag + if self.tag: + _dict['tag'] = self.tag.to_dict() + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ContactMethodsVerifyContactMethod200Response from a dict""" + """Create an instance of SkillsAddSkillTagRequest from a dict""" if obj is None: return None @@ -85,8 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "message": obj.get("message"), - "contactMethod": ContactMethodsGetMyContactMethods200ResponseInner.from_dict(obj["contactMethod"]) if obj.get("contactMethod") is not None else None + "frameworkId": obj.get("frameworkId"), + "tag": SkillsAddSkillTagRequestTag.from_dict(obj["tag"]) if obj.get("tag") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request_tag.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request_tag.py new file mode 100644 index 0000000000..add8aa7554 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_add_skill_tag_request_tag.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillsAddSkillTagRequestTag(BaseModel): + """ + SkillsAddSkillTagRequestTag + """ # noqa: E501 + slug: Annotated[str, Field(min_length=1, strict=True)] + name: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["slug", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsAddSkillTagRequestTag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsAddSkillTagRequestTag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "slug": obj.get("slug"), + "name": obj.get("name") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_count_skills200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_count_skills200_response.py new file mode 100644 index 0000000000..35f6a35f8a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_count_skills200_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillsCountSkills200Response(BaseModel): + """ + SkillsCountSkills200Response + """ # noqa: E501 + count: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsCountSkills200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsCountSkills200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create200_response.py new file mode 100644 index 0000000000..d9b970a4a1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create200_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SkillsCreate200Response(BaseModel): + """ + SkillsCreate200Response + """ # noqa: E501 + id: StrictStr + statement: StrictStr + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: StrictStr + status: StrictStr + framework_id: Optional[StrictStr] = Field(default=None, alias="frameworkId") + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "frameworkId", "createdAt", "updatedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsCreate200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsCreate200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type") if obj.get("type") is not None else 'skill', + "status": obj.get("status") if obj.get("status") is not None else 'active', + "frameworkId": obj.get("frameworkId"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_many_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_many_request.py new file mode 100644 index 0000000000..85ea1b7126 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_many_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.schema0 import Schema0 +from typing import Optional, Set +from typing_extensions import Self + +class SkillsCreateManyRequest(BaseModel): + """ + SkillsCreateManyRequest + """ # noqa: E501 + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + skills: Annotated[List[Schema0], Field(min_length=1)] + parent_id: Optional[StrictStr] = Field(default=None, alias="parentId") + __properties: ClassVar[List[str]] = ["frameworkId", "skills", "parentId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsCreateManyRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + # set to None if parent_id (nullable) is None + # and model_fields_set contains the field + if self.parent_id is None and "parent_id" in self.model_fields_set: + _dict['parentId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsCreateManyRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworkId": obj.get("frameworkId"), + "skills": [Schema0.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None, + "parentId": obj.get("parentId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_request.py new file mode 100644 index 0000000000..f0b5e73322 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_create_request.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.schema0 import Schema0 +from typing import Optional, Set +from typing_extensions import Self + +class SkillsCreateRequest(BaseModel): + """ + SkillsCreateRequest + """ # noqa: E501 + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + skill: Schema0 + parent_id: Optional[StrictStr] = Field(default=None, alias="parentId") + __properties: ClassVar[List[str]] = ["frameworkId", "skill", "parentId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsCreateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of skill + if self.skill: + _dict['skill'] = self.skill.to_dict() + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + # set to None if parent_id (nullable) is None + # and model_fields_set contains the field + if self.parent_id is None and "parent_id" in self.model_fields_set: + _dict['parentId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsCreateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworkId": obj.get("frameworkId"), + "skill": Schema0.from_dict(obj["skill"]) if obj.get("skill") is not None else None, + "parentId": obj.get("parentId") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_delete200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_delete200_response.py new file mode 100644 index 0000000000..7c6ff22520 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_delete200_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SkillsDelete200Response(BaseModel): + """ + SkillsDelete200Response + """ # noqa: E501 + success: StrictBool + deleted_count: Optional[Union[StrictFloat, StrictInt]] = Field(alias="deletedCount") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["success", "deletedCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsDelete200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if deleted_count (nullable) is None + # and model_fields_set contains the field + if self.deleted_count is None and "deleted_count" in self.model_fields_set: + _dict['deletedCount'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsDelete200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "deletedCount": obj.get("deletedCount") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_framework_skill_tree200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_framework_skill_tree200_response.py new file mode 100644 index 0000000000..cebbba4d53 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_framework_skill_tree200_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.schema1 import Schema1 +from typing import Optional, Set +from typing_extensions import Self + +class SkillsGetFrameworkSkillTree200Response(BaseModel): + """ + SkillsGetFrameworkSkillTree200Response + """ # noqa: E501 + has_more: StrictBool = Field(alias="hasMore") + cursor: Optional[StrictStr] + records: List[Schema1] + __properties: ClassVar[List[str]] = ["hasMore", "cursor", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsGetFrameworkSkillTree200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsGetFrameworkSkillTree200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hasMore": obj.get("hasMore"), + "cursor": obj.get("cursor"), + "records": [Schema1.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_full_skill_tree200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_full_skill_tree200_response.py new file mode 100644 index 0000000000..c3eb3dd4c5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_full_skill_tree200_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.schema1 import Schema1 +from typing import Optional, Set +from typing_extensions import Self + +class SkillsGetFullSkillTree200Response(BaseModel): + """ + SkillsGetFullSkillTree200Response + """ # noqa: E501 + skills: List[Schema1] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsGetFullSkillTree200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsGetFullSkillTree200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skills": [Schema1.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill200_response.py new file mode 100644 index 0000000000..d868661a24 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill200_response.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SkillsGetSkill200Response(BaseModel): + """ + SkillsGetSkill200Response + """ # noqa: E501 + id: Optional[StrictStr] + statement: Optional[StrictStr] + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: StrictStr + status: StrictStr + framework_id: Optional[StrictStr] = Field(default=None, alias="frameworkId") + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "statement", "description", "code", "icon", "type", "status", "frameworkId", "createdAt", "updatedAt"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsGetSkill200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if statement (nullable) is None + # and model_fields_set contains the field + if self.statement is None and "statement" in self.model_fields_set: + _dict['statement'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if code (nullable) is None + # and model_fields_set contains the field + if self.code is None and "code" in self.model_fields_set: + _dict['code'] = None + + # set to None if icon (nullable) is None + # and model_fields_set contains the field + if self.icon is None and "icon" in self.model_fields_set: + _dict['icon'] = None + + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsGetSkill200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type") if obj.get("type") is not None else 'skill', + "status": obj.get("status") if obj.get("status") is not None else 'active', + "frameworkId": obj.get("frameworkId"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill_path200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill_path200_response.py new file mode 100644 index 0000000000..43ae23fc4b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_get_skill_path200_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.skills_create200_response import SkillsCreate200Response +from typing import Optional, Set +from typing_extensions import Self + +class SkillsGetSkillPath200Response(BaseModel): + """ + SkillsGetSkillPath200Response + """ # noqa: E501 + path: List[SkillsCreate200Response] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsGetSkillPath200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in path (list) + _items = [] + if self.path: + for _item_path in self.path: + if _item_path: + _items.append(_item_path.to_dict()) + _dict['path'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsGetSkillPath200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "path": [SkillsCreate200Response.from_dict(_item) for _item in obj["path"]] if obj.get("path") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_list_skill_tags200_response_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_list_skill_tags200_response_inner.py new file mode 100644 index 0000000000..b40a69b836 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_list_skill_tags200_response_inner.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SkillsListSkillTags200ResponseInner(BaseModel): + """ + SkillsListSkillTags200ResponseInner + """ # noqa: E501 + id: Optional[StrictStr] + name: Annotated[str, Field(min_length=1, strict=True)] + slug: Annotated[str, Field(min_length=1, strict=True)] + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + updated_at: Optional[StrictStr] = Field(default=None, alias="updatedAt") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name", "slug", "createdAt", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsListSkillTags200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if created_at (nullable) is None + # and model_fields_set contains the field + if self.created_at is None and "created_at" in self.model_fields_set: + _dict['createdAt'] = None + + # set to None if updated_at (nullable) is None + # and model_fields_set contains the field + if self.updated_at is None and "updated_at" in self.model_fields_set: + _dict['updatedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsListSkillTags200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "slug": obj.get("slug"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request.py new file mode 100644 index 0000000000..203423f7e8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.skills_search_framework_skills_request_query import SkillsSearchFrameworkSkillsRequestQuery +from typing import Optional, Set +from typing_extensions import Self + +class SkillsSearchFrameworkSkillsRequest(BaseModel): + """ + SkillsSearchFrameworkSkillsRequest + """ # noqa: E501 + id: Optional[StrictStr] + query: SkillsSearchFrameworkSkillsRequestQuery + limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = 50 + cursor: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "query", "limit", "cursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsSearchFrameworkSkillsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsSearchFrameworkSkillsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "query": SkillsSearchFrameworkSkillsRequestQuery.from_dict(obj["query"]) if obj.get("query") is not None else None, + "limit": obj.get("limit") if obj.get("limit") is not None else 50, + "cursor": obj.get("cursor") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query.py new file mode 100644 index 0000000000..c3f5f72c65 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 +from openapi_client.models.skills_search_framework_skills_request_query_any_of import SkillsSearchFrameworkSkillsRequestQueryAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +SKILLSSEARCHFRAMEWORKSKILLSREQUESTQUERY_ANY_OF_SCHEMAS = ["BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1", "SkillsSearchFrameworkSkillsRequestQueryAnyOf"] + +class SkillsSearchFrameworkSkillsRequestQuery(BaseModel): + """ + SkillsSearchFrameworkSkillsRequestQuery + """ + + # data type: SkillsSearchFrameworkSkillsRequestQueryAnyOf + anyof_schema_1_validator: Optional[SkillsSearchFrameworkSkillsRequestQueryAnyOf] = None + # data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1, SkillsSearchFrameworkSkillsRequestQueryAnyOf]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1", "SkillsSearchFrameworkSkillsRequestQueryAnyOf" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = SkillsSearchFrameworkSkillsRequestQuery.model_construct() + error_messages = [] + # validate data type: SkillsSearchFrameworkSkillsRequestQueryAnyOf + if not isinstance(v, SkillsSearchFrameworkSkillsRequestQueryAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `SkillsSearchFrameworkSkillsRequestQueryAnyOf`") + else: + return v + + # validate data type: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + if not isinstance(v, BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in SkillsSearchFrameworkSkillsRequestQuery with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1, SkillsSearchFrameworkSkillsRequestQueryAnyOf. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[SkillsSearchFrameworkSkillsRequestQueryAnyOf] = None + try: + instance.actual_instance = SkillsSearchFrameworkSkillsRequestQueryAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1] = None + try: + instance.actual_instance = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into SkillsSearchFrameworkSkillsRequestQuery with anyOf schemas: BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1, SkillsSearchFrameworkSkillsRequestQueryAnyOf. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1, SkillsSearchFrameworkSkillsRequestQueryAnyOf]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query_any_of.py new file mode 100644 index 0000000000..63febefa14 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_search_framework_skills_request_query_any_of.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 +from typing import Optional, Set +from typing_extensions import Self + +class SkillsSearchFrameworkSkillsRequestQueryAnyOf(BaseModel): + """ + SkillsSearchFrameworkSkillsRequestQueryAnyOf + """ # noqa: E501 + var_or: List[BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1] = Field(alias="$or") + __properties: ClassVar[List[str]] = ["$or"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsSearchFrameworkSkillsRequestQueryAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in var_or (list) + _items = [] + if self.var_or: + for _item_var_or in self.var_or: + if _item_var_or: + _items.append(_item_var_or.to_dict()) + _dict['$or'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsSearchFrameworkSkillsRequestQueryAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "$or": [BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1.from_dict(_item) for _item in obj["$or"]] if obj.get("$or") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_sync_framework_skills200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_sync_framework_skills200_response.py new file mode 100644 index 0000000000..0a16fdc53f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_sync_framework_skills200_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response +from typing import Optional, Set +from typing_extensions import Self + +class SkillsSyncFrameworkSkills200Response(BaseModel): + """ + SkillsSyncFrameworkSkills200Response + """ # noqa: E501 + framework: BoostGetBoostFrameworks200ResponseRecordsInner + skills: SkillsGetFrameworkSkillTree200Response + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["framework", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsSyncFrameworkSkills200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of framework + if self.framework: + _dict['framework'] = self.framework.to_dict() + # override the default output from pydantic by calling `to_dict()` of skills + if self.skills: + _dict['skills'] = self.skills.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsSyncFrameworkSkills200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "framework": BoostGetBoostFrameworks200ResponseRecordsInner.from_dict(obj["framework"]) if obj.get("framework") is not None else None, + "skills": SkillsGetFrameworkSkillTree200Response.from_dict(obj["skills"]) if obj.get("skills") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_update_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_update_request.py new file mode 100644 index 0000000000..6f3501c7c7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/skills_update_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SkillsUpdateRequest(BaseModel): + """ + SkillsUpdateRequest + """ # noqa: E501 + framework_id: Optional[StrictStr] = Field(alias="frameworkId") + statement: Optional[StrictStr] = None + description: Optional[StrictStr] = None + code: Optional[StrictStr] = None + icon: Optional[StrictStr] = None + type: Optional[StrictStr] = None + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["frameworkId", "statement", "description", "code", "icon", "type", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active', 'archived']): + raise ValueError("must be one of enum values ('active', 'archived')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SkillsUpdateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if framework_id (nullable) is None + # and model_fields_set contains the field + if self.framework_id is None and "framework_id" in self.model_fields_set: + _dict['frameworkId'] = None + + # set to None if statement (nullable) is None + # and model_fields_set contains the field + if self.statement is None and "statement" in self.model_fields_set: + _dict['statement'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if code (nullable) is None + # and model_fields_set contains the field + if self.code is None and "code" in self.model_fields_set: + _dict['code'] = None + + # set to None if icon (nullable) is None + # and model_fields_set contains the field + if self.icon is None and "icon" in self.model_fields_set: + _dict['icon'] = None + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SkillsUpdateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "frameworkId": obj.get("frameworkId"), + "statement": obj.get("statement"), + "description": obj.get("description"), + "code": obj.get("code"), + "icon": obj.get("icon"), + "type": obj.get("type"), + "status": obj.get("status") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of.py index b4de7f8686..570d81e258 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of.py @@ -20,27 +20,27 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from openapi_client.models.storage_resolve200_response_any_of_any_of import StorageResolve200ResponseAnyOfAnyOf -from openapi_client.models.storage_store_request_item import StorageStoreRequestItem +from openapi_client.models.storage_resolve200_response_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -STORAGERESOLVE200RESPONSEANYOF_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOf", "StorageStoreRequestItem"] +STORAGERESOLVE200RESPONSEANYOF_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOf1"] class StorageResolve200ResponseAnyOf(BaseModel): """ StorageResolve200ResponseAnyOf """ - # data type: StorageStoreRequestItem - anyof_schema_1_validator: Optional[StorageStoreRequestItem] = None # data type: StorageResolve200ResponseAnyOfAnyOf - anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOf] = None + anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOf] = None + # data type: StorageResolve200ResponseAnyOfAnyOf1 + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOf, StorageStoreRequestItem]] = None + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOf", "StorageStoreRequestItem" } + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOf1" } model_config = { "validate_assignment": True, @@ -61,21 +61,21 @@ def __init__(self, *args, **kwargs) -> None: def actual_instance_must_validate_anyof(cls, v): instance = StorageResolve200ResponseAnyOf.model_construct() error_messages = [] - # validate data type: StorageStoreRequestItem - if not isinstance(v, StorageStoreRequestItem): - error_messages.append(f"Error! Input type `{type(v)}` is not `StorageStoreRequestItem`") - else: - return v - # validate data type: StorageResolve200ResponseAnyOfAnyOf if not isinstance(v, StorageResolve200ResponseAnyOfAnyOf): error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOf`") else: return v + # validate data type: StorageResolve200ResponseAnyOfAnyOf1 + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOf1`") + else: + return v + if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOf, StorageStoreRequestItem. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[StorageStoreRequestItem] = None + # anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOf] = None try: - instance.actual_instance = StorageStoreRequestItem.from_json(json_str) + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOf] = None + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOf1] = None try: - instance.actual_instance = StorageResolve200ResponseAnyOfAnyOf.from_json(json_str) + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOf, StorageStoreRequestItem. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOf, StorageStoreRequestItem]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1.py index 70bcb13d8a..bac817b0d7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1.py @@ -31,6 +31,7 @@ class StorageResolve200ResponseAnyOf1(BaseModel): read: StorageResolve200ResponseAnyOf1Read write: StorageResolve200ResponseAnyOf1Write denied_writers: Optional[List[StrictStr]] = Field(default=None, alias="deniedWriters") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["read", "write", "deniedWriters"] model_config = ConfigDict( @@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of write if self.write: _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -94,6 +102,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "write": StorageResolve200ResponseAnyOf1Write.from_dict(obj["write"]) if obj.get("write") is not None else None, "deniedWriters": obj.get("deniedWriters") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read.py index 9500bd20e4..0987123dbb 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read.py @@ -29,7 +29,8 @@ class StorageResolve200ResponseAnyOf1Read(BaseModel): """ # noqa: E501 anonymize: Optional[StrictBool] = None credentials: StorageResolve200ResponseAnyOf1ReadCredentials - personal: Dict[str, StrictStr] + personal: Dict[str, Optional[StrictStr]] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -74,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of credentials if self.credentials: _dict['credentials'] = self.credentials.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -90,6 +98,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "credentials": StorageResolve200ResponseAnyOf1ReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": obj.get("personal") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials.py index 5d2a915a15..e69de9b8b0 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials.py @@ -30,6 +30,7 @@ class StorageResolve200ResponseAnyOf1ReadCredentials(BaseModel): share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") sharing: Optional[StrictBool] = None categories: Dict[str, StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["shareAll", "sharing", "categories"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if self.categories[_key_categories]: _field_dict[_key_categories] = self.categories[_key_categories].to_dict() _dict['categories'] = _field_dict + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -99,6 +107,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("categories") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials_categories_value.py index 6128298c75..4ad3e27743 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials_categories_value.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_read_credentials_categories_value.py @@ -30,6 +30,7 @@ class StorageResolve200ResponseAnyOf1ReadCredentialsCategoriesValue(BaseModel): shared: Optional[List[StrictStr]] = None share_all: Optional[StrictBool] = Field(default=None, alias="shareAll") share_until: Optional[StrictStr] = Field(default=None, alias="shareUntil") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["sharing", "shared", "shareAll", "shareUntil"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -71,6 +74,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if share_until (nullable) is None + # and model_fields_set contains the field + if self.share_until is None and "share_until" in self.model_fields_set: + _dict['shareUntil'] = None + return _dict @classmethod @@ -88,6 +101,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "shareAll": obj.get("shareAll"), "shareUntil": obj.get("shareUntil") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write.py index b3a5acf238..062333fc46 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write.py @@ -29,6 +29,7 @@ class StorageResolve200ResponseAnyOf1Write(BaseModel): """ # noqa: E501 credentials: StorageResolve200ResponseAnyOf1WriteCredentials personal: Dict[str, StrictBool] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credentials", "personal"] model_config = ConfigDict( @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -73,6 +76,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of credentials if self.credentials: _dict['credentials'] = self.credentials.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -88,6 +96,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "credentials": StorageResolve200ResponseAnyOf1WriteCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": obj.get("personal") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write_credentials.py index cf143751e3..c93e83d9ac 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of1_write_credentials.py @@ -27,6 +27,7 @@ class StorageResolve200ResponseAnyOf1WriteCredentials(BaseModel): StorageResolve200ResponseAnyOf1WriteCredentials """ # noqa: E501 categories: Dict[str, StrictBool] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["categories"] model_config = ConfigDict( @@ -59,8 +60,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -68,6 +71,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -82,6 +90,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": obj.get("categories") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of.py index 3b75ab624c..dce34154e7 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of.py @@ -13,85 +13,122 @@ from __future__ import annotations +from inspect import getfullargspec +import json import pprint import re # noqa: F401 -import json +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from openapi_client.models.storage_resolve200_response_any_of_any_of_read import StorageResolve200ResponseAnyOfAnyOfRead -from openapi_client.models.storage_resolve200_response_any_of_any_of_write import StorageResolve200ResponseAnyOfAnyOfWrite -from typing import Optional, Set -from typing_extensions import Self +STORAGERESOLVE200RESPONSEANYOFANYOF_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOf1"] class StorageResolve200ResponseAnyOfAnyOf(BaseModel): """ StorageResolve200ResponseAnyOfAnyOf - """ # noqa: E501 - read: StorageResolve200ResponseAnyOfAnyOfRead - write: StorageResolve200ResponseAnyOfAnyOfWrite - __properties: ClassVar[List[str]] = ["read", "write"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) + """ - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOf + anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOf] = None + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOf1 + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOf.model_construct() + error_messages = [] + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOf + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOf`") + else: + return v + + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOf1 + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of read - if self.read: - _dict['read'] = self.read.to_dict() - # override the default output from pydantic by calling `to_dict()` of write - if self.write: - _dict['write'] = self.write.to_dict() - return _dict + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOf from a dict""" - if obj is None: + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOf] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOf1] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance - _obj = cls.model_validate({ - "read": StorageResolve200ResponseAnyOfAnyOfRead.from_dict(obj["read"]) if obj.get("read") is not None else None, - "write": StorageResolve200ResponseAnyOfAnyOfWrite.from_dict(obj["write"]) if obj.get("write") is not None else None - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1.py new file mode 100644 index 0000000000..ab2754eb52 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read import StorageResolve200ResponseAnyOfAnyOf1Read +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOf1(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOf1 + """ # noqa: E501 + read: StorageResolve200ResponseAnyOfAnyOf1Read + write: StorageResolve200ResponseAnyOfAnyOf1Write + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["read", "write"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of read + if self.read: + _dict['read'] = self.read.to_dict() + # override the default output from pydantic by calling `to_dict()` of write + if self.write: + _dict['write'] = self.write.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "read": StorageResolve200ResponseAnyOfAnyOf1Read.from_dict(obj["read"]) if obj.get("read") is not None else None, + "write": StorageResolve200ResponseAnyOfAnyOf1Write.from_dict(obj["write"]) if obj.get("write") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read.py similarity index 71% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read.py index 070f30ee55..2079269c8b 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read.py @@ -19,18 +19,19 @@ from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials import StorageResolve200ResponseAnyOfAnyOf1ReadCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from typing import Optional, Set from typing_extensions import Self -class StorageResolve200ResponseAnyOfAnyOfRead(BaseModel): +class StorageResolve200ResponseAnyOfAnyOf1Read(BaseModel): """ - StorageResolve200ResponseAnyOfAnyOfRead + StorageResolve200ResponseAnyOfAnyOf1Read """ # noqa: E501 anonymize: Optional[StrictBool] = None - credentials: StorageResolve200ResponseAnyOfAnyOfReadCredentials - personal: Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue] + credentials: StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + personal: Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["anonymize", "credentials", "personal"] model_config = ConfigDict( @@ -51,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfRead from a JSON string""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1Read from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -82,11 +85,16 @@ def to_dict(self) -> Dict[str, Any]: if self.personal[_key_personal]: _field_dict[_key_personal] = self.personal[_key_personal].to_dict() _dict['personal'] = _field_dict + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfRead from a dict""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1Read from a dict""" if obj is None: return None @@ -95,14 +103,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "anonymize": obj.get("anonymize"), - "credentials": StorageResolve200ResponseAnyOfAnyOfReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "credentials": StorageResolve200ResponseAnyOfAnyOf1ReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_dict(_v)) for _k, _v in obj["personal"].items() ) if obj.get("personal") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials.py new file mode 100644 index 0000000000..1c1d5aded4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOf1ReadCredentials(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + """ # noqa: E501 + categories: Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["categories"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in categories (dict) + _field_dict = {} + if self.categories: + for _key_categories in self.categories: + if self.categories[_key_categories]: + _field_dict[_key_categories] = self.categories[_key_categories].to_dict() + _dict['categories'] = _field_dict + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": dict( + (_k, StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue.from_dict(_v)) + for _k, _v in obj["categories"].items() + ) + if obj.get("categories") is not None + else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py new file mode 100644 index 0000000000..42a7016802 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue + """ # noqa: E501 + required: StrictBool + default_enabled: Optional[StrictBool] = Field(default=None, alias="defaultEnabled") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["required", "defaultEnabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "required": obj.get("required"), + "defaultEnabled": obj.get("defaultEnabled") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_personal_value.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_personal_value.py new file mode 100644 index 0000000000..37a3349c5f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_read_personal_value.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue + """ # noqa: E501 + required: StrictBool + default_enabled: Optional[StrictBool] = Field(default=None, alias="defaultEnabled") + __properties: ClassVar[List[str]] = ["required", "defaultEnabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "required": obj.get("required"), + "defaultEnabled": obj.get("defaultEnabled") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_write.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write.py similarity index 70% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_write.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write.py index bf406ae371..547ff9a239 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_write.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write.py @@ -19,17 +19,18 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials from typing import Optional, Set from typing_extensions import Self -class StorageResolve200ResponseAnyOfAnyOfWrite(BaseModel): +class StorageResolve200ResponseAnyOfAnyOf1Write(BaseModel): """ - StorageResolve200ResponseAnyOfAnyOfWrite + StorageResolve200ResponseAnyOfAnyOf1Write """ # noqa: E501 - credentials: StorageResolve200ResponseAnyOfAnyOfReadCredentials - personal: Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue] + credentials: StorageResolve200ResponseAnyOfAnyOf1WriteCredentials + personal: Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["credentials", "personal"] model_config = ConfigDict( @@ -50,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfWrite from a JSON string""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1Write from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -81,11 +84,16 @@ def to_dict(self) -> Dict[str, Any]: if self.personal[_key_personal]: _field_dict[_key_personal] = self.personal[_key_personal].to_dict() _dict['personal'] = _field_dict + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfWrite from a dict""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1Write from a dict""" if obj is None: return None @@ -93,14 +101,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "credentials": StorageResolve200ResponseAnyOfAnyOfReadCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, + "credentials": StorageResolve200ResponseAnyOfAnyOf1WriteCredentials.from_dict(obj["credentials"]) if obj.get("credentials") is not None else None, "personal": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_dict(_v)) for _k, _v in obj["personal"].items() ) if obj.get("personal") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write_credentials.py similarity index 85% rename from packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials.py rename to packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write_credentials.py index dd73698235..82ccbb5b11 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of1_write_credentials.py @@ -19,15 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue from typing import Optional, Set from typing_extensions import Self -class StorageResolve200ResponseAnyOfAnyOfReadCredentials(BaseModel): +class StorageResolve200ResponseAnyOfAnyOf1WriteCredentials(BaseModel): """ - StorageResolve200ResponseAnyOfAnyOfReadCredentials + StorageResolve200ResponseAnyOfAnyOf1WriteCredentials """ # noqa: E501 - categories: Dict[str, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue] + categories: Dict[str, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue] __properties: ClassVar[List[str]] = ["categories"] model_config = ConfigDict( @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentials from a JSON string""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1WriteCredentials from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StorageResolve200ResponseAnyOfAnyOfReadCredentials from a dict""" + """Create an instance of StorageResolve200ResponseAnyOfAnyOf1WriteCredentials from a dict""" if obj is None: return None @@ -89,7 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": dict( - (_k, StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue.from_dict(_v)) + (_k, StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue.from_dict(_v)) for _k, _v in obj["categories"].items() ) if obj.get("categories") is not None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of.py new file mode 100644 index 0000000000..38d70911f5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +STORAGERESOLVE200RESPONSEANYOFANYOFANYOF_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1"] + +class StorageResolve200ResponseAnyOfAnyOfAnyOf(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOf + """ + + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf] = None + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOfAnyOf.model_construct() + error_messages = [] + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf`") + else: + return v + + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..b214f56576 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOf1(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOf1 + """ # noqa: E501 + protected: Optional[StrictStr] + iv: Optional[StrictStr] + ciphertext: Optional[StrictStr] + tag: Optional[StrictStr] + aad: Optional[StrictStr] = None + recipients: Optional[List[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["protected", "iv", "ciphertext", "tag", "aad", "recipients"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in recipients (list) + _items = [] + if self.recipients: + for _item_recipients in self.recipients: + if _item_recipients: + _items.append(_item_recipients.to_dict()) + _dict['recipients'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if protected (nullable) is None + # and model_fields_set contains the field + if self.protected is None and "protected" in self.model_fields_set: + _dict['protected'] = None + + # set to None if iv (nullable) is None + # and model_fields_set contains the field + if self.iv is None and "iv" in self.model_fields_set: + _dict['iv'] = None + + # set to None if ciphertext (nullable) is None + # and model_fields_set contains the field + if self.ciphertext is None and "ciphertext" in self.model_fields_set: + _dict['ciphertext'] = None + + # set to None if tag (nullable) is None + # and model_fields_set contains the field + if self.tag is None and "tag" in self.model_fields_set: + _dict['tag'] = None + + # set to None if aad (nullable) is None + # and model_fields_set contains the field + if self.aad is None and "aad" in self.model_fields_set: + _dict['aad'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "protected": obj.get("protected"), + "iv": obj.get("iv"), + "ciphertext": obj.get("ciphertext"), + "tag": obj.get("tag"), + "aad": obj.get("aad"), + "recipients": [StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner.from_dict(_item) for _item in obj["recipients"]] if obj.get("recipients") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py new file mode 100644 index 0000000000..56e7fcdf34 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner + """ # noqa: E501 + header: StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + encrypted_key: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["header", "encrypted_key"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of header + if self.header: + _dict['header'] = self.header.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if encrypted_key (nullable) is None + # and model_fields_set contains the field + if self.encrypted_key is None and "encrypted_key" in self.model_fields_set: + _dict['encrypted_key'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "header": StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader.from_dict(obj["header"]) if obj.get("header") is not None else None, + "encrypted_key": obj.get("encrypted_key") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py new file mode 100644 index 0000000000..b9227cf473 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + """ # noqa: E501 + alg: Optional[StrictStr] + iv: Optional[StrictStr] + tag: Optional[StrictStr] + epk: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk] = None + kid: Optional[StrictStr] = None + apv: Optional[StrictStr] = None + apu: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["alg", "iv", "tag", "epk", "kid", "apv", "apu"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of epk + if self.epk: + _dict['epk'] = self.epk.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if alg (nullable) is None + # and model_fields_set contains the field + if self.alg is None and "alg" in self.model_fields_set: + _dict['alg'] = None + + # set to None if iv (nullable) is None + # and model_fields_set contains the field + if self.iv is None and "iv" in self.model_fields_set: + _dict['iv'] = None + + # set to None if tag (nullable) is None + # and model_fields_set contains the field + if self.tag is None and "tag" in self.model_fields_set: + _dict['tag'] = None + + # set to None if kid (nullable) is None + # and model_fields_set contains the field + if self.kid is None and "kid" in self.model_fields_set: + _dict['kid'] = None + + # set to None if apv (nullable) is None + # and model_fields_set contains the field + if self.apv is None and "apv" in self.model_fields_set: + _dict['apv'] = None + + # set to None if apu (nullable) is None + # and model_fields_set contains the field + if self.apu is None and "apu" in self.model_fields_set: + _dict['apu'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alg": obj.get("alg"), + "iv": obj.get("iv"), + "tag": obj.get("tag"), + "epk": StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk.from_dict(obj["epk"]) if obj.get("epk") is not None else None, + "kid": obj.get("kid"), + "apv": obj.get("apv"), + "apu": obj.get("apu") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py new file mode 100644 index 0000000000..ae7a527399 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk + """ # noqa: E501 + kty: Optional[StrictStr] = None + crv: Optional[StrictStr] = None + x: Optional[StrictStr] = None + y: Optional[StrictStr] = None + n: Optional[StrictStr] = None + d: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["kty", "crv", "x", "y", "n", "d"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if kty (nullable) is None + # and model_fields_set contains the field + if self.kty is None and "kty" in self.model_fields_set: + _dict['kty'] = None + + # set to None if crv (nullable) is None + # and model_fields_set contains the field + if self.crv is None and "crv" in self.model_fields_set: + _dict['crv'] = None + + # set to None if x (nullable) is None + # and model_fields_set contains the field + if self.x is None and "x" in self.model_fields_set: + _dict['x'] = None + + # set to None if y (nullable) is None + # and model_fields_set contains the field + if self.y is None and "y" in self.model_fields_set: + _dict['y'] = None + + # set to None if n (nullable) is None + # and model_fields_set contains the field + if self.n is None and "n" in self.model_fields_set: + _dict['n'] = None + + # set to None if d (nullable) is None + # and model_fields_set contains the field + if self.d is None and "d" in self.model_fields_set: + _dict['d'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "crv": obj.get("crv"), + "x": obj.get("x"), + "y": obj.get("y"), + "n": obj.get("n"), + "d": obj.get("d") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of.py new file mode 100644 index 0000000000..17c16b9c85 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +STORAGERESOLVE200RESPONSEANYOFANYOFANYOFANYOF_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1"] + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + """ + + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf] = None + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf.model_construct() + error_messages = [] + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf`") + else: + return v + + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..efa944cc7b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + verifiable_credential: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential] = Field(default=None, alias="verifiableCredential") + holder: Optional[StrictStr] = None + proof: BoostSendRequestTemplateCredentialAnyOfProof + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "verifiableCredential", "holder", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of verifiable_credential + if self.verifiable_credential: + _dict['verifiableCredential'] = self.verifiable_credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if holder (nullable) is None + # and model_fields_set contains the field + if self.holder is None and "holder" in self.model_fields_set: + _dict['holder'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "verifiableCredential": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.from_dict(obj["verifiableCredential"]) if obj.get("verifiableCredential") is not None else None, + "holder": obj.get("holder"), + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py new file mode 100644 index 0000000000..5046c0a495 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import List, Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +STORAGERESOLVE200RESPONSEANYOFANYOFANYOFANYOF1VERIFIABLECREDENTIAL_ANY_OF_SCHEMAS = ["List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1"] + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential + """ + + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] = None + # data type: List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] + anyof_schema_2_validator: Optional[List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]", "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential.model_construct() + error_messages = [] + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1`") + else: + return v + + # validate data type: List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential with anyOf schemas: List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential with anyOf schemas: List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py new file mode 100644 index 0000000000..ab2a658df0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus +from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + issuer: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") + issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") + expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") + credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + valid_from: Optional[StrictStr] = Field(default=None, alias="validFrom") + valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") + status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None + terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of issuer + if self.issuer: + _dict['issuer'] = self.issuer.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_subject + if self.credential_subject: + _dict['credentialSubject'] = self.credential_subject.to_dict() + # override the default output from pydantic by calling `to_dict()` of refresh_service + if self.refresh_service: + _dict['refreshService'] = self.refresh_service.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_schema + if self.credential_schema: + _dict['credentialSchema'] = self.credential_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_status + if self.credential_status: + _dict['credentialStatus'] = self.credential_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + # override the default output from pydantic by calling `to_dict()` of terms_of_use + if self.terms_of_use: + _dict['termsOfUse'] = self.terms_of_use.to_dict() + # override the default output from pydantic by calling `to_dict()` of evidence + if self.evidence: + _dict['evidence'] = self.evidence.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "issuer": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuanceDate": obj.get("issuanceDate"), + "expirationDate": obj.get("expirationDate"), + "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "validFrom": obj.get("validFrom"), + "validUntil": obj.get("validUntil"), + "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..e307c46d05 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status import BoostSendBoostRequestCredentialAnyOfCredentialStatus +from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use import BoostSendBoostRequestCredentialAnyOfTermsOfUse +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: Annotated[List[StrictStr], Field(min_length=1)] + issuer: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + credential_subject: BoostSendRequestTemplateCredentialAnyOfCredentialSubject = Field(alias="credentialSubject") + refresh_service: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="refreshService") + credential_schema: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialSchema") + issuance_date: Optional[StrictStr] = Field(default=None, alias="issuanceDate") + expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate") + credential_status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = Field(default=None, alias="credentialStatus") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + valid_from: Optional[StrictStr] = Field(default=None, alias="validFrom") + valid_until: Optional[StrictStr] = Field(default=None, alias="validUntil") + status: Optional[BoostSendBoostRequestCredentialAnyOfCredentialStatus] = None + terms_of_use: Optional[BoostSendBoostRequestCredentialAnyOfTermsOfUse] = Field(default=None, alias="termsOfUse") + evidence: Optional[BoostSendRequestTemplateCredentialAnyOfEvidence] = None + proof: BoostSendRequestTemplateCredentialAnyOfProof + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "issuer", "credentialSubject", "refreshService", "credentialSchema", "issuanceDate", "expirationDate", "credentialStatus", "name", "description", "validFrom", "validUntil", "status", "termsOfUse", "evidence", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of issuer + if self.issuer: + _dict['issuer'] = self.issuer.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_subject + if self.credential_subject: + _dict['credentialSubject'] = self.credential_subject.to_dict() + # override the default output from pydantic by calling `to_dict()` of refresh_service + if self.refresh_service: + _dict['refreshService'] = self.refresh_service.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_schema + if self.credential_schema: + _dict['credentialSchema'] = self.credential_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of credential_status + if self.credential_status: + _dict['credentialStatus'] = self.credential_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = self.status.to_dict() + # override the default output from pydantic by calling `to_dict()` of terms_of_use + if self.terms_of_use: + _dict['termsOfUse'] = self.terms_of_use.to_dict() + # override the default output from pydantic by calling `to_dict()` of evidence + if self.evidence: + _dict['evidence'] = self.evidence.to_dict() + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if issuance_date (nullable) is None + # and model_fields_set contains the field + if self.issuance_date is None and "issuance_date" in self.model_fields_set: + _dict['issuanceDate'] = None + + # set to None if expiration_date (nullable) is None + # and model_fields_set contains the field + if self.expiration_date is None and "expiration_date" in self.model_fields_set: + _dict['expirationDate'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if valid_from (nullable) is None + # and model_fields_set contains the field + if self.valid_from is None and "valid_from" in self.model_fields_set: + _dict['validFrom'] = None + + # set to None if valid_until (nullable) is None + # and model_fields_set contains the field + if self.valid_until is None and "valid_until" in self.model_fields_set: + _dict['validUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": obj.get("type"), + "issuer": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.from_dict(obj["issuer"]) if obj.get("issuer") is not None else None, + "credentialSubject": BoostSendRequestTemplateCredentialAnyOfCredentialSubject.from_dict(obj["credentialSubject"]) if obj.get("credentialSubject") is not None else None, + "refreshService": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["refreshService"]) if obj.get("refreshService") is not None else None, + "credentialSchema": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialSchema"]) if obj.get("credentialSchema") is not None else None, + "issuanceDate": obj.get("issuanceDate"), + "expirationDate": obj.get("expirationDate"), + "credentialStatus": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["credentialStatus"]) if obj.get("credentialStatus") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "validFrom": obj.get("validFrom"), + "validUntil": obj.get("validUntil"), + "status": BoostSendBoostRequestCredentialAnyOfCredentialStatus.from_dict(obj["status"]) if obj.get("status") is not None else None, + "termsOfUse": BoostSendBoostRequestCredentialAnyOfTermsOfUse.from_dict(obj["termsOfUse"]) if obj.get("termsOfUse") is not None else None, + "evidence": BoostSendRequestTemplateCredentialAnyOfEvidence.from_dict(obj["evidence"]) if obj.get("evidence") is not None else None, + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py new file mode 100644 index 0000000000..ecccdc6d3a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +STORAGERESOLVE200RESPONSEANYOFANYOFANYOFANYOFANYOFISSUER_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf", "str"] + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py new file mode 100644 index 0000000000..7e8e73e494 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType] = None + name: Optional[StrictStr] = None + url: Optional[StrictStr] = None + phone: Optional[StrictStr] = None + description: Optional[StrictStr] = None + endorsement: Optional[List[Any]] = None + image: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage] = None + email: Optional[Annotated[str, Field(strict=True)]] = None + address: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress] = None + other_identifier: Optional[List[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner]] = Field(default=None, alias="otherIdentifier") + official: Optional[StrictStr] = None + parent_org: Optional[Any] = Field(default=None, alias="parentOrg") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + additional_name: Optional[StrictStr] = Field(default=None, alias="additionalName") + patronymic_name: Optional[StrictStr] = Field(default=None, alias="patronymicName") + honorific_prefix: Optional[StrictStr] = Field(default=None, alias="honorificPrefix") + honorific_suffix: Optional[StrictStr] = Field(default=None, alias="honorificSuffix") + family_name_prefix: Optional[StrictStr] = Field(default=None, alias="familyNamePrefix") + date_of_birth: Optional[StrictStr] = Field(default=None, alias="dateOfBirth") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "type", "name", "url", "phone", "description", "endorsement", "image", "email", "address", "otherIdentifier", "official", "parentOrg", "familyName", "givenName", "additionalName", "patronymicName", "honorificPrefix", "honorificSuffix", "familyNamePrefix", "dateOfBirth"] + + @field_validator('email') + def email_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value): + raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of image + if self.image: + _dict['image'] = self.image.to_dict() + # override the default output from pydantic by calling `to_dict()` of address + if self.address: + _dict['address'] = self.address.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in other_identifier (list) + _items = [] + if self.other_identifier: + for _item_other_identifier in self.other_identifier: + if _item_other_identifier: + _items.append(_item_other_identifier.to_dict()) + _dict['otherIdentifier'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if parent_org (nullable) is None + # and model_fields_set contains the field + if self.parent_org is None and "parent_org" in self.model_fields_set: + _dict['parentOrg'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "name": obj.get("name"), + "url": obj.get("url"), + "phone": obj.get("phone"), + "description": obj.get("description"), + "endorsement": obj.get("endorsement"), + "image": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.from_dict(obj["image"]) if obj.get("image") is not None else None, + "email": obj.get("email"), + "address": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress.from_dict(obj["address"]) if obj.get("address") is not None else None, + "otherIdentifier": [StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner.from_dict(_item) for _item in obj["otherIdentifier"]] if obj.get("otherIdentifier") is not None else None, + "official": obj.get("official"), + "parentOrg": obj.get("parentOrg"), + "familyName": obj.get("familyName"), + "givenName": obj.get("givenName"), + "additionalName": obj.get("additionalName"), + "patronymicName": obj.get("patronymicName"), + "honorificPrefix": obj.get("honorificPrefix"), + "honorificSuffix": obj.get("honorificSuffix"), + "familyNamePrefix": obj.get("familyNamePrefix"), + "dateOfBirth": obj.get("dateOfBirth") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py new file mode 100644 index 0000000000..3ec4525e61 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + address_country: Optional[StrictStr] = Field(default=None, alias="addressCountry") + address_country_code: Optional[StrictStr] = Field(default=None, alias="addressCountryCode") + address_region: Optional[StrictStr] = Field(default=None, alias="addressRegion") + address_locality: Optional[StrictStr] = Field(default=None, alias="addressLocality") + street_address: Optional[StrictStr] = Field(default=None, alias="streetAddress") + post_office_box_number: Optional[StrictStr] = Field(default=None, alias="postOfficeBoxNumber") + postal_code: Optional[StrictStr] = Field(default=None, alias="postalCode") + geo: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo] = None + __properties: ClassVar[List[str]] = ["type", "addressCountry", "addressCountryCode", "addressRegion", "addressLocality", "streetAddress", "postOfficeBoxNumber", "postalCode", "geo"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of geo + if self.geo: + _dict['geo'] = self.geo.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "addressCountry": obj.get("addressCountry"), + "addressCountryCode": obj.get("addressCountryCode"), + "addressRegion": obj.get("addressRegion"), + "addressLocality": obj.get("addressLocality"), + "streetAddress": obj.get("streetAddress"), + "postOfficeBoxNumber": obj.get("postOfficeBoxNumber"), + "postalCode": obj.get("postalCode"), + "geo": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo.from_dict(obj["geo"]) if obj.get("geo") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..d8bb2058ed --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + latitude: Union[StrictFloat, StrictInt] + longitude: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["type", "latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py new file mode 100644 index 0000000000..195684d842 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +STORAGERESOLVE200RESPONSEANYOFANYOFANYOFANYOFANYOFISSUERANYOFIMAGE_ANY_OF_SCHEMAS = ["StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf", "str"] + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + if not isinstance(v, StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf] = None + try: + instance.actual_instance = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage with anyOf schemas: StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..cc1ba18c8b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + """ # noqa: E501 + id: StrictStr + type: StrictStr + caption: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "type", "caption"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "caption": obj.get("caption") + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..90bc33cac4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address_type import BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType +from typing import Optional, Set +from typing_extensions import Self + +class StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner(BaseModel): + """ + StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner + """ # noqa: E501 + type: BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType + identifier: StrictStr + identifier_type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType = Field(alias="identifierType") + __properties: ClassVar[List[str]] = ["type", "identifier", "identifierType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of identifier_type + if self.identifier_type: + _dict['identifierType'] = self.identifier_type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": BoostSendBoostRequestCredentialAnyOfIssuerAnyOfAddressType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "identifier": obj.get("identifier"), + "identifierType": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType.from_dict(obj["identifierType"]) if obj.get("identifierType") is not None else None + }) + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item.py index 6df7afc74b..948ead8592 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item.py @@ -19,13 +19,13 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from openapi_client.models.boost_send_boost_request_credential_any_of1 import BoostSendBoostRequestCredentialAnyOf1 +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 from openapi_client.models.storage_store_request_item_any_of import StorageStoreRequestItemAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -STORAGESTOREREQUESTITEM_ANY_OF_SCHEMAS = ["BoostSendBoostRequestCredentialAnyOf1", "StorageStoreRequestItemAnyOf"] +STORAGESTOREREQUESTITEM_ANY_OF_SCHEMAS = ["CredentialSendCredentialRequestCredentialAnyOf1", "StorageStoreRequestItemAnyOf"] class StorageStoreRequestItem(BaseModel): """ @@ -34,13 +34,13 @@ class StorageStoreRequestItem(BaseModel): # data type: StorageStoreRequestItemAnyOf anyof_schema_1_validator: Optional[StorageStoreRequestItemAnyOf] = None - # data type: BoostSendBoostRequestCredentialAnyOf1 - anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # data type: CredentialSendCredentialRequestCredentialAnyOf1 + anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[BoostSendBoostRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf]] = None + actual_instance: Optional[Union[CredentialSendCredentialRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "BoostSendBoostRequestCredentialAnyOf1", "StorageStoreRequestItemAnyOf" } + any_of_schemas: Set[str] = { "CredentialSendCredentialRequestCredentialAnyOf1", "StorageStoreRequestItemAnyOf" } model_config = { "validate_assignment": True, @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: BoostSendBoostRequestCredentialAnyOf1 - if not isinstance(v, BoostSendBoostRequestCredentialAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `BoostSendBoostRequestCredentialAnyOf1`") + # validate data type: CredentialSendCredentialRequestCredentialAnyOf1 + if not isinstance(v, CredentialSendCredentialRequestCredentialAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `CredentialSendCredentialRequestCredentialAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in StorageStoreRequestItem with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in StorageStoreRequestItem with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[BoostSendBoostRequestCredentialAnyOf1] = None + # anyof_schema_2_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf1] = None try: - instance.actual_instance = BoostSendBoostRequestCredentialAnyOf1.from_json(json_str) + instance.actual_instance = CredentialSendCredentialRequestCredentialAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into StorageStoreRequestItem with anyOf schemas: BoostSendBoostRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into StorageStoreRequestItem with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BoostSendBoostRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], CredentialSendCredentialRequestCredentialAnyOf1, StorageStoreRequestItemAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of.py index 544bf3afee..a50b59c7f2 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of.py @@ -20,12 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from openapi_client.models.credential_send_credential_request_credential_any_of import CredentialSendCredentialRequestCredentialAnyOf -from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -STORAGESTOREREQUESTITEMANYOF_ANY_OF_SCHEMAS = ["CredentialSendCredentialRequestCredentialAnyOf", "PresentationSendPresentationRequestPresentationAnyOf"] +STORAGESTOREREQUESTITEMANYOF_ANY_OF_SCHEMAS = ["CredentialSendCredentialRequestCredentialAnyOf", "StorageStoreRequestItemAnyOfAnyOf"] class StorageStoreRequestItemAnyOf(BaseModel): """ @@ -34,13 +34,13 @@ class StorageStoreRequestItemAnyOf(BaseModel): # data type: CredentialSendCredentialRequestCredentialAnyOf anyof_schema_1_validator: Optional[CredentialSendCredentialRequestCredentialAnyOf] = None - # data type: PresentationSendPresentationRequestPresentationAnyOf - anyof_schema_2_validator: Optional[PresentationSendPresentationRequestPresentationAnyOf] = None + # data type: StorageStoreRequestItemAnyOfAnyOf + anyof_schema_2_validator: Optional[StorageStoreRequestItemAnyOfAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[CredentialSendCredentialRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf]] = None + actual_instance: Optional[Union[CredentialSendCredentialRequestCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "CredentialSendCredentialRequestCredentialAnyOf", "PresentationSendPresentationRequestPresentationAnyOf" } + any_of_schemas: Set[str] = { "CredentialSendCredentialRequestCredentialAnyOf", "StorageStoreRequestItemAnyOfAnyOf" } model_config = { "validate_assignment": True, @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: PresentationSendPresentationRequestPresentationAnyOf - if not isinstance(v, PresentationSendPresentationRequestPresentationAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `PresentationSendPresentationRequestPresentationAnyOf`") + # validate data type: StorageStoreRequestItemAnyOfAnyOf + if not isinstance(v, StorageStoreRequestItemAnyOfAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `StorageStoreRequestItemAnyOfAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in StorageStoreRequestItemAnyOf with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in StorageStoreRequestItemAnyOf with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[PresentationSendPresentationRequestPresentationAnyOf] = None + # anyof_schema_2_validator: Optional[StorageStoreRequestItemAnyOfAnyOf] = None try: - instance.actual_instance = PresentationSendPresentationRequestPresentationAnyOf.from_json(json_str) + instance.actual_instance = StorageStoreRequestItemAnyOfAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into StorageStoreRequestItemAnyOf with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into StorageStoreRequestItemAnyOf with anyOf schemas: CredentialSendCredentialRequestCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], CredentialSendCredentialRequestCredentialAnyOf, PresentationSendPresentationRequestPresentationAnyOf]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], CredentialSendCredentialRequestCredentialAnyOf, StorageStoreRequestItemAnyOfAnyOf]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of_any_of.py new file mode 100644 index 0000000000..030562ce8e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/storage_store_request_item_any_of_any_of.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof +from openapi_client.models.presentation_send_presentation_request_presentation_any_of_verifiable_credential import PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential +from typing import Optional, Set +from typing_extensions import Self + +class StorageStoreRequestItemAnyOfAnyOf(BaseModel): + """ + StorageStoreRequestItemAnyOfAnyOf + """ # noqa: E501 + context: List[BoostSendRequestTemplateCredentialAnyOfContextInner] = Field(alias="@context") + id: Optional[StrictStr] = None + type: BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + verifiable_credential: Optional[PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential] = Field(default=None, alias="verifiableCredential") + holder: Optional[StrictStr] = None + proof: BoostSendRequestTemplateCredentialAnyOfProof + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@context", "id", "type", "verifiableCredential", "holder", "proof"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StorageStoreRequestItemAnyOfAnyOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in context (list) + _items = [] + if self.context: + for _item_context in self.context: + if _item_context: + _items.append(_item_context.to_dict()) + _dict['@context'] = _items + # override the default output from pydantic by calling `to_dict()` of type + if self.type: + _dict['type'] = self.type.to_dict() + # override the default output from pydantic by calling `to_dict()` of verifiable_credential + if self.verifiable_credential: + _dict['verifiableCredential'] = self.verifiable_credential.to_dict() + # override the default output from pydantic by calling `to_dict()` of proof + if self.proof: + _dict['proof'] = self.proof.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StorageStoreRequestItemAnyOfAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@context": [BoostSendRequestTemplateCredentialAnyOfContextInner.from_dict(_item) for _item in obj["@context"]] if obj.get("@context") is not None else None, + "id": obj.get("id"), + "type": BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType.from_dict(obj["type"]) if obj.get("type") is not None else None, + "verifiableCredential": PresentationSendPresentationRequestPresentationAnyOfVerifiableCredential.from_dict(obj["verifiableCredential"]) if obj.get("verifiableCredential") is not None else None, + "holder": obj.get("holder"), + "proof": BoostSendRequestTemplateCredentialAnyOfProof.from_dict(obj["proof"]) if obj.get("proof") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response.py index fbbe1dff05..ed86c0e200 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest from typing import Optional, Set from typing_extensions import Self @@ -28,9 +28,10 @@ class WorkflowsParticipateInExchange200Response(BaseModel): """ WorkflowsParticipateInExchange200Response """ # noqa: E501 - verifiable_presentation: Optional[PresentationSendPresentationRequestPresentationAnyOf] = Field(default=None, alias="verifiablePresentation") + verifiable_presentation: Optional[StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1] = Field(default=None, alias="verifiablePresentation") verifiable_presentation_request: Optional[WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest] = Field(default=None, alias="verifiablePresentationRequest") redirect_url: Optional[StrictStr] = Field(default=None, alias="redirectUrl") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["verifiablePresentation", "verifiablePresentationRequest", "redirectUrl"] model_config = ConfigDict( @@ -63,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of verifiable_presentation_request if self.verifiable_presentation_request: _dict['verifiablePresentationRequest'] = self.verifiable_presentation_request.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if redirect_url (nullable) is None + # and model_fields_set contains the field + if self.redirect_url is None and "redirect_url" in self.model_fields_set: + _dict['redirectUrl'] = None + return _dict @classmethod @@ -90,10 +103,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "verifiablePresentation": PresentationSendPresentationRequestPresentationAnyOf.from_dict(obj["verifiablePresentation"]) if obj.get("verifiablePresentation") is not None else None, + "verifiablePresentation": StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1.from_dict(obj["verifiablePresentation"]) if obj.get("verifiablePresentation") is not None else None, "verifiablePresentationRequest": WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest.from_dict(obj["verifiablePresentationRequest"]) if obj.get("verifiablePresentationRequest") is not None else None, "redirectUrl": obj.get("redirectUrl") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request.py index 0df3f558e7..f3523a8153 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner import WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner from typing import Optional, Set from typing_extensions import Self @@ -28,8 +28,9 @@ class WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest(Bas WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequest """ # noqa: E501 query: List[WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner] - challenge: StrictStr - domain: StrictStr + challenge: Optional[StrictStr] + domain: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["query", "challenge", "domain"] model_config = ConfigDict( @@ -62,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -78,6 +81,21 @@ def to_dict(self) -> Dict[str, Any]: if _item_query: _items.append(_item_query.to_dict()) _dict['query'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if challenge (nullable) is None + # and model_fields_set contains the field + if self.challenge is None and "challenge" in self.model_fields_set: + _dict['challenge'] = None + + # set to None if domain (nullable) is None + # and model_fields_set contains the field + if self.domain is None and "domain" in self.model_fields_set: + _dict['domain'] = None + return _dict @classmethod @@ -94,6 +112,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "challenge": obj.get("challenge"), "domain": obj.get("domain") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner.py index 20c55ef44d..9ea5c00e1f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner.py @@ -27,8 +27,9 @@ class WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQuer """ WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInner """ # noqa: E501 - type: StrictStr + type: Optional[StrictStr] credential_query: Optional[List[WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInnerCredentialQueryInner]] = Field(default=None, alias="credentialQuery") + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "credentialQuery"] model_config = ConfigDict( @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -77,6 +80,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_credential_query: _items.append(_item_credential_query.to_dict()) _dict['credentialQuery'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + return _dict @classmethod @@ -92,6 +105,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "credentialQuery": [WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQueryInnerCredentialQueryInner.from_dict(_item) for _item in obj["credentialQuery"]] if obj.get("credentialQuery") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner.py index e355a4f651..c414c8053d 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange200_response_verifiable_presentation_request_query_inner_credential_query_inner.py @@ -28,6 +28,7 @@ class WorkflowsParticipateInExchange200ResponseVerifiablePresentationRequestQuer """ # noqa: E501 required: Optional[StrictBool] = None reason: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["required", "reason"] model_config = ConfigDict( @@ -60,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -69,6 +72,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if reason (nullable) is None + # and model_fields_set contains the field + if self.reason is None and "reason" in self.model_fields_set: + _dict['reason'] = None + return _dict @classmethod @@ -84,6 +97,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "required": obj.get("required"), "reason": obj.get("reason") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange_request.py b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange_request.py index 7727c2a55d..401700d2e4 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange_request.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/models/workflows_participate_in_exchange_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from openapi_client.models.presentation_send_presentation_request_presentation_any_of import PresentationSendPresentationRequestPresentationAnyOf +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class WorkflowsParticipateInExchangeRequest(BaseModel): """ WorkflowsParticipateInExchangeRequest """ # noqa: E501 - verifiable_presentation: Optional[PresentationSendPresentationRequestPresentationAnyOf] = Field(default=None, alias="verifiablePresentation") + verifiable_presentation: Optional[StorageStoreRequestItemAnyOfAnyOf] = Field(default=None, alias="verifiablePresentation") __properties: ClassVar[List[str]] = ["verifiablePresentation"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "verifiablePresentation": PresentationSendPresentationRequestPresentationAnyOf.from_dict(obj["verifiablePresentation"]) if obj.get("verifiablePresentation") is not None else None + "verifiablePresentation": StorageStoreRequestItemAnyOfAnyOf.from_dict(obj["verifiablePresentation"]) if obj.get("verifiablePresentation") is not None else None }) return _obj diff --git a/packages/open-api-lcn-clients/python-client/openapi_client/rest.py b/packages/open-api-lcn-clients/python-client/openapi_client/rest.py index 89559ba62c..db0e93776f 100644 --- a/packages/open-api-lcn-clients/python-client/openapi_client/rest.py +++ b/packages/open-api-lcn-clients/python-client/openapi_client/rest.py @@ -48,12 +48,17 @@ def read(self): self.data = self.response.data return self.data + @property + def headers(self): + """Returns a dictionary of response headers.""" + return self.response.headers + def getheaders(self): - """Returns a dictionary of the response headers.""" + """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers def getheader(self, name, default=None): - """Returns a given response header.""" + """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/packages/open-api-lcn-clients/python-client/pyproject.toml b/packages/open-api-lcn-clients/python-client/pyproject.toml index 70f16c9415..251116d14b 100644 --- a/packages/open-api-lcn-clients/python-client/pyproject.toml +++ b/packages/open-api-lcn-clients/python-client/pyproject.toml @@ -5,7 +5,6 @@ description = "LearnCloud Network API" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, ] -license = "NoLicense" readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "LearnCloud Network API"] requires-python = ">=3.9" @@ -14,7 +13,7 @@ dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", "python-dateutil (>=2.8.2)", "pydantic (>=2)", - "typing-extensions (>=4.7.1)" + "typing-extensions (>=4.7.1)", ] [project.urls] diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_api.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_api.py new file mode 100644 index 0000000000..ae94c5263b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.app_store_admin_api import AppStoreAdminApi + + +class TestAppStoreAdminApi(unittest.TestCase): + """AppStoreAdminApi unit test stubs""" + + def setUp(self) -> None: + self.api = AppStoreAdminApi() + + def tearDown(self) -> None: + pass + + def test_app_store_admin_get_all_listings(self) -> None: + """Test case for app_store_admin_get_all_listings + + Get All Listings (Admin) + """ + pass + + def test_app_store_admin_update_listing_status(self) -> None: + """Test case for app_store_admin_update_listing_status + + Update Listing Status (Admin) + """ + pass + + def test_app_store_admin_update_promotion_level(self) -> None: + """Test case for app_store_admin_update_promotion_level + + Update Promotion Level (Admin) + """ + pass + + def test_app_store_is_admin(self) -> None: + """Test case for app_store_is_admin + + Check Admin Status + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_get_all_listings_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_get_all_listings_request.py new file mode 100644 index 0000000000..6fe3edf8ea --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_get_all_listings_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_admin_get_all_listings_request import AppStoreAdminGetAllListingsRequest + +class TestAppStoreAdminGetAllListingsRequest(unittest.TestCase): + """AppStoreAdminGetAllListingsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreAdminGetAllListingsRequest: + """Test AppStoreAdminGetAllListingsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreAdminGetAllListingsRequest` + """ + model = AppStoreAdminGetAllListingsRequest() + if include_optional: + return AppStoreAdminGetAllListingsRequest( + limit = 1.337, + cursor = '', + status = 'DRAFT' + ) + else: + return AppStoreAdminGetAllListingsRequest( + ) + """ + + def testAppStoreAdminGetAllListingsRequest(self): + """Test AppStoreAdminGetAllListingsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_listing_status_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_listing_status_request.py new file mode 100644 index 0000000000..5fdfe054cf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_listing_status_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_admin_update_listing_status_request import AppStoreAdminUpdateListingStatusRequest + +class TestAppStoreAdminUpdateListingStatusRequest(unittest.TestCase): + """AppStoreAdminUpdateListingStatusRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreAdminUpdateListingStatusRequest: + """Test AppStoreAdminUpdateListingStatusRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreAdminUpdateListingStatusRequest` + """ + model = AppStoreAdminUpdateListingStatusRequest() + if include_optional: + return AppStoreAdminUpdateListingStatusRequest( + status = 'DRAFT' + ) + else: + return AppStoreAdminUpdateListingStatusRequest( + status = 'DRAFT', + ) + """ + + def testAppStoreAdminUpdateListingStatusRequest(self): + """Test AppStoreAdminUpdateListingStatusRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_promotion_level_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_promotion_level_request.py new file mode 100644 index 0000000000..eab377a044 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_admin_update_promotion_level_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_admin_update_promotion_level_request import AppStoreAdminUpdatePromotionLevelRequest + +class TestAppStoreAdminUpdatePromotionLevelRequest(unittest.TestCase): + """AppStoreAdminUpdatePromotionLevelRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreAdminUpdatePromotionLevelRequest: + """Test AppStoreAdminUpdatePromotionLevelRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreAdminUpdatePromotionLevelRequest` + """ + model = AppStoreAdminUpdatePromotionLevelRequest() + if include_optional: + return AppStoreAdminUpdatePromotionLevelRequest( + promotion_level = 'FEATURED_CAROUSEL' + ) + else: + return AppStoreAdminUpdatePromotionLevelRequest( + promotion_level = 'FEATURED_CAROUSEL', + ) + """ + + def testAppStoreAdminUpdatePromotionLevelRequest(self): + """Test AppStoreAdminUpdatePromotionLevelRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_api.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_api.py new file mode 100644 index 0000000000..9bb0e54a5d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_api.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.app_store_api import AppStoreApi + + +class TestAppStoreApi(unittest.TestCase): + """AppStoreApi unit test stubs""" + + def setUp(self) -> None: + self.api = AppStoreApi() + + def tearDown(self) -> None: + pass + + def test_app_store_browse_listed_apps(self) -> None: + """Test case for app_store_browse_listed_apps + + Browse App Store + """ + pass + + def test_app_store_count_installed_apps(self) -> None: + """Test case for app_store_count_installed_apps + + Count Installed Apps + """ + pass + + def test_app_store_count_listings_for_integration(self) -> None: + """Test case for app_store_count_listings_for_integration + + Count Listings for Integration + """ + pass + + def test_app_store_create_listing(self) -> None: + """Test case for app_store_create_listing + + Create App Store Listing + """ + pass + + def test_app_store_delete_listing(self) -> None: + """Test case for app_store_delete_listing + + Delete App Store Listing + """ + pass + + def test_app_store_get_installed_apps(self) -> None: + """Test case for app_store_get_installed_apps + + Get Installed Apps + """ + pass + + def test_app_store_get_listing(self) -> None: + """Test case for app_store_get_listing + + Get App Store Listing (Owner) + """ + pass + + def test_app_store_get_listing_install_count(self) -> None: + """Test case for app_store_get_listing_install_count + + Get App Install Count + """ + pass + + def test_app_store_get_listings_for_integration(self) -> None: + """Test case for app_store_get_listings_for_integration + + Get Listings for Integration + """ + pass + + def test_app_store_get_public_listing(self) -> None: + """Test case for app_store_get_public_listing + + Get Public App Listing + """ + pass + + def test_app_store_install_app(self) -> None: + """Test case for app_store_install_app + + Install App + """ + pass + + def test_app_store_is_app_installed(self) -> None: + """Test case for app_store_is_app_installed + + Check if App is Installed + """ + pass + + def test_app_store_submit_for_review(self) -> None: + """Test case for app_store_submit_for_review + + Submit Listing for Review + """ + pass + + def test_app_store_uninstall_app(self) -> None: + """Test case for app_store_uninstall_app + + Uninstall App + """ + pass + + def test_app_store_update_listing(self) -> None: + """Test case for app_store_update_listing + + Update App Store Listing + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_browse_listed_apps_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_browse_listed_apps_request.py new file mode 100644 index 0000000000..4096f68743 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_browse_listed_apps_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_browse_listed_apps_request import AppStoreBrowseListedAppsRequest + +class TestAppStoreBrowseListedAppsRequest(unittest.TestCase): + """AppStoreBrowseListedAppsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreBrowseListedAppsRequest: + """Test AppStoreBrowseListedAppsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreBrowseListedAppsRequest` + """ + model = AppStoreBrowseListedAppsRequest() + if include_optional: + return AppStoreBrowseListedAppsRequest( + limit = 1.337, + cursor = '', + category = '', + promotion_level = 'FEATURED_CAROUSEL' + ) + else: + return AppStoreBrowseListedAppsRequest( + ) + """ + + def testAppStoreBrowseListedAppsRequest(self): + """Test AppStoreBrowseListedAppsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request.py new file mode 100644 index 0000000000..8801877766 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_create_listing_request import AppStoreCreateListingRequest + +class TestAppStoreCreateListingRequest(unittest.TestCase): + """AppStoreCreateListingRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreCreateListingRequest: + """Test AppStoreCreateListingRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreCreateListingRequest` + """ + model = AppStoreCreateListingRequest() + if include_optional: + return AppStoreCreateListingRequest( + integration_id = '', + listing = openapi_client.models.app_store_create_listing_request_listing.appStore_createListing_request_listing( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0', ) + ) + else: + return AppStoreCreateListingRequest( + integration_id = '', + listing = openapi_client.models.app_store_create_listing_request_listing.appStore_createListing_request_listing( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0', ), + ) + """ + + def testAppStoreCreateListingRequest(self): + """Test AppStoreCreateListingRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request_listing.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request_listing.py new file mode 100644 index 0000000000..19220f7aa4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_create_listing_request_listing.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_create_listing_request_listing import AppStoreCreateListingRequestListing + +class TestAppStoreCreateListingRequestListing(unittest.TestCase): + """AppStoreCreateListingRequestListing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreCreateListingRequestListing: + """Test AppStoreCreateListingRequestListing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreCreateListingRequestListing` + """ + model = AppStoreCreateListingRequestListing() + if include_optional: + return AppStoreCreateListingRequestListing( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0' + ) + else: + return AppStoreCreateListingRequestListing( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + ) + """ + + def testAppStoreCreateListingRequestListing(self): + """Test AppStoreCreateListingRequestListing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response.py new file mode 100644 index 0000000000..6e4b930fb3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_installed_apps200_response import AppStoreGetInstalledApps200Response + +class TestAppStoreGetInstalledApps200Response(unittest.TestCase): + """AppStoreGetInstalledApps200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetInstalledApps200Response: + """Test AppStoreGetInstalledApps200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetInstalledApps200Response` + """ + model = AppStoreGetInstalledApps200Response() + if include_optional: + return AppStoreGetInstalledApps200Response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.app_store_get_installed_apps_200_response_records_inner.appStore_getInstalledApps_200_response_records_inner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + installed_at = '', ) + ] + ) + else: + return AppStoreGetInstalledApps200Response( + has_more = True, + records = [ + openapi_client.models.app_store_get_installed_apps_200_response_records_inner.appStore_getInstalledApps_200_response_records_inner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + installed_at = '', ) + ], + ) + """ + + def testAppStoreGetInstalledApps200Response(self): + """Test AppStoreGetInstalledApps200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response_records_inner.py new file mode 100644 index 0000000000..061f536f08 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_installed_apps200_response_records_inner.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_installed_apps200_response_records_inner import AppStoreGetInstalledApps200ResponseRecordsInner + +class TestAppStoreGetInstalledApps200ResponseRecordsInner(unittest.TestCase): + """AppStoreGetInstalledApps200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetInstalledApps200ResponseRecordsInner: + """Test AppStoreGetInstalledApps200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetInstalledApps200ResponseRecordsInner` + """ + model = AppStoreGetInstalledApps200ResponseRecordsInner() + if include_optional: + return AppStoreGetInstalledApps200ResponseRecordsInner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + installed_at = '' + ) + else: + return AppStoreGetInstalledApps200ResponseRecordsInner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + installed_at = '', + ) + """ + + def testAppStoreGetInstalledApps200ResponseRecordsInner(self): + """Test AppStoreGetInstalledApps200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listing200_response.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listing200_response.py new file mode 100644 index 0000000000..dbba1b119f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listing200_response.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_listing200_response import AppStoreGetListing200Response + +class TestAppStoreGetListing200Response(unittest.TestCase): + """AppStoreGetListing200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetListing200Response: + """Test AppStoreGetListing200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetListing200Response` + """ + model = AppStoreGetListing200Response() + if include_optional: + return AppStoreGetListing200Response( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ] + ) + else: + return AppStoreGetListing200Response( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + ) + """ + + def testAppStoreGetListing200Response(self): + """Test AppStoreGetListing200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response.py new file mode 100644 index 0000000000..759d31bc09 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_listings_for_integration200_response import AppStoreGetListingsForIntegration200Response + +class TestAppStoreGetListingsForIntegration200Response(unittest.TestCase): + """AppStoreGetListingsForIntegration200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetListingsForIntegration200Response: + """Test AppStoreGetListingsForIntegration200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetListingsForIntegration200Response` + """ + model = AppStoreGetListingsForIntegration200Response() + if include_optional: + return AppStoreGetListingsForIntegration200Response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.app_store_get_listings_for_integration_200_response_records_inner.appStore_getListingsForIntegration_200_response_records_inner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], ) + ] + ) + else: + return AppStoreGetListingsForIntegration200Response( + has_more = True, + records = [ + openapi_client.models.app_store_get_listings_for_integration_200_response_records_inner.appStore_getListingsForIntegration_200_response_records_inner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], ) + ], + ) + """ + + def testAppStoreGetListingsForIntegration200Response(self): + """Test AppStoreGetListingsForIntegration200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response_records_inner.py new file mode 100644 index 0000000000..5ca0064e9d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration200_response_records_inner.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_listings_for_integration200_response_records_inner import AppStoreGetListingsForIntegration200ResponseRecordsInner + +class TestAppStoreGetListingsForIntegration200ResponseRecordsInner(unittest.TestCase): + """AppStoreGetListingsForIntegration200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetListingsForIntegration200ResponseRecordsInner: + """Test AppStoreGetListingsForIntegration200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetListingsForIntegration200ResponseRecordsInner` + """ + model = AppStoreGetListingsForIntegration200ResponseRecordsInner() + if include_optional: + return AppStoreGetListingsForIntegration200ResponseRecordsInner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + promotion_level = 'FEATURED_CAROUSEL', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + hero_background_color = '', + highlights = [ + '' + ], + screenshots = [ + '' + ] + ) + else: + return AppStoreGetListingsForIntegration200ResponseRecordsInner( + listing_id = '', + display_name = '', + tagline = '', + full_description = '', + icon_url = '', + app_listing_status = 'DRAFT', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + ) + """ + + def testAppStoreGetListingsForIntegration200ResponseRecordsInner(self): + """Test AppStoreGetListingsForIntegration200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration_request.py new file mode 100644 index 0000000000..1afe645f0d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_get_listings_for_integration_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_get_listings_for_integration_request import AppStoreGetListingsForIntegrationRequest + +class TestAppStoreGetListingsForIntegrationRequest(unittest.TestCase): + """AppStoreGetListingsForIntegrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreGetListingsForIntegrationRequest: + """Test AppStoreGetListingsForIntegrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreGetListingsForIntegrationRequest` + """ + model = AppStoreGetListingsForIntegrationRequest() + if include_optional: + return AppStoreGetListingsForIntegrationRequest( + limit = 1.337, + cursor = '' + ) + else: + return AppStoreGetListingsForIntegrationRequest( + ) + """ + + def testAppStoreGetListingsForIntegrationRequest(self): + """Test AppStoreGetListingsForIntegrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request.py new file mode 100644 index 0000000000..ea544168cc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_update_listing_request import AppStoreUpdateListingRequest + +class TestAppStoreUpdateListingRequest(unittest.TestCase): + """AppStoreUpdateListingRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreUpdateListingRequest: + """Test AppStoreUpdateListingRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreUpdateListingRequest` + """ + model = AppStoreUpdateListingRequest() + if include_optional: + return AppStoreUpdateListingRequest( + updates = openapi_client.models.app_store_update_listing_request_updates.appStore_updateListing_request_updates( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0', ) + ) + else: + return AppStoreUpdateListingRequest( + updates = openapi_client.models.app_store_update_listing_request_updates.appStore_updateListing_request_updates( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0', ), + ) + """ + + def testAppStoreUpdateListingRequest(self): + """Test AppStoreUpdateListingRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request_updates.py b/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request_updates.py new file mode 100644 index 0000000000..c8e2cbe0e1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_app_store_update_listing_request_updates.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.app_store_update_listing_request_updates import AppStoreUpdateListingRequestUpdates + +class TestAppStoreUpdateListingRequestUpdates(unittest.TestCase): + """AppStoreUpdateListingRequestUpdates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppStoreUpdateListingRequestUpdates: + """Test AppStoreUpdateListingRequestUpdates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppStoreUpdateListingRequestUpdates` + """ + model = AppStoreUpdateListingRequestUpdates() + if include_optional: + return AppStoreUpdateListingRequestUpdates( + display_name = '0', + tagline = '0', + full_description = '', + icon_url = '', + launch_type = 'EMBEDDED_IFRAME', + launch_config_json = '', + category = '', + promo_video_url = '', + ios_app_store_id = '', + android_app_store_id = '', + privacy_policy_url = '', + terms_url = '', + highlights = [ + '' + ], + screenshots = [ + '' + ], + hero_background_color = '#62ECB0' + ) + else: + return AppStoreUpdateListingRequestUpdates( + ) + """ + + def testAppStoreUpdateListingRequestUpdates(self): + """Test AppStoreUpdateListingRequestUpdates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grant200_response.py b/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grant200_response.py index ab187aa091..9882448627 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grant200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grant200_response.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> AuthGrantsGetAuthGrant200Response: id = '', name = '', description = '', - challenge = 'auth-grant:0123456789', + challenge = 'auth-grant:jUR,rZ#UM/?R,Fp^l6$ARj0123456789', status = 'revoked', scope = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grants200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grants200_response_inner.py index 81e21f0c60..74b8937f53 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grants200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_auth_grants_get_auth_grants200_response_inner.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> AuthGrantsGetAuthGrants200ResponseI id = '', name = '', description = '', - challenge = 'auth-grant:0123456789', + challenge = 'auth-grant:jUR,rZ#UM/?R,Fp^l6$ARj0123456789', status = 'revoked', scope = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> AuthGrantsGetAuthGrants200ResponseI return AuthGrantsGetAuthGrants200ResponseInner( id = '', name = '', - challenge = 'auth-grant:0123456789', + challenge = 'auth-grant:jUR,rZ#UM/?R,Fp^l6$ARj0123456789', status = 'revoked', scope = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request.py new file mode 100644 index 0000000000..633076a02b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_align_boost_skills_request import BoostAlignBoostSkillsRequest + +class TestBoostAlignBoostSkillsRequest(unittest.TestCase): + """BoostAlignBoostSkillsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostAlignBoostSkillsRequest: + """Test BoostAlignBoostSkillsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostAlignBoostSkillsRequest` + """ + model = BoostAlignBoostSkillsRequest() + if include_optional: + return BoostAlignBoostSkillsRequest( + boost_uri = '', + skills = [ + openapi_client.models.boost_align_boost_skills_request_skills_inner.boost_alignBoostSkills_request_skills_inner( + framework_id = '', + id = '', ) + ] + ) + else: + return BoostAlignBoostSkillsRequest( + boost_uri = '', + skills = [ + openapi_client.models.boost_align_boost_skills_request_skills_inner.boost_alignBoostSkills_request_skills_inner( + framework_id = '', + id = '', ) + ], + ) + """ + + def testBoostAlignBoostSkillsRequest(self): + """Test BoostAlignBoostSkillsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request_skills_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request_skills_inner.py new file mode 100644 index 0000000000..1e52cbe7c7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_align_boost_skills_request_skills_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_align_boost_skills_request_skills_inner import BoostAlignBoostSkillsRequestSkillsInner + +class TestBoostAlignBoostSkillsRequestSkillsInner(unittest.TestCase): + """BoostAlignBoostSkillsRequestSkillsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostAlignBoostSkillsRequestSkillsInner: + """Test BoostAlignBoostSkillsRequestSkillsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostAlignBoostSkillsRequestSkillsInner` + """ + model = BoostAlignBoostSkillsRequestSkillsInner() + if include_optional: + return BoostAlignBoostSkillsRequestSkillsInner( + framework_id = '', + id = '' + ) + else: + return BoostAlignBoostSkillsRequestSkillsInner( + framework_id = '', + id = '', + ) + """ + + def testBoostAlignBoostSkillsRequestSkillsInner(self): + """Test BoostAlignBoostSkillsRequestSkillsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_attach_framework_to_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_attach_framework_to_boost_request.py new file mode 100644 index 0000000000..19a6a9e62b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_attach_framework_to_boost_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_attach_framework_to_boost_request import BoostAttachFrameworkToBoostRequest + +class TestBoostAttachFrameworkToBoostRequest(unittest.TestCase): + """BoostAttachFrameworkToBoostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostAttachFrameworkToBoostRequest: + """Test BoostAttachFrameworkToBoostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostAttachFrameworkToBoostRequest` + """ + model = BoostAttachFrameworkToBoostRequest() + if include_optional: + return BoostAttachFrameworkToBoostRequest( + boost_uri = '', + framework_id = '' + ) + else: + return BoostAttachFrameworkToBoostRequest( + boost_uri = '', + framework_id = '', + ) + """ + + def testBoostAttachFrameworkToBoostRequest(self): + """Test BoostAttachFrameworkToBoostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_claim_boost_with_link_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_claim_boost_with_link_request.py new file mode 100644 index 0000000000..f7ff59866b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_claim_boost_with_link_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_claim_boost_with_link_request import BoostClaimBoostWithLinkRequest + +class TestBoostClaimBoostWithLinkRequest(unittest.TestCase): + """BoostClaimBoostWithLinkRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostClaimBoostWithLinkRequest: + """Test BoostClaimBoostWithLinkRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostClaimBoostWithLinkRequest` + """ + model = BoostClaimBoostWithLinkRequest() + if include_optional: + return BoostClaimBoostWithLinkRequest( + boost_uri = '', + challenge = '' + ) + else: + return BoostClaimBoostWithLinkRequest( + boost_uri = '', + challenge = '', + ) + """ + + def testBoostClaimBoostWithLinkRequest(self): + """Test BoostClaimBoostWithLinkRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_children_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_children_request.py index dbad635189..d0ec52de2d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_children_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_children_request.py @@ -36,17 +36,8 @@ def make_instance(self, include_optional) -> BoostCountBoostChildrenRequest: if include_optional: return BoostCountBoostChildrenRequest( uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ), - number_of_generations = 1.337 + query = None, + number_of_generations = None ) else: return BoostCountBoostChildrenRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_parents_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_parents_request.py new file mode 100644 index 0000000000..fef5af513b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_parents_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_count_boost_parents_request import BoostCountBoostParentsRequest + +class TestBoostCountBoostParentsRequest(unittest.TestCase): + """BoostCountBoostParentsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostCountBoostParentsRequest: + """Test BoostCountBoostParentsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostCountBoostParentsRequest` + """ + model = BoostCountBoostParentsRequest() + if include_optional: + return BoostCountBoostParentsRequest( + uri = '', + query = None, + number_of_generations = None + ) + else: + return BoostCountBoostParentsRequest( + uri = '', + ) + """ + + def testBoostCountBoostParentsRequest(self): + """Test BoostCountBoostParentsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_siblings_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_siblings_request.py index 0f86bf9857..8b6733a914 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_siblings_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_count_boost_siblings_request.py @@ -36,16 +36,7 @@ def make_instance(self, include_optional) -> BoostCountBoostSiblingsRequest: if include_optional: return BoostCountBoostSiblingsRequest( uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ) + query = None ) else: return BoostCountBoostSiblingsRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_count_familial_boosts_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_count_familial_boosts_request.py index b2927c2ae6..ec97618fb6 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_count_familial_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_count_familial_boosts_request.py @@ -36,18 +36,9 @@ def make_instance(self, include_optional) -> BoostCountFamilialBoostsRequest: if include_optional: return BoostCountFamilialBoostsRequest( uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ), - parent_generations = 1.337, - child_generations = 1.337, + query = None, + parent_generations = None, + child_generations = None, include_extended_family = True ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_create_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_create_boost_request.py index c9e14bcad9..a6469234a3 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_create_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_create_boost_request.py @@ -57,7 +57,25 @@ def make_instance(self, include_optional) -> BoostCreateBoostRequest: can_revoke_children = '', can_manage_children_permissions = '', can_manage_children_profiles = True, - can_view_analytics = True, ) + can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + skills = [ + openapi_client.models.boost_send_request_template_skills_inner.boost_send_request_template_skills_inner( + framework_id = '', + id = '', ) + ] ) else: return BoostCreateBoostRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request.py index 5f840b279e..9dfb2fef8e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> BoostCreateChildBoostRequest: if include_optional: return BoostCreateChildBoostRequest( parent_uri = '', - boost = openapi_client.models.boost_create_boost_request.boost_createBoost_request( + boost = openapi_client.models.boost_create_child_boost_request_boost.boost_createChildBoost_request_boost( name = '', type = '', category = '', @@ -59,12 +59,30 @@ def make_instance(self, include_optional) -> BoostCreateChildBoostRequest: can_revoke_children = '', can_manage_children_permissions = '', can_manage_children_profiles = True, - can_view_analytics = True, ), ) + can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), ), + skills = [ + openapi_client.models.boost_send_request_template_skills_inner.boost_send_request_template_skills_inner( + framework_id = '', + id = '', ) + ] ) else: return BoostCreateChildBoostRequest( parent_uri = '', - boost = openapi_client.models.boost_create_boost_request.boost_createBoost_request( + boost = openapi_client.models.boost_create_child_boost_request_boost.boost_createChildBoost_request_boost( name = '', type = '', category = '', @@ -76,6 +94,19 @@ def make_instance(self, include_optional) -> BoostCreateChildBoostRequest: allow_anyone_to_create_children = True, credential = null, claim_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( role = '', can_edit = True, can_issue = True, diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request_boost.py b/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request_boost.py new file mode 100644 index 0000000000..2fef5da68e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_create_child_boost_request_boost.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_create_child_boost_request_boost import BoostCreateChildBoostRequestBoost + +class TestBoostCreateChildBoostRequestBoost(unittest.TestCase): + """BoostCreateChildBoostRequestBoost unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostCreateChildBoostRequestBoost: + """Test BoostCreateChildBoostRequestBoost + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostCreateChildBoostRequestBoost` + """ + model = BoostCreateChildBoostRequestBoost() + if include_optional: + return BoostCreateChildBoostRequestBoost( + name = '', + type = '', + category = '', + status = 'DRAFT', + auto_connect_recipients = True, + meta = { + 'key' : null + }, + allow_anyone_to_create_children = True, + credential = None, + claim_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ) + ) + else: + return BoostCreateChildBoostRequestBoost( + credential = None, + ) + """ + + def testBoostCreateChildBoostRequestBoost(self): + """Test BoostCreateChildBoostRequestBoost""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_detach_framework_from_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_detach_framework_from_boost_request.py new file mode 100644 index 0000000000..6b9c1b6b54 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_detach_framework_from_boost_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_detach_framework_from_boost_request import BoostDetachFrameworkFromBoostRequest + +class TestBoostDetachFrameworkFromBoostRequest(unittest.TestCase): + """BoostDetachFrameworkFromBoostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostDetachFrameworkFromBoostRequest: + """Test BoostDetachFrameworkFromBoostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostDetachFrameworkFromBoostRequest` + """ + model = BoostDetachFrameworkFromBoostRequest() + if include_optional: + return BoostDetachFrameworkFromBoostRequest( + boost_uri = '', + framework_id = '' + ) + else: + return BoostDetachFrameworkFromBoostRequest( + boost_uri = '', + framework_id = '', + ) + """ + + def testBoostDetachFrameworkFromBoostRequest(self): + """Test BoostDetachFrameworkFromBoostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response.py index 7fada6c7b1..8c664ac144 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response.py @@ -43,6 +43,19 @@ def make_instance(self, include_optional) -> BoostGetBoost200Response: meta = { 'key' : null }, + default_permissions = openapi_client.models.boost_get_boost_200_response_default_permissions.boost_getBoost_200_response_defaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), allow_anyone_to_create_children = True, claim_permissions = openapi_client.models.boost_get_boost_200_response_claim_permissions.boost_getBoost_200_response_claimPermissions( role = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost.py new file mode 100644 index 0000000000..287e7134fb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost import BoostGetBoost200ResponseBoost + +class TestBoostGetBoost200ResponseBoost(unittest.TestCase): + """BoostGetBoost200ResponseBoost unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoost: + """Test BoostGetBoost200ResponseBoost + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoost` + """ + model = BoostGetBoost200ResponseBoost() + if include_optional: + return BoostGetBoost200ResponseBoost( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None + ) + else: + return BoostGetBoost200ResponseBoost( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + ) + """ + + def testBoostGetBoost200ResponseBoost(self): + """Test BoostGetBoost200ResponseBoost""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer.py new file mode 100644 index 0000000000..43a6860a4d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer import BoostGetBoost200ResponseBoostIssuer + +class TestBoostGetBoost200ResponseBoostIssuer(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuer: + """Test BoostGetBoost200ResponseBoostIssuer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuer` + """ + model = BoostGetBoost200ResponseBoostIssuer() + if include_optional: + return BoostGetBoost200ResponseBoostIssuer( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_address.boost_getBoost_200_response_boost_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_address_geo.boost_getBoost_200_response_boost_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_other_identifier_inner.boost_getBoost_200_response_boost_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return BoostGetBoost200ResponseBoostIssuer( + ) + """ + + def testBoostGetBoost200ResponseBoostIssuer(self): + """Test BoostGetBoost200ResponseBoostIssuer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of.py new file mode 100644 index 0000000000..ff708dac14 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of import BoostGetBoost200ResponseBoostIssuerAnyOf + +class TestBoostGetBoost200ResponseBoostIssuerAnyOf(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOf: + """Test BoostGetBoost200ResponseBoostIssuerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOf` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOf() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOf( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_address.boost_getBoost_200_response_boost_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_address_geo.boost_getBoost_200_response_boost_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_other_identifier_inner.boost_getBoost_200_response_boost_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOf( + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOf(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address.py new file mode 100644 index 0000000000..8acd26d265 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address import BoostGetBoost200ResponseBoostIssuerAnyOfAddress + +class TestBoostGetBoost200ResponseBoostIssuerAnyOfAddress(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOfAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOfAddress: + """Test BoostGetBoost200ResponseBoostIssuerAnyOfAddress + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOfAddress` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOfAddress() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOfAddress( + type = None, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_get_boost_200_response_boost_issuer_any_of_address_geo.boost_getBoost_200_response_boost_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ) + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOfAddress( + type = None, + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOfAddress(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOfAddress""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..bab6386719 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_address_geo.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_address_geo import BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo + +class TestBoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo: + """Test BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337 + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337, + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOfAddressGeo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image.py new file mode 100644 index 0000000000..f225cc52e1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image import BoostGetBoost200ResponseBoostIssuerAnyOfImage + +class TestBoostGetBoost200ResponseBoostIssuerAnyOfImage(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOfImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOfImage: + """Test BoostGetBoost200ResponseBoostIssuerAnyOfImage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOfImage` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOfImage() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOfImage( + id = '', + type = '', + caption = '' + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOfImage( + id = '', + type = '', + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOfImage(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOfImage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..32aebd62b4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_image_any_of.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_image_any_of import BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + +class TestBoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf: + """Test BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf( + id = '', + type = '', + caption = '' + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf( + id = '', + type = '', + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOfImageAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..276b17f388 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_boost_issuer_any_of_other_identifier_inner import BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner + +class TestBoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner(unittest.TestCase): + """BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner: + """Test BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner` + """ + model = BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner() + if include_optional: + return BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None + ) + else: + return BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None, + ) + """ + + def testBoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner(self): + """Test BoostGetBoost200ResponseBoostIssuerAnyOfOtherIdentifierInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_default_permissions.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_default_permissions.py new file mode 100644 index 0000000000..dbb3bf1043 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost200_response_default_permissions.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost200_response_default_permissions import BoostGetBoost200ResponseDefaultPermissions + +class TestBoostGetBoost200ResponseDefaultPermissions(unittest.TestCase): + """BoostGetBoost200ResponseDefaultPermissions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoost200ResponseDefaultPermissions: + """Test BoostGetBoost200ResponseDefaultPermissions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoost200ResponseDefaultPermissions` + """ + model = BoostGetBoost200ResponseDefaultPermissions() + if include_optional: + return BoostGetBoost200ResponseDefaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True + ) + else: + return BoostGetBoost200ResponseDefaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_view_analytics = True, + ) + """ + + def testBoostGetBoost200ResponseDefaultPermissions(self): + """Test BoostGetBoost200ResponseDefaultPermissions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_admins200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_admins200_response.py index 1d9552a172..7debddabd2 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_admins200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_admins200_response.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> BoostGetBoostAdmins200Response: cursor = '', has_more = True, records = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -51,8 +51,8 @@ def make_instance(self, include_optional) -> BoostGetBoostAdmins200Response: website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -64,15 +64,20 @@ def make_instance(self, include_optional) -> BoostGetBoostAdmins200Response: fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ] ) else: return BoostGetBoostAdmins200Response( has_more = True, records = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -85,8 +90,8 @@ def make_instance(self, include_optional) -> BoostGetBoostAdmins200Response: website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -98,8 +103,13 @@ def make_instance(self, include_optional) -> BoostGetBoostAdmins200Response: fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_alignments200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_alignments200_response_inner.py new file mode 100644 index 0000000000..1a23f8f4f6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_alignments200_response_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_alignments200_response_inner import BoostGetBoostAlignments200ResponseInner + +class TestBoostGetBoostAlignments200ResponseInner(unittest.TestCase): + """BoostGetBoostAlignments200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostAlignments200ResponseInner: + """Test BoostGetBoostAlignments200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostAlignments200ResponseInner` + """ + model = BoostGetBoostAlignments200ResponseInner() + if include_optional: + return BoostGetBoostAlignments200ResponseInner( + target_code = '', + target_name = '', + target_description = '', + target_url = '', + target_framework = '' + ) + else: + return BoostGetBoostAlignments200ResponseInner( + ) + """ + + def testBoostGetBoostAlignments200ResponseInner(self): + """Test BoostGetBoostAlignments200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_children_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_children_request.py index 758bfc62db..fd45177ccb 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_children_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_children_request.py @@ -39,16 +39,7 @@ def make_instance(self, include_optional) -> BoostGetBoostChildrenRequest: cursor = '', sort = '', uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ), + query = None, number_of_generations = 1.337 ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response.py new file mode 100644 index 0000000000..0225d40f28 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_frameworks200_response import BoostGetBoostFrameworks200Response + +class TestBoostGetBoostFrameworks200Response(unittest.TestCase): + """BoostGetBoostFrameworks200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostFrameworks200Response: + """Test BoostGetBoostFrameworks200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostFrameworks200Response` + """ + model = BoostGetBoostFrameworks200Response() + if include_optional: + return BoostGetBoostFrameworks200Response( + cursor = '', + has_more = True, + records = [ + openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ) + ] + ) + else: + return BoostGetBoostFrameworks200Response( + has_more = True, + records = [ + openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ) + ], + ) + """ + + def testBoostGetBoostFrameworks200Response(self): + """Test BoostGetBoostFrameworks200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response_records_inner.py new file mode 100644 index 0000000000..3389668d22 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks200_response_records_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_frameworks200_response_records_inner import BoostGetBoostFrameworks200ResponseRecordsInner + +class TestBoostGetBoostFrameworks200ResponseRecordsInner(unittest.TestCase): + """BoostGetBoostFrameworks200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostFrameworks200ResponseRecordsInner: + """Test BoostGetBoostFrameworks200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostFrameworks200ResponseRecordsInner` + """ + model = BoostGetBoostFrameworks200ResponseRecordsInner() + if include_optional: + return BoostGetBoostFrameworks200ResponseRecordsInner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '' + ) + else: + return BoostGetBoostFrameworks200ResponseRecordsInner( + id = '', + name = '', + status = 'active', + ) + """ + + def testBoostGetBoostFrameworks200ResponseRecordsInner(self): + """Test BoostGetBoostFrameworks200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request.py similarity index 53% rename from packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of1.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request.py index 85183acfcf..eaa2ea6022 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of1.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_get_boosts_request_query_uri_any_of1 import BoostGetBoostsRequestQueryUriAnyOf1 +from openapi_client.models.boost_get_boost_frameworks_request import BoostGetBoostFrameworksRequest -class TestBoostGetBoostsRequestQueryUriAnyOf1(unittest.TestCase): - """BoostGetBoostsRequestQueryUriAnyOf1 unit test stubs""" +class TestBoostGetBoostFrameworksRequest(unittest.TestCase): + """BoostGetBoostFrameworksRequest unit test stubs""" def setUp(self): pass @@ -25,26 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryUriAnyOf1: - """Test BoostGetBoostsRequestQueryUriAnyOf1 + def make_instance(self, include_optional) -> BoostGetBoostFrameworksRequest: + """Test BoostGetBoostFrameworksRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryUriAnyOf1` + # uncomment below to create an instance of `BoostGetBoostFrameworksRequest` """ - model = BoostGetBoostsRequestQueryUriAnyOf1() + model = BoostGetBoostFrameworksRequest() if include_optional: - return BoostGetBoostsRequestQueryUriAnyOf1( - regex = '' + return BoostGetBoostFrameworksRequest( + uri = '', + limit = 1, + cursor = '', + query = None ) else: - return BoostGetBoostsRequestQueryUriAnyOf1( - regex = '', + return BoostGetBoostFrameworksRequest( + uri = '', ) """ - def testBoostGetBoostsRequestQueryUriAnyOf1(self): - """Test BoostGetBoostsRequestQueryUriAnyOf1""" + def testBoostGetBoostFrameworksRequest(self): + """Test BoostGetBoostFrameworksRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query.py new file mode 100644 index 0000000000..24b77b6ed2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_frameworks_request_query import BoostGetBoostFrameworksRequestQuery + +class TestBoostGetBoostFrameworksRequestQuery(unittest.TestCase): + """BoostGetBoostFrameworksRequestQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostFrameworksRequestQuery: + """Test BoostGetBoostFrameworksRequestQuery + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostFrameworksRequestQuery` + """ + model = BoostGetBoostFrameworksRequestQuery() + if include_optional: + return BoostGetBoostFrameworksRequestQuery( + var_or = [ + openapi_client.models.boost_get_boost_frameworks_request_query_any_of__or_inner.boost_getBoostFrameworks_request_query_anyOf__or_inner( + id = null, + name = null, + description = null, + source_uri = null, + status = null, ) + ], + id = None, + name = None, + description = None, + source_uri = None, + status = None + ) + else: + return BoostGetBoostFrameworksRequestQuery( + var_or = [ + openapi_client.models.boost_get_boost_frameworks_request_query_any_of__or_inner.boost_getBoostFrameworks_request_query_anyOf__or_inner( + id = null, + name = null, + description = null, + source_uri = null, + status = null, ) + ], + ) + """ + + def testBoostGetBoostFrameworksRequestQuery(self): + """Test BoostGetBoostFrameworksRequestQuery""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of.py new file mode 100644 index 0000000000..2b9c92123f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of import BoostGetBoostFrameworksRequestQueryAnyOf + +class TestBoostGetBoostFrameworksRequestQueryAnyOf(unittest.TestCase): + """BoostGetBoostFrameworksRequestQueryAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostFrameworksRequestQueryAnyOf: + """Test BoostGetBoostFrameworksRequestQueryAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostFrameworksRequestQueryAnyOf` + """ + model = BoostGetBoostFrameworksRequestQueryAnyOf() + if include_optional: + return BoostGetBoostFrameworksRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_get_boost_frameworks_request_query_any_of__or_inner.boost_getBoostFrameworks_request_query_anyOf__or_inner( + id = null, + name = null, + description = null, + source_uri = null, + status = null, ) + ] + ) + else: + return BoostGetBoostFrameworksRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_get_boost_frameworks_request_query_any_of__or_inner.boost_getBoostFrameworks_request_query_anyOf__or_inner( + id = null, + name = null, + description = null, + source_uri = null, + status = null, ) + ], + ) + """ + + def testBoostGetBoostFrameworksRequestQueryAnyOf(self): + """Test BoostGetBoostFrameworksRequestQueryAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of_or_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of_or_inner.py new file mode 100644 index 0000000000..c2d3685b88 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_frameworks_request_query_any_of_or_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_frameworks_request_query_any_of_or_inner import BoostGetBoostFrameworksRequestQueryAnyOfOrInner + +class TestBoostGetBoostFrameworksRequestQueryAnyOfOrInner(unittest.TestCase): + """BoostGetBoostFrameworksRequestQueryAnyOfOrInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostFrameworksRequestQueryAnyOfOrInner: + """Test BoostGetBoostFrameworksRequestQueryAnyOfOrInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostFrameworksRequestQueryAnyOfOrInner` + """ + model = BoostGetBoostFrameworksRequestQueryAnyOfOrInner() + if include_optional: + return BoostGetBoostFrameworksRequestQueryAnyOfOrInner( + id = None, + name = None, + description = None, + source_uri = None, + status = None + ) + else: + return BoostGetBoostFrameworksRequestQueryAnyOfOrInner( + ) + """ + + def testBoostGetBoostFrameworksRequestQueryAnyOfOrInner(self): + """Test BoostGetBoostFrameworksRequestQueryAnyOfOrInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_parents_request.py similarity index 52% rename from packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_parents_request.py index c9818da4e8..dfd6ef05e6 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_parents_request.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_get_boosts_request_query_uri import BoostGetBoostsRequestQueryUri +from openapi_client.models.boost_get_boost_parents_request import BoostGetBoostParentsRequest -class TestBoostGetBoostsRequestQueryUri(unittest.TestCase): - """BoostGetBoostsRequestQueryUri unit test stubs""" +class TestBoostGetBoostParentsRequest(unittest.TestCase): + """BoostGetBoostParentsRequest unit test stubs""" def setUp(self): pass @@ -25,32 +25,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryUri: - """Test BoostGetBoostsRequestQueryUri + def make_instance(self, include_optional) -> BoostGetBoostParentsRequest: + """Test BoostGetBoostParentsRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryUri` + # uncomment below to create an instance of `BoostGetBoostParentsRequest` """ - model = BoostGetBoostsRequestQueryUri() + model = BoostGetBoostParentsRequest() if include_optional: - return BoostGetBoostsRequestQueryUri( - var_in = [ - '' - ], - regex = '' + return BoostGetBoostParentsRequest( + limit = 1.337, + cursor = '', + sort = '', + uri = '', + query = None, + number_of_generations = None ) else: - return BoostGetBoostsRequestQueryUri( - var_in = [ - '' - ], - regex = '', + return BoostGetBoostParentsRequest( + uri = '', ) """ - def testBoostGetBoostsRequestQueryUri(self): - """Test BoostGetBoostsRequestQueryUri""" + def testBoostGetBoostParentsRequest(self): + """Test BoostGetBoostParentsRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner.py index 2a5d6e025c..035598b48d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner.py @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( background_color = '', background_image = '', @@ -61,8 +61,13 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), var_from = '', received = '', uri = '' @@ -82,7 +87,7 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( background_color = '', background_image = '', @@ -95,8 +100,13 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), var_from = '', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner_to.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner_to.py index b2b04dd903..c23d75bceb 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner_to.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients200_response_inner_to.py @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( background_color = '', background_image = '', @@ -60,8 +60,13 @@ def make_instance(self, include_optional) -> BoostGetBoostRecipients200ResponseI fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '' + dob = '', + country = '', + approved = True ) else: return BoostGetBoostRecipients200ResponseInnerTo( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request.py new file mode 100644 index 0000000000..ea4b160555 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_recipients_with_children_count_request import BoostGetBoostRecipientsWithChildrenCountRequest + +class TestBoostGetBoostRecipientsWithChildrenCountRequest(unittest.TestCase): + """BoostGetBoostRecipientsWithChildrenCountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostRecipientsWithChildrenCountRequest: + """Test BoostGetBoostRecipientsWithChildrenCountRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostRecipientsWithChildrenCountRequest` + """ + model = BoostGetBoostRecipientsWithChildrenCountRequest() + if include_optional: + return BoostGetBoostRecipientsWithChildrenCountRequest( + uri = '', + include_unaccepted_boosts = True, + number_of_generations = None, + boost_query = None, + profile_query = openapi_client.models.boost_get_paginated_boost_recipients_request_query.boost_getPaginatedBoostRecipients_request_query( + profile_id = null, + display_name = null, + short_bio = null, + bio = null, + email = null, + website_link = null, + is_service_profile = True, + type = null, ) + ) + else: + return BoostGetBoostRecipientsWithChildrenCountRequest( + uri = '', + ) + """ + + def testBoostGetBoostRecipientsWithChildrenCountRequest(self): + """Test BoostGetBoostRecipientsWithChildrenCountRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request_number_of_generations.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request_number_of_generations.py new file mode 100644 index 0000000000..64dd96843b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_recipients_with_children_count_request_number_of_generations.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boost_recipients_with_children_count_request_number_of_generations import BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations + +class TestBoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations(unittest.TestCase): + """BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations: + """Test BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations` + """ + model = BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations() + if include_optional: + return BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations( + ) + else: + return BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations( + ) + """ + + def testBoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations(self): + """Test BoostGetBoostRecipientsWithChildrenCountRequestNumberOfGenerations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_siblings_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_siblings_request.py index 540f9f9ef0..fd6402b040 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_siblings_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boost_siblings_request.py @@ -39,16 +39,7 @@ def make_instance(self, include_optional) -> BoostGetBoostSiblingsRequest: cursor = '', sort = '', uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ) + query = None ) else: return BoostGetBoostSiblingsRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts200_response_inner.py index da21dd23aa..fbf13ddff0 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts200_response_inner.py @@ -43,6 +43,19 @@ def make_instance(self, include_optional) -> BoostGetBoosts200ResponseInner: meta = { 'key' : null }, + default_permissions = openapi_client.models.boost_get_boost_200_response_claim_permissions.boost_getBoost_200_response_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), allow_anyone_to_create_children = True, uri = '' ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request.py index c8fbecc654..3c1a78400f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request.py @@ -35,16 +35,7 @@ def make_instance(self, include_optional) -> BoostGetBoostsRequest: model = BoostGetBoostsRequest() if include_optional: return BoostGetBoostsRequest( - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ) + query = None ) else: return BoostGetBoostsRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query.py index 12ea7b45da..31a640a133 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query.py @@ -35,6 +35,18 @@ def make_instance(self, include_optional) -> BoostGetBoostsRequestQuery: model = BoostGetBoostsRequestQuery() if include_optional: return BoostGetBoostsRequestQuery( + var_or = [ + openapi_client.models.boost_get_boosts_request_query_any_of__or_inner.boost_getBoosts_request_query_anyOf__or_inner( + uri = null, + name = null, + type = null, + category = null, + meta = { + 'key' : null + }, + status = null, + auto_connect_recipients = True, ) + ], uri = None, name = None, type = None, @@ -47,6 +59,18 @@ def make_instance(self, include_optional) -> BoostGetBoostsRequestQuery: ) else: return BoostGetBoostsRequestQuery( + var_or = [ + openapi_client.models.boost_get_boosts_request_query_any_of__or_inner.boost_getBoosts_request_query_anyOf__or_inner( + uri = null, + name = null, + type = null, + category = null, + meta = { + 'key' : null + }, + status = null, + auto_connect_recipients = True, ) + ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of.py new file mode 100644 index 0000000000..8f9301c134 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_boosts_request_query_any_of import BoostGetBoostsRequestQueryAnyOf + +class TestBoostGetBoostsRequestQueryAnyOf(unittest.TestCase): + """BoostGetBoostsRequestQueryAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryAnyOf: + """Test BoostGetBoostsRequestQueryAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetBoostsRequestQueryAnyOf` + """ + model = BoostGetBoostsRequestQueryAnyOf() + if include_optional: + return BoostGetBoostsRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_get_boosts_request_query_any_of__or_inner.boost_getBoosts_request_query_anyOf__or_inner( + uri = null, + name = null, + type = null, + category = null, + meta = { + 'key' : null + }, + status = null, + auto_connect_recipients = True, ) + ] + ) + else: + return BoostGetBoostsRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_get_boosts_request_query_any_of__or_inner.boost_getBoosts_request_query_anyOf__or_inner( + uri = null, + name = null, + type = null, + category = null, + meta = { + 'key' : null + }, + status = null, + auto_connect_recipients = True, ) + ], + ) + """ + + def testBoostGetBoostsRequestQueryAnyOf(self): + """Test BoostGetBoostsRequestQueryAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner.py similarity index 50% rename from packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner.py index effc7044ea..ce5adc54ef 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_get_boosts_request_query_uri_any_of import BoostGetBoostsRequestQueryUriAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner import BoostGetBoostsRequestQueryAnyOfOrInner -class TestBoostGetBoostsRequestQueryUriAnyOf(unittest.TestCase): - """BoostGetBoostsRequestQueryUriAnyOf unit test stubs""" +class TestBoostGetBoostsRequestQueryAnyOfOrInner(unittest.TestCase): + """BoostGetBoostsRequestQueryAnyOfOrInner unit test stubs""" def setUp(self): pass @@ -25,30 +25,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryUriAnyOf: - """Test BoostGetBoostsRequestQueryUriAnyOf + def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryAnyOfOrInner: + """Test BoostGetBoostsRequestQueryAnyOfOrInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryUriAnyOf` + # uncomment below to create an instance of `BoostGetBoostsRequestQueryAnyOfOrInner` """ - model = BoostGetBoostsRequestQueryUriAnyOf() + model = BoostGetBoostsRequestQueryAnyOfOrInner() if include_optional: - return BoostGetBoostsRequestQueryUriAnyOf( - var_in = [ - '' - ] + return BoostGetBoostsRequestQueryAnyOfOrInner( + uri = None, + name = None, + type = None, + category = None, + meta = { + 'key' : null + }, + status = None, + auto_connect_recipients = True ) else: - return BoostGetBoostsRequestQueryUriAnyOf( - var_in = [ - '' - ], + return BoostGetBoostsRequestQueryAnyOfOrInner( ) """ - def testBoostGetBoostsRequestQueryUriAnyOf(self): - """Test BoostGetBoostsRequestQueryUriAnyOf""" + def testBoostGetBoostsRequestQueryAnyOfOrInner(self): + """Test BoostGetBoostsRequestQueryAnyOfOrInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status.py similarity index 60% rename from packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status_any_of.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status.py index 9104610326..e0752537ac 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_get_boosts_request_query_status_any_of import BoostGetBoostsRequestQueryStatusAnyOf +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status import BoostGetBoostsRequestQueryAnyOfOrInnerStatus -class TestBoostGetBoostsRequestQueryStatusAnyOf(unittest.TestCase): - """BoostGetBoostsRequestQueryStatusAnyOf unit test stubs""" +class TestBoostGetBoostsRequestQueryAnyOfOrInnerStatus(unittest.TestCase): + """BoostGetBoostsRequestQueryAnyOfOrInnerStatus unit test stubs""" def setUp(self): pass @@ -25,30 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryStatusAnyOf: - """Test BoostGetBoostsRequestQueryStatusAnyOf + def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryAnyOfOrInnerStatus: + """Test BoostGetBoostsRequestQueryAnyOfOrInnerStatus include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryStatusAnyOf` + # uncomment below to create an instance of `BoostGetBoostsRequestQueryAnyOfOrInnerStatus` """ - model = BoostGetBoostsRequestQueryStatusAnyOf() + model = BoostGetBoostsRequestQueryAnyOfOrInnerStatus() if include_optional: - return BoostGetBoostsRequestQueryStatusAnyOf( + return BoostGetBoostsRequestQueryAnyOfOrInnerStatus( var_in = [ 'DRAFT' ] ) else: - return BoostGetBoostsRequestQueryStatusAnyOf( + return BoostGetBoostsRequestQueryAnyOfOrInnerStatus( var_in = [ 'DRAFT' ], ) """ - def testBoostGetBoostsRequestQueryStatusAnyOf(self): - """Test BoostGetBoostsRequestQueryStatusAnyOf""" + def testBoostGetBoostsRequestQueryAnyOfOrInnerStatus(self): + """Test BoostGetBoostsRequestQueryAnyOfOrInnerStatus""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status_any_of.py similarity index 58% rename from packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status_any_of.py index 36464a1306..8f6762239d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_status.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_any_of_or_inner_status_any_of.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_get_boosts_request_query_status import BoostGetBoostsRequestQueryStatus +from openapi_client.models.boost_get_boosts_request_query_any_of_or_inner_status_any_of import BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf -class TestBoostGetBoostsRequestQueryStatus(unittest.TestCase): - """BoostGetBoostsRequestQueryStatus unit test stubs""" +class TestBoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf(unittest.TestCase): + """BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf unit test stubs""" def setUp(self): pass @@ -25,30 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryStatus: - """Test BoostGetBoostsRequestQueryStatus + def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf: + """Test BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryStatus` + # uncomment below to create an instance of `BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf` """ - model = BoostGetBoostsRequestQueryStatus() + model = BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf() if include_optional: - return BoostGetBoostsRequestQueryStatus( + return BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf( var_in = [ 'DRAFT' ] ) else: - return BoostGetBoostsRequestQueryStatus( + return BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf( var_in = [ 'DRAFT' ], ) """ - def testBoostGetBoostsRequestQueryStatus(self): - """Test BoostGetBoostsRequestQueryStatus""" + def testBoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf(self): + """Test BoostGetBoostsRequestQueryAnyOfOrInnerStatusAnyOf""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of_any_of.py deleted file mode 100644 index 83daa17d08..0000000000 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_boosts_request_query_uri_any_of_any_of.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - LearnCloud Network API - - API for interacting with LearnCloud Network - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from openapi_client.models.boost_get_boosts_request_query_uri_any_of_any_of import BoostGetBoostsRequestQueryUriAnyOfAnyOf - -class TestBoostGetBoostsRequestQueryUriAnyOfAnyOf(unittest.TestCase): - """BoostGetBoostsRequestQueryUriAnyOfAnyOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BoostGetBoostsRequestQueryUriAnyOfAnyOf: - """Test BoostGetBoostsRequestQueryUriAnyOfAnyOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BoostGetBoostsRequestQueryUriAnyOfAnyOf` - """ - model = BoostGetBoostsRequestQueryUriAnyOfAnyOf() - if include_optional: - return BoostGetBoostsRequestQueryUriAnyOfAnyOf( - var_in = [ - '' - ] - ) - else: - return BoostGetBoostsRequestQueryUriAnyOfAnyOf( - var_in = [ - '' - ], - ) - """ - - def testBoostGetBoostsRequestQueryUriAnyOfAnyOf(self): - """Test BoostGetBoostsRequestQueryUriAnyOfAnyOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_familial_boosts_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_familial_boosts_request.py index cfa320b79f..010105c9c2 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_familial_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_familial_boosts_request.py @@ -39,18 +39,9 @@ def make_instance(self, include_optional) -> BoostGetFamilialBoostsRequest: cursor = '', sort = '', uri = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ), - parent_generations = 1.337, - child_generations = 1.337, + query = None, + parent_generations = None, + child_generations = None, include_extended_family = True ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response.py index d2b54db431..3a4aef6c2f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response.py @@ -38,8 +38,8 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 cursor = '', has_more = True, records = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner.boost_getBoostRecipients_200_response_inner( - to = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner.boost_getPaginatedBoostRecipients_200_response_records_inner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -52,8 +52,8 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -65,8 +65,13 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), from = '', received = '', uri = '', ) @@ -76,8 +81,8 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 return BoostGetPaginatedBoostRecipients200Response( has_more = True, records = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner.boost_getBoostRecipients_200_response_inner( - to = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner.boost_getPaginatedBoostRecipients_200_response_records_inner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -90,8 +95,8 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -103,8 +108,13 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200 fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), from = '', received = '', uri = '', ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner.py new file mode 100644 index 0000000000..78baa9eedc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner import BoostGetPaginatedBoostRecipients200ResponseRecordsInner + +class TestBoostGetPaginatedBoostRecipients200ResponseRecordsInner(unittest.TestCase): + """BoostGetPaginatedBoostRecipients200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200ResponseRecordsInner: + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipients200ResponseRecordsInner` + """ + model = BoostGetPaginatedBoostRecipients200ResponseRecordsInner() + if include_optional: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + var_from = '', + received = '', + uri = '' + ) + else: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + var_from = '', + ) + """ + + def testBoostGetPaginatedBoostRecipients200ResponseRecordsInner(self): + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to.py new file mode 100644 index 0000000000..9e66e6b5f7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + +class TestBoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo(unittest.TestCase): + """BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo: + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo` + """ + model = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo() + if include_optional: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True + ) + else: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + ) + """ + + def testBoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo(self): + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInnerTo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to_display.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to_display.py new file mode 100644 index 0000000000..31bb0d8fc1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients200_response_records_inner_to_display.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients200_response_records_inner_to_display import BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay + +class TestBoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay(unittest.TestCase): + """BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay: + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay` + """ + model = BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay() + if include_optional: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True + ) + else: + return BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay( + ) + """ + + def testBoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay(self): + """Test BoostGetPaginatedBoostRecipients200ResponseRecordsInnerToDisplay""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response.py new file mode 100644 index 0000000000..7535fdf285 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response import BoostGetPaginatedBoostRecipientsWithChildren200Response + +class TestBoostGetPaginatedBoostRecipientsWithChildren200Response(unittest.TestCase): + """BoostGetPaginatedBoostRecipientsWithChildren200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipientsWithChildren200Response: + """Test BoostGetPaginatedBoostRecipientsWithChildren200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipientsWithChildren200Response` + """ + model = BoostGetPaginatedBoostRecipientsWithChildren200Response() + if include_optional: + return BoostGetPaginatedBoostRecipientsWithChildren200Response( + cursor = '', + has_more = True, + records = [ + openapi_client.models.boost_get_paginated_boost_recipients_with_children_200_response_records_inner.boost_getPaginatedBoostRecipientsWithChildren_200_response_records_inner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + from = '', + received = '', + boost_uris = [ + '' + ], + credential_uris = [ + '' + ], ) + ] + ) + else: + return BoostGetPaginatedBoostRecipientsWithChildren200Response( + has_more = True, + records = [ + openapi_client.models.boost_get_paginated_boost_recipients_with_children_200_response_records_inner.boost_getPaginatedBoostRecipientsWithChildren_200_response_records_inner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + from = '', + received = '', + boost_uris = [ + '' + ], + credential_uris = [ + '' + ], ) + ], + ) + """ + + def testBoostGetPaginatedBoostRecipientsWithChildren200Response(self): + """Test BoostGetPaginatedBoostRecipientsWithChildren200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response_records_inner.py new file mode 100644 index 0000000000..91861f1af3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children200_response_records_inner.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients_with_children200_response_records_inner import BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner + +class TestBoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner(unittest.TestCase): + """BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner: + """Test BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner` + """ + model = BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner() + if include_optional: + return BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + var_from = '', + received = '', + boost_uris = [ + '' + ], + credential_uris = [ + '' + ] + ) + else: + return BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner( + to = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + var_from = '', + boost_uris = [ + '' + ], + ) + """ + + def testBoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner(self): + """Test BoostGetPaginatedBoostRecipientsWithChildren200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request.py new file mode 100644 index 0000000000..0a83e9b3e0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request import BoostGetPaginatedBoostRecipientsWithChildrenRequest + +class TestBoostGetPaginatedBoostRecipientsWithChildrenRequest(unittest.TestCase): + """BoostGetPaginatedBoostRecipientsWithChildrenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipientsWithChildrenRequest: + """Test BoostGetPaginatedBoostRecipientsWithChildrenRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipientsWithChildrenRequest` + """ + model = BoostGetPaginatedBoostRecipientsWithChildrenRequest() + if include_optional: + return BoostGetPaginatedBoostRecipientsWithChildrenRequest( + limit = 1.337, + cursor = '', + sort = '', + uri = '', + include_unaccepted_boosts = True, + number_of_generations = None, + boost_query = None, + profile_query = openapi_client.models.boost_get_paginated_boost_recipients_request_query.boost_getPaginatedBoostRecipients_request_query( + profile_id = null, + display_name = null, + short_bio = null, + bio = null, + email = null, + website_link = null, + is_service_profile = True, + type = null, ) + ) + else: + return BoostGetPaginatedBoostRecipientsWithChildrenRequest( + uri = '', + ) + """ + + def testBoostGetPaginatedBoostRecipientsWithChildrenRequest(self): + """Test BoostGetPaginatedBoostRecipientsWithChildrenRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py new file mode 100644 index 0000000000..438349f2e4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boost_recipients_with_children_request_number_of_generations.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_paginated_boost_recipients_with_children_request_number_of_generations import BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations + +class TestBoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations(unittest.TestCase): + """BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations: + """Test BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations` + """ + model = BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations() + if include_optional: + return BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations( + ) + else: + return BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations( + ) + """ + + def testBoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations(self): + """Test BoostGetPaginatedBoostRecipientsWithChildrenRequestNumberOfGenerations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response.py index c218784174..2f980338b4 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response.py @@ -61,6 +61,19 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoosts200Response: can_manage_children_permissions = '', can_manage_children_profiles = True, can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_get_boost_200_response_claim_permissions.boost_getBoost_200_response_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), allow_anyone_to_create_children = True, ) ] ) @@ -91,6 +104,19 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoosts200Response: can_manage_children_permissions = '', can_manage_children_profiles = True, can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_get_boost_200_response_claim_permissions.boost_getBoost_200_response_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), allow_anyone_to_create_children = True, ) ], ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response_records_inner.py index d2a702f454..fc955c4609 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts200_response_records_inner.py @@ -57,6 +57,19 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoosts200ResponseR can_manage_children_permissions = '', can_manage_children_profiles = True, can_view_analytics = True, ), + default_permissions = openapi_client.models.boost_get_boost_200_response_claim_permissions.boost_getBoost_200_response_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), allow_anyone_to_create_children = True ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts_request.py index 89d63af084..9da045fdc1 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_paginated_boosts_request.py @@ -38,16 +38,7 @@ def make_instance(self, include_optional) -> BoostGetPaginatedBoostsRequest: limit = 1.337, cursor = '', sort = '', - query = openapi_client.models.boost_get_boosts_request_query.boost_getBoosts_request_query( - uri = null, - name = null, - type = null, - category = null, - meta = { - 'key' : null - }, - status = null, - auto_connect_recipients = True, ) + query = None ) else: return BoostGetPaginatedBoostsRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner.py new file mode 100644 index 0000000000..f178032c46 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner import BoostGetSkillsAvailableForBoost200ResponseInner + +class TestBoostGetSkillsAvailableForBoost200ResponseInner(unittest.TestCase): + """BoostGetSkillsAvailableForBoost200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetSkillsAvailableForBoost200ResponseInner: + """Test BoostGetSkillsAvailableForBoost200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetSkillsAvailableForBoost200ResponseInner` + """ + model = BoostGetSkillsAvailableForBoost200ResponseInner() + if include_optional: + return BoostGetSkillsAvailableForBoost200ResponseInner( + framework = openapi_client.models.boost_get_skills_available_for_boost_200_response_inner_framework.boost_getSkillsAvailableForBoost_200_response_inner_framework( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = [ + openapi_client.models.boost_get_skills_available_for_boost_200_response_inner_skills_inner.boost_getSkillsAvailableForBoost_200_response_inner_skills_inner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', ) + ] + ) + else: + return BoostGetSkillsAvailableForBoost200ResponseInner( + framework = openapi_client.models.boost_get_skills_available_for_boost_200_response_inner_framework.boost_getSkillsAvailableForBoost_200_response_inner_framework( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = [ + openapi_client.models.boost_get_skills_available_for_boost_200_response_inner_skills_inner.boost_getSkillsAvailableForBoost_200_response_inner_skills_inner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', ) + ], + ) + """ + + def testBoostGetSkillsAvailableForBoost200ResponseInner(self): + """Test BoostGetSkillsAvailableForBoost200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_framework.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_framework.py new file mode 100644 index 0000000000..1299b4b791 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_framework.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_framework import BoostGetSkillsAvailableForBoost200ResponseInnerFramework + +class TestBoostGetSkillsAvailableForBoost200ResponseInnerFramework(unittest.TestCase): + """BoostGetSkillsAvailableForBoost200ResponseInnerFramework unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetSkillsAvailableForBoost200ResponseInnerFramework: + """Test BoostGetSkillsAvailableForBoost200ResponseInnerFramework + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetSkillsAvailableForBoost200ResponseInnerFramework` + """ + model = BoostGetSkillsAvailableForBoost200ResponseInnerFramework() + if include_optional: + return BoostGetSkillsAvailableForBoost200ResponseInnerFramework( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '' + ) + else: + return BoostGetSkillsAvailableForBoost200ResponseInnerFramework( + id = '', + name = '', + status = 'active', + ) + """ + + def testBoostGetSkillsAvailableForBoost200ResponseInnerFramework(self): + """Test BoostGetSkillsAvailableForBoost200ResponseInnerFramework""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_skills_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_skills_inner.py new file mode 100644 index 0000000000..5f2240fdbc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_get_skills_available_for_boost200_response_inner_skills_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_get_skills_available_for_boost200_response_inner_skills_inner import BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner + +class TestBoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner(unittest.TestCase): + """BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner: + """Test BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner` + """ + model = BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner() + if include_optional: + return BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '' + ) + else: + return BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner( + id = '', + statement = '', + type = 'skill', + status = 'active', + ) + """ + + def testBoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner(self): + """Test BoostGetSkillsAvailableForBoost200ResponseInnerSkillsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_admin_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_admin_request.py new file mode 100644 index 0000000000..4075fc7391 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_admin_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_remove_boost_admin_request import BoostRemoveBoostAdminRequest + +class TestBoostRemoveBoostAdminRequest(unittest.TestCase): + """BoostRemoveBoostAdminRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostRemoveBoostAdminRequest: + """Test BoostRemoveBoostAdminRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostRemoveBoostAdminRequest` + """ + model = BoostRemoveBoostAdminRequest() + if include_optional: + return BoostRemoveBoostAdminRequest( + uri = '', + profile_id = '' + ) + else: + return BoostRemoveBoostAdminRequest( + uri = '', + profile_id = '', + ) + """ + + def testBoostRemoveBoostAdminRequest(self): + """Test BoostRemoveBoostAdminRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_parent_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_parent_request.py new file mode 100644 index 0000000000..3a1c2e5fa7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_remove_boost_parent_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_remove_boost_parent_request import BoostRemoveBoostParentRequest + +class TestBoostRemoveBoostParentRequest(unittest.TestCase): + """BoostRemoveBoostParentRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostRemoveBoostParentRequest: + """Test BoostRemoveBoostParentRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostRemoveBoostParentRequest` + """ + model = BoostRemoveBoostParentRequest() + if include_optional: + return BoostRemoveBoostParentRequest( + parent_uri = '', + child_uri = '' + ) + else: + return BoostRemoveBoostParentRequest( + parent_uri = '', + child_uri = '', + ) + """ + + def testBoostRemoveBoostParentRequest(self): + """Test BoostRemoveBoostParentRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response.py new file mode 100644 index 0000000000..9c09480331 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost200_response import BoostSearchSkillsAvailableForBoost200Response + +class TestBoostSearchSkillsAvailableForBoost200Response(unittest.TestCase): + """BoostSearchSkillsAvailableForBoost200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoost200Response: + """Test BoostSearchSkillsAvailableForBoost200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoost200Response` + """ + model = BoostSearchSkillsAvailableForBoost200Response() + if include_optional: + return BoostSearchSkillsAvailableForBoost200Response( + records = [ + openapi_client.models.boost_search_skills_available_for_boost_200_response_records_inner.boost_searchSkillsAvailableForBoost_200_response_records_inner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', ) + ], + has_more = True, + cursor = '' + ) + else: + return BoostSearchSkillsAvailableForBoost200Response( + records = [ + openapi_client.models.boost_search_skills_available_for_boost_200_response_records_inner.boost_searchSkillsAvailableForBoost_200_response_records_inner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', ) + ], + has_more = True, + cursor = '', + ) + """ + + def testBoostSearchSkillsAvailableForBoost200Response(self): + """Test BoostSearchSkillsAvailableForBoost200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response_records_inner.py new file mode 100644 index 0000000000..4cb085433b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost200_response_records_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost200_response_records_inner import BoostSearchSkillsAvailableForBoost200ResponseRecordsInner + +class TestBoostSearchSkillsAvailableForBoost200ResponseRecordsInner(unittest.TestCase): + """BoostSearchSkillsAvailableForBoost200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoost200ResponseRecordsInner: + """Test BoostSearchSkillsAvailableForBoost200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoost200ResponseRecordsInner` + """ + model = BoostSearchSkillsAvailableForBoost200ResponseRecordsInner() + if include_optional: + return BoostSearchSkillsAvailableForBoost200ResponseRecordsInner( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '' + ) + else: + return BoostSearchSkillsAvailableForBoost200ResponseRecordsInner( + id = '', + statement = '', + type = 'skill', + status = 'active', + ) + """ + + def testBoostSearchSkillsAvailableForBoost200ResponseRecordsInner(self): + """Test BoostSearchSkillsAvailableForBoost200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request.py new file mode 100644 index 0000000000..36432c7ed7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request import BoostSearchSkillsAvailableForBoostRequest + +class TestBoostSearchSkillsAvailableForBoostRequest(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequest: + """Test BoostSearchSkillsAvailableForBoostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequest` + """ + model = BoostSearchSkillsAvailableForBoostRequest() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequest( + uri = '', + query = None, + limit = 1, + cursor = '' + ) + else: + return BoostSearchSkillsAvailableForBoostRequest( + uri = '', + query = None, + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequest(self): + """Test BoostSearchSkillsAvailableForBoostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query.py new file mode 100644 index 0000000000..eb2fb04b80 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query import BoostSearchSkillsAvailableForBoostRequestQuery + +class TestBoostSearchSkillsAvailableForBoostRequestQuery(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQuery: + """Test BoostSearchSkillsAvailableForBoostRequestQuery + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQuery` + """ + model = BoostSearchSkillsAvailableForBoostRequestQuery() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQuery( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of__or_inner.boost_searchSkillsAvailableForBoost_request_query_anyOf__or_inner( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + id = None, + statement = None, + description = None, + code = None, + type = None, + status = None + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQuery( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of__or_inner.boost_searchSkillsAvailableForBoost_request_query_anyOf__or_inner( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQuery(self): + """Test BoostSearchSkillsAvailableForBoostRequestQuery""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of.py new file mode 100644 index 0000000000..601e07f963 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of__or_inner.boost_searchSkillsAvailableForBoost_request_query_anyOf__or_inner( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of__or_inner.boost_searchSkillsAvailableForBoost_request_query_anyOf__or_inner( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of1.py new file mode 100644 index 0000000000..9e8f81d61b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of1.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOf1(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1( + id = None, + statement = None, + description = None, + code = None, + type = None, + status = None + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1( + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOf1(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner.py new file mode 100644 index 0000000000..76a61ed7a7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner( + id = None, + statement = None, + description = None, + code = None, + type = None, + status = None + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner( + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py new file mode 100644 index 0000000000..b71ab7ba6a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId( + var_in = [ + '' + ], + regex = '', + var_or = [ + null + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId( + var_in = [ + '' + ], + regex = '', + var_or = [ + null + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py new file mode 100644 index 0000000000..7056069f20 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf( + var_in = [ + '' + ], + regex = '' + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf( + var_in = [ + '' + ], + regex = '', + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py new file mode 100644 index 0000000000..b1a8125ff7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1( + var_or = [ + null + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1( + var_or = [ + null + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py new file mode 100644 index 0000000000..c2fdee0f60 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner( + var_in = [ + '' + ], + regex = '' + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner( + var_in = [ + '' + ], + regex = '', + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py new file mode 100644 index 0000000000..e553616ff9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf( + var_in = [ + '' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf( + var_in = [ + '' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py new file mode 100644 index 0000000000..6396886f90 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1( + regex = '' + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1( + regex = '', + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py new file mode 100644 index 0000000000..690ad7b62b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex( + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex( + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOf1Regex""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py new file mode 100644 index 0000000000..896c317fc2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of1_or_inner_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf( + var_in = [ + '' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf( + var_in = [ + '' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOf1OrInnerAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py new file mode 100644 index 0000000000..f90c80e99a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf( + var_in = [ + '' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf( + var_in = [ + '' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py new file mode 100644 index 0000000000..fed65003eb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1 import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1( + regex = '' + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1( + regex = '', + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py new file mode 100644 index 0000000000..d10f4edf3b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of1_regex import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex( + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex( + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOf1Regex""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py new file mode 100644 index 0000000000..77ae6b0893 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_id_any_of_any_of_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf( + var_in = [ + '' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf( + var_in = [ + '' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerIdAnyOfAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py new file mode 100644 index 0000000000..ac561c41fa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_statement import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement( + var_in = [ + '' + ], + regex = '', + var_or = [ + null + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement( + var_in = [ + '' + ], + regex = '', + var_or = [ + null + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatement""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py new file mode 100644 index 0000000000..04108b303f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus( + var_in = [ + 'active' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus( + var_in = [ + 'active' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py new file mode 100644 index 0000000000..992f293e77 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_or_inner_status_any_of import BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + +class TestBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf(unittest.TestCase): + """BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf: + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf` + """ + model = BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf() + if include_optional: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf( + var_in = [ + 'active' + ] + ) + else: + return BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf( + var_in = [ + 'active' + ], + ) + """ + + def testBoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf(self): + """Test BoostSearchSkillsAvailableForBoostRequestQueryAnyOfOrInnerStatusAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send200_response.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send200_response.py new file mode 100644 index 0000000000..9a1376f4c6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send200_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send200_response import BoostSend200Response + +class TestBoostSend200Response(unittest.TestCase): + """BoostSend200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSend200Response: + """Test BoostSend200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSend200Response` + """ + model = BoostSend200Response() + if include_optional: + return BoostSend200Response( + type = 'boost', + credential_uri = '', + uri = '' + ) + else: + return BoostSend200Response( + type = 'boost', + credential_uri = '', + uri = '', + ) + """ + + def testBoostSend200Response(self): + """Test BoostSend200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py new file mode 100644 index 0000000000..bbc4174730 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_schema_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + +class TestBoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner(unittest.TestCase): + """BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner: + """Test BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner` + """ + model = BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner() + if include_optional: + return BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner( + id = '', + type = '' + ) + else: + return BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner( + id = '', + type = '', + ) + """ + + def testBoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner(self): + """Test BoostSendBoostRequestCredentialAnyOfCredentialSchemaAnyOf1Inner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status.py index 507c126f62..e31359093d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status.py @@ -35,13 +35,13 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO model = BoostSendBoostRequestCredentialAnyOfCredentialStatus() if include_optional: return BoostSendBoostRequestCredentialAnyOfCredentialStatus( - type = '', - id = '' + id = '', + type = '' ) else: return BoostSendBoostRequestCredentialAnyOfCredentialStatus( - type = '', id = '', + type = '', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py similarity index 60% rename from packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status_any_of.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py index c7a82ac621..d36456d19f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_status_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_send_boost_request_credential_any_of_credential_status_any_of import BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_credential_subject_any_of1_inner import BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner -class TestBoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf(unittest.TestCase): - """BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf unit test stubs""" +class TestBoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner(unittest.TestCase): + """BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner unit test stubs""" def setUp(self): pass @@ -25,28 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf: - """Test BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf + def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner: + """Test BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf` + # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner` """ - model = BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf() + model = BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner() if include_optional: - return BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf( - type = '', + return BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner( id = '' ) else: - return BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf( - type = '', - id = '', + return BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner( ) """ - def testBoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf(self): - """Test BoostSendBoostRequestCredentialAnyOfCredentialStatusAnyOf""" + def testBoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner(self): + """Test BoostSendBoostRequestCredentialAnyOfCredentialSubjectAnyOf1Inner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence.py index d658b58172..280bf69f1e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence.py @@ -35,12 +35,21 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO model = BoostSendBoostRequestCredentialAnyOfEvidence() if include_optional: return BoostSendBoostRequestCredentialAnyOfEvidence( - type = None, - id = '' + id = '', + type = [ + '' + ], + name = '', + narrative = '', + description = '', + genre = '', + audience = '' ) else: return BoostSendBoostRequestCredentialAnyOfEvidence( - type = None, + type = [ + '' + ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of.py index 87f976389e..953b887fcb 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of.py @@ -35,12 +35,21 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO model = BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf() if include_optional: return BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf( - type = None, - id = '' + id = '', + type = [ + '' + ], + name = '', + narrative = '', + description = '', + genre = '', + audience = '' ) else: return BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf( - type = None, + type = [ + '' + ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py new file mode 100644 index 0000000000..595f8017d7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_evidence_any_of1_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_boost_request_credential_any_of_evidence_any_of1_inner import BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + +class TestBoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner(unittest.TestCase): + """BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner: + """Test BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner` + """ + model = BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner() + if include_optional: + return BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner( + id = '', + type = [ + '' + ], + name = '', + narrative = '', + description = '', + genre = '', + audience = '' + ) + else: + return BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner( + type = [ + '' + ], + ) + """ + + def testBoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner(self): + """Test BoostSendBoostRequestCredentialAnyOfEvidenceAnyOf1Inner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer.py index c929f18533..6de5c388fa 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer.py @@ -42,10 +42,10 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO phone = '', description = '', endorsement = [ - None + null ], image = None, - email = '', + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', address = openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address.boost_sendBoost_request_credential_anyOf_issuer_anyOf_address( type = null, address_country = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer_any_of.py index 48850f15bc..719806aa4e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_issuer_any_of.py @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO null ], image = None, - email = '', + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', address = openapi_client.models.boost_send_boost_request_credential_any_of_issuer_any_of_address.boost_sendBoost_request_credential_anyOf_issuer_anyOf_address( type = null, address_country = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_proof_any_of1_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_proof_any_of1_inner.py new file mode 100644 index 0000000000..58b1667c5a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_proof_any_of1_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_boost_request_credential_any_of_proof_any_of1_inner import BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + +class TestBoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner(unittest.TestCase): + """BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner: + """Test BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner` + """ + model = BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner() + if include_optional: + return BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner( + type = '', + created = '', + challenge = '', + domain = '', + nonce = '', + proof_purpose = '', + verification_method = '', + jws = '' + ) + else: + return BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner( + type = '', + created = '', + proof_purpose = '', + verification_method = '', + ) + """ + + def testBoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner(self): + """Test BoostSendBoostRequestCredentialAnyOfProofAnyOf1Inner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py similarity index 53% rename from packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use_any_of.py rename to packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py index b33b85b645..b2fd07d0aa 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.boost_send_boost_request_credential_any_of_terms_of_use_any_of import BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf +from openapi_client.models.boost_send_boost_request_credential_any_of_refresh_service_any_of1_inner import BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner -class TestBoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf(unittest.TestCase): - """BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf unit test stubs""" +class TestBoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner(unittest.TestCase): + """BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner unit test stubs""" def setUp(self): pass @@ -25,27 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf: - """Test BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf + def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner: + """Test BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf` + # uncomment below to create an instance of `BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner` """ - model = BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf() + model = BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner() if include_optional: - return BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf( - type = '', - id = '' + return BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner( + id = '', + type = '' ) else: - return BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf( + return BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner( type = '', ) """ - def testBoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf(self): - """Test BoostSendBoostRequestCredentialAnyOfTermsOfUseAnyOf""" + def testBoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner(self): + """Test BoostSendBoostRequestCredentialAnyOfRefreshServiceAnyOf1Inner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use.py index c0e77afb7d..213a730c66 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_boost_request_credential_any_of_terms_of_use.py @@ -35,8 +35,8 @@ def make_instance(self, include_optional) -> BoostSendBoostRequestCredentialAnyO model = BoostSendBoostRequestCredentialAnyOfTermsOfUse() if include_optional: return BoostSendBoostRequestCredentialAnyOfTermsOfUse( - type = '', - id = '' + id = '', + type = '' ) else: return BoostSendBoostRequestCredentialAnyOfTermsOfUse( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request.py new file mode 100644 index 0000000000..383d0ae46c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request import BoostSendRequest + +class TestBoostSendRequest(unittest.TestCase): + """BoostSendRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequest: + """Test BoostSendRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequest` + """ + model = BoostSendRequest() + if include_optional: + return BoostSendRequest( + type = 'boost', + recipient = '', + contract_uri = '', + template_uri = '', + template = openapi_client.models.boost_send_request_template.boost_send_request_template( + name = '', + type = '', + category = '', + status = 'DRAFT', + auto_connect_recipients = True, + meta = { + 'key' : null + }, + default_permissions = openapi_client.models.boost_send_request_template_default_permissions.boost_send_request_template_defaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + allow_anyone_to_create_children = True, + credential = null, + claim_permissions = openapi_client.models.boost_send_request_template_claim_permissions.boost_send_request_template_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + skills = [ + openapi_client.models.boost_send_request_template_skills_inner.boost_send_request_template_skills_inner( + framework_id = '', + id = '', ) + ], ), + signed_credential = { + 'key' : null + } + ) + else: + return BoostSendRequest( + type = 'boost', + recipient = '', + ) + """ + + def testBoostSendRequest(self): + """Test BoostSendRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template.py new file mode 100644 index 0000000000..f59fde31d7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template import BoostSendRequestTemplate + +class TestBoostSendRequestTemplate(unittest.TestCase): + """BoostSendRequestTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplate: + """Test BoostSendRequestTemplate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplate` + """ + model = BoostSendRequestTemplate() + if include_optional: + return BoostSendRequestTemplate( + name = '', + type = '', + category = '', + status = 'DRAFT', + auto_connect_recipients = True, + meta = { + 'key' : null + }, + default_permissions = openapi_client.models.boost_send_request_template_default_permissions.boost_send_request_template_defaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + allow_anyone_to_create_children = True, + credential = None, + claim_permissions = openapi_client.models.boost_send_request_template_claim_permissions.boost_send_request_template_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + skills = [ + openapi_client.models.boost_send_request_template_skills_inner.boost_send_request_template_skills_inner( + framework_id = '', + id = '', ) + ] + ) + else: + return BoostSendRequestTemplate( + credential = None, + ) + """ + + def testBoostSendRequestTemplate(self): + """Test BoostSendRequestTemplate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_claim_permissions.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_claim_permissions.py new file mode 100644 index 0000000000..76d24fe8b9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_claim_permissions.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_claim_permissions import BoostSendRequestTemplateClaimPermissions + +class TestBoostSendRequestTemplateClaimPermissions(unittest.TestCase): + """BoostSendRequestTemplateClaimPermissions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateClaimPermissions: + """Test BoostSendRequestTemplateClaimPermissions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateClaimPermissions` + """ + model = BoostSendRequestTemplateClaimPermissions() + if include_optional: + return BoostSendRequestTemplateClaimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True + ) + else: + return BoostSendRequestTemplateClaimPermissions( + ) + """ + + def testBoostSendRequestTemplateClaimPermissions(self): + """Test BoostSendRequestTemplateClaimPermissions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential.py new file mode 100644 index 0000000000..993fad6d3d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential import BoostSendRequestTemplateCredential + +class TestBoostSendRequestTemplateCredential(unittest.TestCase): + """BoostSendRequestTemplateCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredential: + """Test BoostSendRequestTemplateCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredential` + """ + model = BoostSendRequestTemplateCredential() + if include_optional: + return BoostSendRequestTemplateCredential( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None + ) + else: + return BoostSendRequestTemplateCredential( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testBoostSendRequestTemplateCredential(self): + """Test BoostSendRequestTemplateCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of.py new file mode 100644 index 0000000000..29997fe674 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of import BoostSendRequestTemplateCredentialAnyOf + +class TestBoostSendRequestTemplateCredentialAnyOf(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOf: + """Test BoostSendRequestTemplateCredentialAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOf` + """ + model = BoostSendRequestTemplateCredentialAnyOf() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOf( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None + ) + else: + return BoostSendRequestTemplateCredentialAnyOf( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOf(self): + """Test BoostSendRequestTemplateCredentialAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of1.py new file mode 100644 index 0000000000..bae0d24bc1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of1.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of1 import BoostSendRequestTemplateCredentialAnyOf1 + +class TestBoostSendRequestTemplateCredentialAnyOf1(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOf1: + """Test BoostSendRequestTemplateCredentialAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOf1` + """ + model = BoostSendRequestTemplateCredentialAnyOf1() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOf1( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None + ) + else: + return BoostSendRequestTemplateCredentialAnyOf1( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOf1(self): + """Test BoostSendRequestTemplateCredentialAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_context_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_context_inner.py new file mode 100644 index 0000000000..084d340739 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_context_inner.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_context_inner import BoostSendRequestTemplateCredentialAnyOfContextInner + +class TestBoostSendRequestTemplateCredentialAnyOfContextInner(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfContextInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfContextInner: + """Test BoostSendRequestTemplateCredentialAnyOfContextInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfContextInner` + """ + model = BoostSendRequestTemplateCredentialAnyOfContextInner() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfContextInner( + ) + else: + return BoostSendRequestTemplateCredentialAnyOfContextInner( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfContextInner(self): + """Test BoostSendRequestTemplateCredentialAnyOfContextInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_credential_subject.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_credential_subject.py new file mode 100644 index 0000000000..f6ef398678 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_credential_subject.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_credential_subject import BoostSendRequestTemplateCredentialAnyOfCredentialSubject + +class TestBoostSendRequestTemplateCredentialAnyOfCredentialSubject(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfCredentialSubject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfCredentialSubject: + """Test BoostSendRequestTemplateCredentialAnyOfCredentialSubject + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfCredentialSubject` + """ + model = BoostSendRequestTemplateCredentialAnyOfCredentialSubject() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfCredentialSubject( + id = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfCredentialSubject( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfCredentialSubject(self): + """Test BoostSendRequestTemplateCredentialAnyOfCredentialSubject""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_evidence.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_evidence.py new file mode 100644 index 0000000000..76b0992a9b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_evidence.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_evidence import BoostSendRequestTemplateCredentialAnyOfEvidence + +class TestBoostSendRequestTemplateCredentialAnyOfEvidence(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfEvidence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfEvidence: + """Test BoostSendRequestTemplateCredentialAnyOfEvidence + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfEvidence` + """ + model = BoostSendRequestTemplateCredentialAnyOfEvidence() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfEvidence( + id = '', + type = [ + '' + ], + name = '', + narrative = '', + description = '', + genre = '', + audience = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfEvidence( + type = [ + '' + ], + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfEvidence(self): + """Test BoostSendRequestTemplateCredentialAnyOfEvidence""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer.py new file mode 100644 index 0000000000..7137eb5a1f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer import BoostSendRequestTemplateCredentialAnyOfIssuer + +class TestBoostSendRequestTemplateCredentialAnyOfIssuer(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuer: + """Test BoostSendRequestTemplateCredentialAnyOfIssuer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuer` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuer() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuer( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address.boost_send_request_template_credential_anyOf_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo.boost_send_request_template_credential_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.boost_send_request_template_credential_anyOf_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuer( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuer(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of.py new file mode 100644 index 0000000000..d0548d4f88 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOf(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address.boost_send_request_template_credential_anyOf_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo.boost_send_request_template_credential_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.boost_send_request_template_credential_anyOf_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOf(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address.py new file mode 100644 index 0000000000..16b2077692 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress( + type = None, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo.boost_send_request_template_credential_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ) + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress( + type = None, + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddress""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..ea508edb8a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_address_geo.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_address_geo import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337 + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337, + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfAddressGeo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image.py new file mode 100644 index 0000000000..6598c6ae9b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage( + id = '', + type = '', + caption = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage( + id = '', + type = '', + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..2f0b2a1c58 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_image_any_of.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_image_any_of import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf( + id = '', + type = '', + caption = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf( + id = '', + type = '', + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfImageAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..0b8c6a7ea1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None, + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py new file mode 100644 index 0000000000..a3c246cc9c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_other_identifier_inner_identifier_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType( + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfOtherIdentifierInnerIdentifierType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_type.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_type.py new file mode 100644 index 0000000000..8324fab5ff --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_issuer_any_of_type.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_issuer_any_of_type import BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + +class TestBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType: + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType` + """ + model = BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType( + ) + else: + return BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType( + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType(self): + """Test BoostSendRequestTemplateCredentialAnyOfIssuerAnyOfType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_proof.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_proof.py new file mode 100644 index 0000000000..424db75f16 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_credential_any_of_proof.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_credential_any_of_proof import BoostSendRequestTemplateCredentialAnyOfProof + +class TestBoostSendRequestTemplateCredentialAnyOfProof(unittest.TestCase): + """BoostSendRequestTemplateCredentialAnyOfProof unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateCredentialAnyOfProof: + """Test BoostSendRequestTemplateCredentialAnyOfProof + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateCredentialAnyOfProof` + """ + model = BoostSendRequestTemplateCredentialAnyOfProof() + if include_optional: + return BoostSendRequestTemplateCredentialAnyOfProof( + type = '', + created = '', + challenge = '', + domain = '', + nonce = '', + proof_purpose = '', + verification_method = '', + jws = '' + ) + else: + return BoostSendRequestTemplateCredentialAnyOfProof( + type = '', + created = '', + proof_purpose = '', + verification_method = '', + ) + """ + + def testBoostSendRequestTemplateCredentialAnyOfProof(self): + """Test BoostSendRequestTemplateCredentialAnyOfProof""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_default_permissions.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_default_permissions.py new file mode 100644 index 0000000000..39adfa646d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_default_permissions.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_default_permissions import BoostSendRequestTemplateDefaultPermissions + +class TestBoostSendRequestTemplateDefaultPermissions(unittest.TestCase): + """BoostSendRequestTemplateDefaultPermissions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateDefaultPermissions: + """Test BoostSendRequestTemplateDefaultPermissions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateDefaultPermissions` + """ + model = BoostSendRequestTemplateDefaultPermissions() + if include_optional: + return BoostSendRequestTemplateDefaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True + ) + else: + return BoostSendRequestTemplateDefaultPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_view_analytics = True, + ) + """ + + def testBoostSendRequestTemplateDefaultPermissions(self): + """Test BoostSendRequestTemplateDefaultPermissions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_skills_inner.py b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_skills_inner.py new file mode 100644 index 0000000000..94fe4c7c72 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_send_request_template_skills_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_send_request_template_skills_inner import BoostSendRequestTemplateSkillsInner + +class TestBoostSendRequestTemplateSkillsInner(unittest.TestCase): + """BoostSendRequestTemplateSkillsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostSendRequestTemplateSkillsInner: + """Test BoostSendRequestTemplateSkillsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostSendRequestTemplateSkillsInner` + """ + model = BoostSendRequestTemplateSkillsInner() + if include_optional: + return BoostSendRequestTemplateSkillsInner( + framework_id = '', + id = '' + ) + else: + return BoostSendRequestTemplateSkillsInner( + framework_id = '', + id = '', + ) + """ + + def testBoostSendRequestTemplateSkillsInner(self): + """Test BoostSendRequestTemplateSkillsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request.py index 881c69e5ec..3da179c799 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request.py @@ -46,7 +46,20 @@ def make_instance(self, include_optional) -> BoostUpdateBoostRequest: 'key' : null }, allow_anyone_to_create_children = True, - credential = null, ) + credential = null, + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), ) ) else: return BoostUpdateBoostRequest( @@ -61,7 +74,20 @@ def make_instance(self, include_optional) -> BoostUpdateBoostRequest: 'key' : null }, allow_anyone_to_create_children = True, - credential = null, ), + credential = null, + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), ), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request_updates.py b/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request_updates.py index b5bc0c017f..b9ab702f8b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request_updates.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_update_boost_request_updates.py @@ -44,7 +44,20 @@ def make_instance(self, include_optional) -> BoostUpdateBoostRequestUpdates: 'key' : null }, allow_anyone_to_create_children = True, - credential = None + credential = None, + default_permissions = openapi_client.models.boost_create_boost_request_claim_permissions.boost_createBoost_request_claimPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ) ) else: return BoostUpdateBoostRequestUpdates( diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request.py b/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request.py new file mode 100644 index 0000000000..d6425f977f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_update_other_boost_permissions_request import BoostUpdateOtherBoostPermissionsRequest + +class TestBoostUpdateOtherBoostPermissionsRequest(unittest.TestCase): + """BoostUpdateOtherBoostPermissionsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostUpdateOtherBoostPermissionsRequest: + """Test BoostUpdateOtherBoostPermissionsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostUpdateOtherBoostPermissionsRequest` + """ + model = BoostUpdateOtherBoostPermissionsRequest() + if include_optional: + return BoostUpdateOtherBoostPermissionsRequest( + uri = '', + updates = openapi_client.models.boost_update_other_boost_permissions_request_updates.boost_updateOtherBoostPermissions_request_updates( + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ) + ) + else: + return BoostUpdateOtherBoostPermissionsRequest( + uri = '', + updates = openapi_client.models.boost_update_other_boost_permissions_request_updates.boost_updateOtherBoostPermissions_request_updates( + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + ) + """ + + def testBoostUpdateOtherBoostPermissionsRequest(self): + """Test BoostUpdateOtherBoostPermissionsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request_updates.py b/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request_updates.py new file mode 100644 index 0000000000..783371a62a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_boost_update_other_boost_permissions_request_updates.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.boost_update_other_boost_permissions_request_updates import BoostUpdateOtherBoostPermissionsRequestUpdates + +class TestBoostUpdateOtherBoostPermissionsRequestUpdates(unittest.TestCase): + """BoostUpdateOtherBoostPermissionsRequestUpdates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoostUpdateOtherBoostPermissionsRequestUpdates: + """Test BoostUpdateOtherBoostPermissionsRequestUpdates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BoostUpdateOtherBoostPermissionsRequestUpdates` + """ + model = BoostUpdateOtherBoostPermissionsRequestUpdates() + if include_optional: + return BoostUpdateOtherBoostPermissionsRequestUpdates( + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True + ) + else: + return BoostUpdateOtherBoostPermissionsRequestUpdates( + ) + """ + + def testBoostUpdateOtherBoostPermissionsRequestUpdates(self): + """Test BoostUpdateOtherBoostPermissionsRequestUpdates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_boosts_api.py b/packages/open-api-lcn-clients/python-client/test/test_boosts_api.py index dd993c2603..5a04bc76db 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_boosts_api.py +++ b/packages/open-api-lcn-clients/python-client/test/test_boosts_api.py @@ -33,6 +33,20 @@ def test_boost_add_boost_admin(self) -> None: """ pass + def test_boost_align_boost_skills(self) -> None: + """Test case for boost_align_boost_skills + + Align skills to boost + """ + pass + + def test_boost_attach_framework_to_boost(self) -> None: + """Test case for boost_attach_framework_to_boost + + Attach framework to boost + """ + pass + def test_boost_claim_boost_with_link(self) -> None: """Test case for boost_claim_boost_with_link @@ -96,6 +110,13 @@ def test_boost_delete_boost(self) -> None: """ pass + def test_boost_detach_framework_from_boost(self) -> None: + """Test case for boost_detach_framework_from_boost + + Detach framework from boost + """ + pass + def test_boost_generate_claim_link(self) -> None: """Test case for boost_generate_claim_link @@ -117,6 +138,13 @@ def test_boost_get_boost_admins(self) -> None: """ pass + def test_boost_get_boost_alignments(self) -> None: + """Test case for boost_get_boost_alignments + + Get OBv3 alignments for a boost + """ + pass + def test_boost_get_boost_children(self) -> None: """Test case for boost_get_boost_children @@ -124,6 +152,13 @@ def test_boost_get_boost_children(self) -> None: """ pass + def test_boost_get_boost_frameworks(self) -> None: + """Test case for boost_get_boost_frameworks + + List frameworks used by a boost (paginated) + """ + pass + def test_boost_get_boost_parents(self) -> None: """Test case for boost_get_boost_parents @@ -152,6 +187,13 @@ def test_boost_get_boost_recipients(self) -> None: """ pass + def test_boost_get_boost_recipients_with_children_count(self) -> None: + """Test case for boost_get_boost_recipients_with_children_count + + Count boost recipients with children + """ + pass + def test_boost_get_boost_siblings(self) -> None: """Test case for boost_get_boost_siblings @@ -208,6 +250,13 @@ def test_boost_get_paginated_boost_recipients(self) -> None: """ pass + def test_boost_get_paginated_boost_recipients_with_children(self) -> None: + """Test case for boost_get_paginated_boost_recipients_with_children + + Get boost recipients with children + """ + pass + def test_boost_get_paginated_boosts(self) -> None: """Test case for boost_get_paginated_boosts @@ -215,6 +264,13 @@ def test_boost_get_paginated_boosts(self) -> None: """ pass + def test_boost_get_skills_available_for_boost(self) -> None: + """Test case for boost_get_skills_available_for_boost + + List available skills for a boost + """ + pass + def test_boost_make_boost_parent(self) -> None: """Test case for boost_make_boost_parent @@ -236,6 +292,13 @@ def test_boost_remove_boost_parent(self) -> None: """ pass + def test_boost_search_skills_available_for_boost(self) -> None: + """Test case for boost_search_skills_available_for_boost + + Search available skills for a boost + """ + pass + def test_boost_send_boost(self) -> None: """Test case for boost_send_boost diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request.py index 15879ccf55..306b154470 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request.py @@ -35,11 +35,11 @@ def make_instance(self, include_optional) -> ClaimHookCreateClaimHookRequest: model = ClaimHookCreateClaimHookRequest() if include_optional: return ClaimHookCreateClaimHookRequest( - hook = None + hook = openapi_client.models.claim_hook_create_claim_hook_request_hook.claimHook_createClaimHook_request_hook() ) else: return ClaimHookCreateClaimHookRequest( - hook = None, + hook = openapi_client.models.claim_hook_create_claim_hook_request_hook.claimHook_createClaimHook_request_hook(), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook.py index 84625d7161..5f6d4ad3c0 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook.py +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook.py @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> ClaimHookCreateClaimHookRequestHook if include_optional: return ClaimHookCreateClaimHookRequestHook( type = 'GRANT_PERMISSIONS', - data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_1_data.claimHook_createClaimHook_request_hook_oneOf_1_data( + data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_2_data.claimHook_createClaimHook_request_hook_oneOf_2_data( claim_uri = '', target_uri = '', ) ) else: return ClaimHookCreateClaimHookRequestHook( type = 'GRANT_PERMISSIONS', - data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_1_data.claimHook_createClaimHook_request_hook_oneOf_1_data( + data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_2_data.claimHook_createClaimHook_request_hook_oneOf_2_data( claim_uri = '', target_uri = '', ), ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2.py new file mode 100644 index 0000000000..f66b7459c9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2 import ClaimHookCreateClaimHookRequestHookOneOf2 + +class TestClaimHookCreateClaimHookRequestHookOneOf2(unittest.TestCase): + """ClaimHookCreateClaimHookRequestHookOneOf2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookCreateClaimHookRequestHookOneOf2: + """Test ClaimHookCreateClaimHookRequestHookOneOf2 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookCreateClaimHookRequestHookOneOf2` + """ + model = ClaimHookCreateClaimHookRequestHookOneOf2() + if include_optional: + return ClaimHookCreateClaimHookRequestHookOneOf2( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_2_data.claimHook_createClaimHook_request_hook_oneOf_2_data( + claim_uri = '', + target_uri = '', ) + ) + else: + return ClaimHookCreateClaimHookRequestHookOneOf2( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_2_data.claimHook_createClaimHook_request_hook_oneOf_2_data( + claim_uri = '', + target_uri = '', ), + ) + """ + + def testClaimHookCreateClaimHookRequestHookOneOf2(self): + """Test ClaimHookCreateClaimHookRequestHookOneOf2""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2_data.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2_data.py new file mode 100644 index 0000000000..c58368ccd7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_create_claim_hook_request_hook_one_of2_data.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of2_data import ClaimHookCreateClaimHookRequestHookOneOf2Data + +class TestClaimHookCreateClaimHookRequestHookOneOf2Data(unittest.TestCase): + """ClaimHookCreateClaimHookRequestHookOneOf2Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookCreateClaimHookRequestHookOneOf2Data: + """Test ClaimHookCreateClaimHookRequestHookOneOf2Data + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookCreateClaimHookRequestHookOneOf2Data` + """ + model = ClaimHookCreateClaimHookRequestHookOneOf2Data() + if include_optional: + return ClaimHookCreateClaimHookRequestHookOneOf2Data( + claim_uri = '', + target_uri = '' + ) + else: + return ClaimHookCreateClaimHookRequestHookOneOf2Data( + claim_uri = '', + target_uri = '', + ) + """ + + def testClaimHookCreateClaimHookRequestHookOneOf2Data(self): + """Test ClaimHookCreateClaimHookRequestHookOneOf2Data""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner.py index aa7493b7f1..0cb07e8dd8 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner.py @@ -38,8 +38,8 @@ def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200Re id = '', created_at = '', updated_at = '', - type = 'ADD_ADMIN', - data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_1_data.claimHook_createClaimHook_request_hook_oneOf_1_data( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_2_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_2_data( claim_uri = '', target_uri = '', ) ) @@ -48,8 +48,8 @@ def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200Re id = '', created_at = '', updated_at = '', - type = 'ADD_ADMIN', - data = openapi_client.models.claim_hook_create_claim_hook_request_hook_one_of_1_data.claimHook_createClaimHook_request_hook_oneOf_1_data( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_2_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_2_data( claim_uri = '', target_uri = '', ), ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py new file mode 100644 index 0000000000..9f1d2ae739 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf( + type = 'GRANT_PERMISSIONS', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data( + claim_uri = '', + target_uri = '', + permissions = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data_permissions.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data_permissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), ) + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf( + type = 'GRANT_PERMISSIONS', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data( + claim_uri = '', + target_uri = '', + permissions = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data_permissions.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data_permissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), ), + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py new file mode 100644 index 0000000000..9c425b87b3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1( + type = 'ADD_ADMIN', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_1_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_1_data( + claim_uri = '', + target_uri = '', ) + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1( + type = 'ADD_ADMIN', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_1_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_1_data( + claim_uri = '', + target_uri = '', ), + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py new file mode 100644 index 0000000000..7035cdf637 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of1_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data( + claim_uri = '', + target_uri = '' + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data( + claim_uri = '', + target_uri = '', + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf1Data""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py new file mode 100644 index 0000000000..bf86d45ed9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2 import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_2_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_2_data( + claim_uri = '', + target_uri = '', ) + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2( + type = 'AUTO_CONNECT', + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_2_data.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_2_data( + claim_uri = '', + target_uri = '', ), + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py new file mode 100644 index 0000000000..20a57def0c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of2_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data( + claim_uri = '', + target_uri = '' + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data( + claim_uri = '', + target_uri = '', + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOf2Data""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py new file mode 100644 index 0000000000..40a069dff9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData( + claim_uri = '', + target_uri = '', + permissions = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data_permissions.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data_permissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ) + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData( + claim_uri = '', + target_uri = '', + permissions = openapi_client.models.claim_hook_get_claim_hooks_for_boost_200_response_records_inner_all_of_one_of_data_permissions.claimHook_getClaimHooksForBoost_200_response_records_inner_allOf_oneOf_data_permissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True, ), + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py new file mode 100644 index 0000000000..8d004898e4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.claim_hook_get_claim_hooks_for_boost200_response_records_inner_all_of_one_of_data_permissions import ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + +class TestClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions(unittest.TestCase): + """ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions: + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions` + """ + model = ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions() + if include_optional: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions( + role = '', + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = '', + can_create_children = '', + can_edit_children = '', + can_revoke_children = '', + can_manage_children_permissions = '', + can_manage_children_profiles = True, + can_view_analytics = True + ) + else: + return ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions( + ) + """ + + def testClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions(self): + """Test ClaimHookGetClaimHooksForBoost200ResponseRecordsInnerAllOfOneOfDataPermissions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost_request_query.py index 712d8bbb73..112ee7c34a 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost_request_query.py +++ b/packages/open-api-lcn-clients/python-client/test/test_claim_hook_get_claim_hooks_for_boost_request_query.py @@ -55,6 +55,23 @@ def make_instance(self, include_optional) -> ClaimHookGetClaimHooksForBoostReque ) else: return ClaimHookGetClaimHooksForBoostRequestQuery( + type = None, + data = openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data.claimHook_getClaimHooksForBoost_request_query_data( + claim_uri = null, + target_uri = null, + permissions = openapi_client.models.claim_hook_get_claim_hooks_for_boost_request_query_data_permissions.claimHook_getClaimHooksForBoost_request_query_data_permissions( + role = null, + can_edit = True, + can_issue = True, + can_revoke = True, + can_manage_permissions = True, + can_issue_children = null, + can_create_children = null, + can_edit_children = null, + can_revoke_children = null, + can_manage_children_permissions = null, + can_manage_children_profiles = True, + can_view_analytics = True, ), ), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_api.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_api.py index bb34e7524b..1f25f0d35f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_api.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_api.py @@ -33,6 +33,13 @@ def test_contact_methods_add_contact_method(self) -> None: """ pass + def test_contact_methods_create_contact_method_session(self) -> None: + """Test case for contact_methods_create_contact_method_session + + Create Contact Method Session + """ + pass + def test_contact_methods_get_my_contact_methods(self) -> None: """Test case for contact_methods_get_my_contact_methods @@ -47,6 +54,13 @@ def test_contact_methods_remove_contact_method(self) -> None: """ pass + def test_contact_methods_send_challenge(self) -> None: + """Test case for contact_methods_send_challenge + + Send Contact Method Challenge (OTP) + """ + pass + def test_contact_methods_set_primary_contact_method(self) -> None: """Test case for contact_methods_set_primary_contact_method @@ -61,6 +75,13 @@ def test_contact_methods_verify_contact_method(self) -> None: """ pass + def test_contact_methods_verify_with_credential(self) -> None: + """Test case for contact_methods_verify_with_credential + + Verify Contact Method With Credential + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session200_response.py new file mode 100644 index 0000000000..13a378853b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_create_contact_method_session200_response import ContactMethodsCreateContactMethodSession200Response + +class TestContactMethodsCreateContactMethodSession200Response(unittest.TestCase): + """ContactMethodsCreateContactMethodSession200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsCreateContactMethodSession200Response: + """Test ContactMethodsCreateContactMethodSession200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsCreateContactMethodSession200Response` + """ + model = ContactMethodsCreateContactMethodSession200Response() + if include_optional: + return ContactMethodsCreateContactMethodSession200Response( + session_jwt = '' + ) + else: + return ContactMethodsCreateContactMethodSession200Response( + session_jwt = '', + ) + """ + + def testContactMethodsCreateContactMethodSession200Response(self): + """Test ContactMethodsCreateContactMethodSession200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request.py new file mode 100644 index 0000000000..1b82479af6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_create_contact_method_session_request import ContactMethodsCreateContactMethodSessionRequest + +class TestContactMethodsCreateContactMethodSessionRequest(unittest.TestCase): + """ContactMethodsCreateContactMethodSessionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsCreateContactMethodSessionRequest: + """Test ContactMethodsCreateContactMethodSessionRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsCreateContactMethodSessionRequest` + """ + model = ContactMethodsCreateContactMethodSessionRequest() + if include_optional: + return ContactMethodsCreateContactMethodSessionRequest( + contact_method = openapi_client.models.contact_methods_create_contact_method_session_request_contact_method.contactMethods_createContactMethodSession_request_contactMethod( + value = '', + type = 'email', ), + otp_challenge = '' + ) + else: + return ContactMethodsCreateContactMethodSessionRequest( + contact_method = openapi_client.models.contact_methods_create_contact_method_session_request_contact_method.contactMethods_createContactMethodSession_request_contactMethod( + value = '', + type = 'email', ), + otp_challenge = '', + ) + """ + + def testContactMethodsCreateContactMethodSessionRequest(self): + """Test ContactMethodsCreateContactMethodSessionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request_contact_method.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request_contact_method.py new file mode 100644 index 0000000000..bed24eda3a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_create_contact_method_session_request_contact_method.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_create_contact_method_session_request_contact_method import ContactMethodsCreateContactMethodSessionRequestContactMethod + +class TestContactMethodsCreateContactMethodSessionRequestContactMethod(unittest.TestCase): + """ContactMethodsCreateContactMethodSessionRequestContactMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsCreateContactMethodSessionRequestContactMethod: + """Test ContactMethodsCreateContactMethodSessionRequestContactMethod + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsCreateContactMethodSessionRequestContactMethod` + """ + model = ContactMethodsCreateContactMethodSessionRequestContactMethod() + if include_optional: + return ContactMethodsCreateContactMethodSessionRequestContactMethod( + value = '', + type = 'email' + ) + else: + return ContactMethodsCreateContactMethodSessionRequestContactMethod( + value = '', + type = 'email', + ) + """ + + def testContactMethodsCreateContactMethodSessionRequestContactMethod(self): + """Test ContactMethodsCreateContactMethodSessionRequestContactMethod""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_get_my_contact_methods200_response_inner_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_get_my_contact_methods200_response_inner_one_of.py index 50de591633..fc1fce4e85 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_get_my_contact_methods200_response_inner_one_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_get_my_contact_methods200_response_inner_one_of.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ContactMethodsGetMyContactMethods20 if include_optional: return ContactMethodsGetMyContactMethods200ResponseInnerOneOf( type = 'email', - value = '', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', id = '', is_verified = True, verified_at = '', @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> ContactMethodsGetMyContactMethods20 else: return ContactMethodsGetMyContactMethods200ResponseInnerOneOf( type = 'email', - value = '', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', id = '', is_verified = True, is_primary = True, diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_remove_contact_method_request.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_remove_contact_method_request.py new file mode 100644 index 0000000000..da6a8bbb8d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_remove_contact_method_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_remove_contact_method_request import ContactMethodsRemoveContactMethodRequest + +class TestContactMethodsRemoveContactMethodRequest(unittest.TestCase): + """ContactMethodsRemoveContactMethodRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsRemoveContactMethodRequest: + """Test ContactMethodsRemoveContactMethodRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsRemoveContactMethodRequest` + """ + model = ContactMethodsRemoveContactMethodRequest() + if include_optional: + return ContactMethodsRemoveContactMethodRequest( + id = '' + ) + else: + return ContactMethodsRemoveContactMethodRequest( + id = '', + ) + """ + + def testContactMethodsRemoveContactMethodRequest(self): + """Test ContactMethodsRemoveContactMethodRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_set_primary_contact_method200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge200_response.py similarity index 56% rename from packages/open-api-lcn-clients/python-client/test/test_contact_methods_set_primary_contact_method200_response.py rename to packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge200_response.py index 975bf90f37..7cd0013b6d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_set_primary_contact_method200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge200_response.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.contact_methods_set_primary_contact_method200_response import ContactMethodsSetPrimaryContactMethod200Response +from openapi_client.models.contact_methods_send_challenge200_response import ContactMethodsSendChallenge200Response -class TestContactMethodsSetPrimaryContactMethod200Response(unittest.TestCase): - """ContactMethodsSetPrimaryContactMethod200Response unit test stubs""" +class TestContactMethodsSendChallenge200Response(unittest.TestCase): + """ContactMethodsSendChallenge200Response unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ContactMethodsSetPrimaryContactMethod200Response: - """Test ContactMethodsSetPrimaryContactMethod200Response + def make_instance(self, include_optional) -> ContactMethodsSendChallenge200Response: + """Test ContactMethodsSendChallenge200Response include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ContactMethodsSetPrimaryContactMethod200Response` + # uncomment below to create an instance of `ContactMethodsSendChallenge200Response` """ - model = ContactMethodsSetPrimaryContactMethod200Response() + model = ContactMethodsSendChallenge200Response() if include_optional: - return ContactMethodsSetPrimaryContactMethod200Response( + return ContactMethodsSendChallenge200Response( message = '' ) else: - return ContactMethodsSetPrimaryContactMethod200Response( + return ContactMethodsSendChallenge200Response( message = '', ) """ - def testContactMethodsSetPrimaryContactMethod200Response(self): - """Test ContactMethodsSetPrimaryContactMethod200Response""" + def testContactMethodsSendChallenge200Response(self): + """Test ContactMethodsSendChallenge200Response""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request.py new file mode 100644 index 0000000000..3c549718bf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_send_challenge_request import ContactMethodsSendChallengeRequest + +class TestContactMethodsSendChallengeRequest(unittest.TestCase): + """ContactMethodsSendChallengeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsSendChallengeRequest: + """Test ContactMethodsSendChallengeRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsSendChallengeRequest` + """ + model = ContactMethodsSendChallengeRequest() + if include_optional: + return ContactMethodsSendChallengeRequest( + value = '', + type = 'email', + configuration = openapi_client.models.contact_methods_send_challenge_request_configuration.contactMethods_sendChallenge_request_configuration( + publishable_key = '', ) + ) + else: + return ContactMethodsSendChallengeRequest( + value = '', + type = 'email', + configuration = openapi_client.models.contact_methods_send_challenge_request_configuration.contactMethods_sendChallenge_request_configuration( + publishable_key = '', ), + ) + """ + + def testContactMethodsSendChallengeRequest(self): + """Test ContactMethodsSendChallengeRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request_configuration.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request_configuration.py new file mode 100644 index 0000000000..9116743f27 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_send_challenge_request_configuration.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_send_challenge_request_configuration import ContactMethodsSendChallengeRequestConfiguration + +class TestContactMethodsSendChallengeRequestConfiguration(unittest.TestCase): + """ContactMethodsSendChallengeRequestConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsSendChallengeRequestConfiguration: + """Test ContactMethodsSendChallengeRequestConfiguration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsSendChallengeRequestConfiguration` + """ + model = ContactMethodsSendChallengeRequestConfiguration() + if include_optional: + return ContactMethodsSendChallengeRequestConfiguration( + publishable_key = '' + ) + else: + return ContactMethodsSendChallengeRequestConfiguration( + publishable_key = '', + ) + """ + + def testContactMethodsSendChallengeRequestConfiguration(self): + """Test ContactMethodsSendChallengeRequestConfiguration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response.py new file mode 100644 index 0000000000..9f4b6342e6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_verify_with_credential200_response import ContactMethodsVerifyWithCredential200Response + +class TestContactMethodsVerifyWithCredential200Response(unittest.TestCase): + """ContactMethodsVerifyWithCredential200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsVerifyWithCredential200Response: + """Test ContactMethodsVerifyWithCredential200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsVerifyWithCredential200Response` + """ + model = ContactMethodsVerifyWithCredential200Response() + if include_optional: + return ContactMethodsVerifyWithCredential200Response( + message = '', + contact_method = openapi_client.models.contact_methods_verify_with_credential_200_response_contact_method.contactMethods_verifyWithCredential_200_response_contactMethod() + ) + else: + return ContactMethodsVerifyWithCredential200Response( + message = '', + contact_method = openapi_client.models.contact_methods_verify_with_credential_200_response_contact_method.contactMethods_verifyWithCredential_200_response_contactMethod(), + ) + """ + + def testContactMethodsVerifyWithCredential200Response(self): + """Test ContactMethodsVerifyWithCredential200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method.py new file mode 100644 index 0000000000..8ba112040c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method import ContactMethodsVerifyWithCredential200ResponseContactMethod + +class TestContactMethodsVerifyWithCredential200ResponseContactMethod(unittest.TestCase): + """ContactMethodsVerifyWithCredential200ResponseContactMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsVerifyWithCredential200ResponseContactMethod: + """Test ContactMethodsVerifyWithCredential200ResponseContactMethod + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsVerifyWithCredential200ResponseContactMethod` + """ + model = ContactMethodsVerifyWithCredential200ResponseContactMethod() + if include_optional: + return ContactMethodsVerifyWithCredential200ResponseContactMethod( + type = 'email', + value = '', + id = '', + is_verified = True, + verified_at = '', + is_primary = True, + created_at = '' + ) + else: + return ContactMethodsVerifyWithCredential200ResponseContactMethod( + type = 'email', + value = '', + id = '', + is_verified = True, + is_primary = True, + created_at = '', + ) + """ + + def testContactMethodsVerifyWithCredential200ResponseContactMethod(self): + """Test ContactMethodsVerifyWithCredential200ResponseContactMethod""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of.py new file mode 100644 index 0000000000..84f6716a48 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + +class TestContactMethodsVerifyWithCredential200ResponseContactMethodOneOf(unittest.TestCase): + """ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf: + """Test ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf` + """ + model = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf() + if include_optional: + return ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf( + type = 'email', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + id = '', + is_verified = True, + verified_at = '', + is_primary = True, + created_at = '' + ) + else: + return ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf( + type = 'email', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + id = '', + is_verified = True, + is_primary = True, + created_at = '', + ) + """ + + def testContactMethodsVerifyWithCredential200ResponseContactMethodOneOf(self): + """Test ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of1.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of1.py new file mode 100644 index 0000000000..3e3b0da09d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential200_response_contact_method_one_of1.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contact_methods_verify_with_credential200_response_contact_method_one_of1 import ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + +class TestContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1(unittest.TestCase): + """ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1: + """Test ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1` + """ + model = ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1() + if include_optional: + return ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1( + type = 'phone', + value = '', + id = '', + is_verified = True, + verified_at = '', + is_primary = True, + created_at = '' + ) + else: + return ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1( + type = 'phone', + value = '', + id = '', + is_verified = True, + is_primary = True, + created_at = '', + ) + """ + + def testContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1(self): + """Test ContactMethodsVerifyWithCredential200ResponseContactMethodOneOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_contact_method200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential_request.py similarity index 52% rename from packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_contact_method200_response.py rename to packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential_request.py index 30ca97d271..7722a2ae39 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_contact_method200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contact_methods_verify_with_credential_request.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.contact_methods_verify_contact_method200_response import ContactMethodsVerifyContactMethod200Response +from openapi_client.models.contact_methods_verify_with_credential_request import ContactMethodsVerifyWithCredentialRequest -class TestContactMethodsVerifyContactMethod200Response(unittest.TestCase): - """ContactMethodsVerifyContactMethod200Response unit test stubs""" +class TestContactMethodsVerifyWithCredentialRequest(unittest.TestCase): + """ContactMethodsVerifyWithCredentialRequest unit test stubs""" def setUp(self): pass @@ -25,28 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ContactMethodsVerifyContactMethod200Response: - """Test ContactMethodsVerifyContactMethod200Response + def make_instance(self, include_optional) -> ContactMethodsVerifyWithCredentialRequest: + """Test ContactMethodsVerifyWithCredentialRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ContactMethodsVerifyContactMethod200Response` + # uncomment below to create an instance of `ContactMethodsVerifyWithCredentialRequest` """ - model = ContactMethodsVerifyContactMethod200Response() + model = ContactMethodsVerifyWithCredentialRequest() if include_optional: - return ContactMethodsVerifyContactMethod200Response( - message = '', - contact_method = None + return ContactMethodsVerifyWithCredentialRequest( + proof_of_login_jwt = '' ) else: - return ContactMethodsVerifyContactMethod200Response( - message = '', - contact_method = None, + return ContactMethodsVerifyWithCredentialRequest( + proof_of_login_jwt = '', ) """ - def testContactMethodsVerifyContactMethod200Response(self): - """Test ContactMethodsVerifyContactMethod200Response""" + def testContactMethodsVerifyWithCredentialRequest(self): + """Test ContactMethodsVerifyWithCredentialRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request.py index f83645f714..6851d18812 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request.py @@ -37,22 +37,22 @@ def make_instance(self, include_optional) -> ContractsAddAutoBoostsToContractReq return ContractsAddAutoBoostsToContractRequest( contract_uri = '', autoboosts = [ - openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner.contracts_createConsentFlowContract_request_autoboosts_inner( + openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner.contracts_addAutoBoostsToContract_request_autoboosts_inner( boost_uri = '', signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( - endpoint = '', - name = '', ), ) + name = '', + endpoint = '', ), ) ] ) else: return ContractsAddAutoBoostsToContractRequest( contract_uri = '', autoboosts = [ - openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner.contracts_createConsentFlowContract_request_autoboosts_inner( + openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner.contracts_addAutoBoostsToContract_request_autoboosts_inner( boost_uri = '', signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( - endpoint = '', - name = '', ), ) + name = '', + endpoint = '', ), ) ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py new file mode 100644 index 0000000000..6cbbbcc5fe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_add_auto_boosts_to_contract_request_autoboosts_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_add_auto_boosts_to_contract_request_autoboosts_inner import ContractsAddAutoBoostsToContractRequestAutoboostsInner + +class TestContractsAddAutoBoostsToContractRequestAutoboostsInner(unittest.TestCase): + """ContractsAddAutoBoostsToContractRequestAutoboostsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsAddAutoBoostsToContractRequestAutoboostsInner: + """Test ContractsAddAutoBoostsToContractRequestAutoboostsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsAddAutoBoostsToContractRequestAutoboostsInner` + """ + model = ContractsAddAutoBoostsToContractRequestAutoboostsInner() + if include_optional: + return ContractsAddAutoBoostsToContractRequestAutoboostsInner( + boost_uri = '', + signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( + name = '', + endpoint = '', ) + ) + else: + return ContractsAddAutoBoostsToContractRequestAutoboostsInner( + boost_uri = '', + signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( + name = '', + endpoint = '', ), + ) + """ + + def testContractsAddAutoBoostsToContractRequestAutoboostsInner(self): + """Test ContractsAddAutoBoostsToContractRequestAutoboostsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_api.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_api.py index f8be59dd20..59426d5cdb 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_api.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_api.py @@ -33,6 +33,13 @@ def test_contracts_add_auto_boosts_to_contract(self) -> None: """ pass + def test_contracts_cancel_contract_request(self) -> None: + """Test case for contracts_cancel_contract_request + + Cancels/removes a contract request + """ + pass + def test_contracts_consent_to_contract(self) -> None: """Test case for contracts_consent_to_contract @@ -54,6 +61,20 @@ def test_contracts_delete_consent_flow_contract(self) -> None: """ pass + def test_contracts_forward_contract_request_to_profile(self) -> None: + """Test case for contracts_forward_contract_request_to_profile + + Forward a contract request + """ + pass + + def test_contracts_get_all_contract_requests_for_profile(self) -> None: + """Test case for contracts_get_all_contract_requests_for_profile + + Get all contract requests for a target profile + """ + pass + def test_contracts_get_all_credentials_for_terms(self) -> None: """Test case for contracts_get_all_credentials_for_terms @@ -103,6 +124,13 @@ def test_contracts_get_consented_data_for_did(self) -> None: """ pass + def test_contracts_get_contract_sent_requests(self) -> None: + """Test case for contracts_get_contract_sent_requests + + Get requests sent for a given contract + """ + pass + def test_contracts_get_credentials_for_contract(self) -> None: """Test case for contracts_get_credentials_for_contract @@ -110,6 +138,13 @@ def test_contracts_get_credentials_for_contract(self) -> None: """ pass + def test_contracts_get_request_status_for_profile(self) -> None: + """Test case for contracts_get_request_status_for_profile + + Get request status for a specific profile under a contract + """ + pass + def test_contracts_get_terms_transaction_history(self) -> None: """Test case for contracts_get_terms_transaction_history @@ -117,6 +152,13 @@ def test_contracts_get_terms_transaction_history(self) -> None: """ pass + def test_contracts_mark_contract_request_as_seen(self) -> None: + """Test case for contracts_mark_contract_request_as_seen + + Marks a contract request as seen + """ + pass + def test_contracts_remove_auto_boosts_from_contract(self) -> None: """Test case for contracts_remove_auto_boosts_from_contract @@ -124,6 +166,20 @@ def test_contracts_remove_auto_boosts_from_contract(self) -> None: """ pass + def test_contracts_send_ai_insight_share_request(self) -> None: + """Test case for contracts_send_ai_insight_share_request + + AI Insights, consent flow share-notifcation request + """ + pass + + def test_contracts_send_ai_insights_contract_request(self) -> None: + """Test case for contracts_send_ai_insights_contract_request + + AI Insights, consent flow notifcation request + """ + pass + def test_contracts_sync_credentials_to_contract(self) -> None: """Test case for contracts_sync_credentials_to_contract diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_cancel_contract_request_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_cancel_contract_request_request.py new file mode 100644 index 0000000000..722bef2554 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_cancel_contract_request_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_cancel_contract_request_request import ContractsCancelContractRequestRequest + +class TestContractsCancelContractRequestRequest(unittest.TestCase): + """ContractsCancelContractRequestRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsCancelContractRequestRequest: + """Test ContractsCancelContractRequestRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsCancelContractRequestRequest` + """ + model = ContractsCancelContractRequestRequest() + if include_optional: + return ContractsCancelContractRequestRequest( + contract_uri = '', + target_profile_id = '' + ) + else: + return ContractsCancelContractRequestRequest( + contract_uri = '', + target_profile_id = '', + ) + """ + + def testContractsCancelContractRequestRequest(self): + """Test ContractsCancelContractRequestRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract200_response.py new file mode 100644 index 0000000000..99822495ab --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract200_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_consent_to_contract200_response import ContractsConsentToContract200Response + +class TestContractsConsentToContract200Response(unittest.TestCase): + """ContractsConsentToContract200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsConsentToContract200Response: + """Test ContractsConsentToContract200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsConsentToContract200Response` + """ + model = ContractsConsentToContract200Response() + if include_optional: + return ContractsConsentToContract200Response( + terms_uri = '', + redirect_url = '' + ) + else: + return ContractsConsentToContract200Response( + terms_uri = '', + ) + """ + + def testContractsConsentToContract200Response(self): + """Test ContractsConsentToContract200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request.py index 418a2c248e..beb4217aa9 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request.py @@ -42,7 +42,7 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequest: share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value.contracts_consentToContract_request_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -59,7 +59,8 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequest: ], ), contract_uri = '', expires_at = '', - one_time = True + one_time = True, + recipient_token = '' ) else: return ContractsConsentToContractRequest( @@ -70,7 +71,7 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequest: share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value.contracts_consentToContract_request_terms_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms.py index c1f356461b..85b9185b0b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms.py @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequestTe share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value.contracts_consentToContract_request_terms_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read.py index 887a5a9be1..b697ce9d51 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read.py @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequestTe share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value.contracts_consentToContract_request_terms_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials.py index 0da12052be..c1eaf54acf 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> ContractsConsentToContractRequestTe share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value.contracts_consentToContract_request_terms_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials_categories_value.py new file mode 100644 index 0000000000..ef3055bca3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_consent_to_contract_request_terms_read_credentials_categories_value.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials_categories_value import ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue + +class TestContractsConsentToContractRequestTermsReadCredentialsCategoriesValue(unittest.TestCase): + """ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue: + """Test ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue` + """ + model = ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue() + if include_optional: + return ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '' + ) + else: + return ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue( + ) + """ + + def testContractsConsentToContractRequestTermsReadCredentialsCategoriesValue(self): + """Test ContractsConsentToContractRequestTermsReadCredentialsCategoriesValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request.py index 6de60be2b8..7664342fe8 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request.py @@ -40,12 +40,14 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR anonymize = True, credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), write = openapi_client.models.contracts_create_consent_flow_contract_request_contract_write.contracts_createConsentFlowContract_request_contract_write(), ), name = '', @@ -61,8 +63,8 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner.contracts_createConsentFlowContract_request_autoboosts_inner( boost_uri = '', signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( - endpoint = '', - name = '', ), ) + name = '', + endpoint = '', ), ) ], writers = [ '' @@ -75,12 +77,14 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR anonymize = True, credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), write = openapi_client.models.contracts_create_consent_flow_contract_request_contract_write.contracts_createConsentFlowContract_request_contract_write(), ), name = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner.py index 0f7cc15a95..7a068ccee8 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner.py @@ -37,15 +37,15 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR return ContractsCreateConsentFlowContractRequestAutoboostsInner( boost_uri = '', signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( - endpoint = '', - name = '', ) + name = '', + endpoint = '', ) ) else: return ContractsCreateConsentFlowContractRequestAutoboostsInner( boost_uri = '', signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( - endpoint = '', - name = '', ), + name = '', + endpoint = '', ), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py index c13fa64ff7..7dee00f69a 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.py @@ -35,13 +35,13 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR model = ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority() if include_optional: return ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority( - endpoint = '', - name = '' + name = '', + endpoint = '' ) else: return ContractsCreateConsentFlowContractRequestAutoboostsInnerSigningAuthority( - endpoint = '', name = '', + endpoint = '', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract.py index 81203d7050..848e27502b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract.py @@ -39,22 +39,26 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR anonymize = True, credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), write = openapi_client.models.contracts_create_consent_flow_contract_request_contract_write.contracts_createConsentFlowContract_request_contract_write( credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ) ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read.py index e665547c65..001cfc59c4 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read.py @@ -38,12 +38,14 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR anonymize = True, credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) } ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials.py index 7009c61643..b8527865ea 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials.py @@ -36,8 +36,9 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR if include_optional: return ContractsCreateConsentFlowContractRequestContractReadCredentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) } ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py new file mode 100644 index 0000000000..413dad1141 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value import ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue + +class TestContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue(unittest.TestCase): + """ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue: + """Test ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue` + """ + model = ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue() + if include_optional: + return ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue( + required = True, + default_enabled = True + ) + else: + return ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue( + required = True, + ) + """ + + def testContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue(self): + """Test ContractsCreateConsentFlowContractRequestContractReadCredentialsCategoriesValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_write.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_write.py index d8adb319b5..20a4fcdff4 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_write.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_create_consent_flow_contract_request_contract_write.py @@ -37,12 +37,14 @@ def make_instance(self, include_optional) -> ContractsCreateConsentFlowContractR return ContractsCreateConsentFlowContractRequestContractWrite( credentials = openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials.contracts_createConsentFlowContract_request_contract_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.contracts_create_consent_flow_contract_request_contract_read_credentials_categories_value.contracts_createConsentFlowContract_request_contract_read_credentials_categories_value( + required = True, + default_enabled = True, ) } ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_forward_contract_request_to_profile_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_forward_contract_request_to_profile_request.py new file mode 100644 index 0000000000..147aab2fef --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_forward_contract_request_to_profile_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_forward_contract_request_to_profile_request import ContractsForwardContractRequestToProfileRequest + +class TestContractsForwardContractRequestToProfileRequest(unittest.TestCase): + """ContractsForwardContractRequestToProfileRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsForwardContractRequestToProfileRequest: + """Test ContractsForwardContractRequestToProfileRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsForwardContractRequestToProfileRequest` + """ + model = ContractsForwardContractRequestToProfileRequest() + if include_optional: + return ContractsForwardContractRequestToProfileRequest( + parent_profile_id = '', + target_profile_id = '', + contract_uri = '' + ) + else: + return ContractsForwardContractRequestToProfileRequest( + parent_profile_id = '', + target_profile_id = '', + ) + """ + + def testContractsForwardContractRequestToProfileRequest(self): + """Test ContractsForwardContractRequestToProfileRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner.py new file mode 100644 index 0000000000..5708f78630 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner import ContractsGetAllContractRequestsForProfile200ResponseInner + +class TestContractsGetAllContractRequestsForProfile200ResponseInner(unittest.TestCase): + """ContractsGetAllContractRequestsForProfile200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetAllContractRequestsForProfile200ResponseInner: + """Test ContractsGetAllContractRequestsForProfile200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetAllContractRequestsForProfile200ResponseInner` + """ + model = ContractsGetAllContractRequestsForProfile200ResponseInner() + if include_optional: + return ContractsGetAllContractRequestsForProfile200ResponseInner( + contract = openapi_client.models.contracts_get_all_contract_requests_for_profile_200_response_inner_contract.contracts_getAllContractRequestsForProfile_200_response_inner_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : + }, ), + personal = { + 'key' : + }, ), + uri = '', ), + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + read_status = 'unseen' + ) + else: + return ContractsGetAllContractRequestsForProfile200ResponseInner( + contract = openapi_client.models.contracts_get_all_contract_requests_for_profile_200_response_inner_contract.contracts_getAllContractRequestsForProfile_200_response_inner_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : + }, ), + personal = { + 'key' : + }, ), + uri = '', ), + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + ) + """ + + def testContractsGetAllContractRequestsForProfile200ResponseInner(self): + """Test ContractsGetAllContractRequestsForProfile200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner_contract.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner_contract.py new file mode 100644 index 0000000000..e7b1c91d81 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_all_contract_requests_for_profile200_response_inner_contract.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_all_contract_requests_for_profile200_response_inner_contract import ContractsGetAllContractRequestsForProfile200ResponseInnerContract + +class TestContractsGetAllContractRequestsForProfile200ResponseInnerContract(unittest.TestCase): + """ContractsGetAllContractRequestsForProfile200ResponseInnerContract unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetAllContractRequestsForProfile200ResponseInnerContract: + """Test ContractsGetAllContractRequestsForProfile200ResponseInnerContract + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetAllContractRequestsForProfile200ResponseInnerContract` + """ + model = ContractsGetAllContractRequestsForProfile200ResponseInnerContract() + if include_optional: + return ContractsGetAllContractRequestsForProfile200ResponseInnerContract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + uri = '' + ) + else: + return ContractsGetAllContractRequestsForProfile200ResponseInnerContract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + uri = '', + ) + """ + + def testContractsGetAllContractRequestsForProfile200ResponseInnerContract(self): + """Test ContractsGetAllContractRequestsForProfile200ResponseInnerContract""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response.py index 59ef475ed1..cb470330c7 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response.py @@ -35,27 +35,29 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R model = ContractsGetConsentFlowContract200Response() if include_optional: return ContractsGetConsentFlowContract200Response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -68,8 +70,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -81,8 +83,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', subtitle = '', description = '', @@ -99,7 +106,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -112,8 +119,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -125,33 +132,40 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ] ) else: return ContractsGetConsentFlowContract200Response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -164,8 +178,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -177,8 +191,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200R fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', uri = '', created_at = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract.py new file mode 100644 index 0000000000..7dd6718274 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract import ContractsGetConsentFlowContract200ResponseContract + +class TestContractsGetConsentFlowContract200ResponseContract(unittest.TestCase): + """ContractsGetConsentFlowContract200ResponseContract unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200ResponseContract: + """Test ContractsGetConsentFlowContract200ResponseContract + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentFlowContract200ResponseContract` + """ + model = ContractsGetConsentFlowContract200ResponseContract() + if include_optional: + return ContractsGetConsentFlowContract200ResponseContract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ) + ) + else: + return ContractsGetConsentFlowContract200ResponseContract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + ) + """ + + def testContractsGetConsentFlowContract200ResponseContract(self): + """Test ContractsGetConsentFlowContract200ResponseContract""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract_read.py new file mode 100644 index 0000000000..69ddb31efe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contract200_response_contract_read.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consent_flow_contract200_response_contract_read import ContractsGetConsentFlowContract200ResponseContractRead + +class TestContractsGetConsentFlowContract200ResponseContractRead(unittest.TestCase): + """ContractsGetConsentFlowContract200ResponseContractRead unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentFlowContract200ResponseContractRead: + """Test ContractsGetConsentFlowContract200ResponseContractRead + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentFlowContract200ResponseContractRead` + """ + model = ContractsGetConsentFlowContract200ResponseContractRead() + if include_optional: + return ContractsGetConsentFlowContract200ResponseContractRead( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + } + ) + else: + return ContractsGetConsentFlowContract200ResponseContractRead( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, + ) + """ + + def testContractsGetConsentFlowContract200ResponseContractRead(self): + """Test ContractsGetConsentFlowContract200ResponseContractRead""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response.py index cedb4571e1..feed27fc6a 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response.py @@ -39,20 +39,22 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 has_more = True, records = [ openapi_client.models.contracts_get_consent_flow_contracts_200_response_records_inner.contracts_getConsentFlowContracts_200_response_records_inner( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), @@ -75,7 +77,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -88,8 +90,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -101,8 +103,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ) ] ) @@ -111,20 +118,22 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 has_more = True, records = [ openapi_client.models.contracts_get_consent_flow_contracts_200_response_records_inner.contracts_getConsentFlowContracts_200_response_records_inner( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), @@ -147,7 +156,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -160,8 +169,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -173,8 +182,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ) ], ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response_records_inner.py index 686ac6db00..e87d1842c4 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consent_flow_contracts200_response_records_inner.py @@ -35,20 +35,22 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 model = ContractsGetConsentFlowContracts200ResponseRecordsInner() if include_optional: return ContractsGetConsentFlowContracts200ResponseRecordsInner( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), @@ -71,7 +73,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -84,8 +86,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -97,26 +99,33 @@ def make_instance(self, include_optional) -> ContractsGetConsentFlowContracts200 fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ] ) else: return ContractsGetConsentFlowContracts200ResponseRecordsInner( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response.py index 37e95d1803..7bb7eff8ec 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response.py @@ -41,14 +41,14 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re openapi_client.models.contracts_get_consented_contracts_200_response_records_inner.contracts_getConsentedContracts_200_response_records_inner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms.contracts_getConsentedContracts_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -71,27 +71,29 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], ), contract = openapi_client.models.contracts_get_consent_flow_contract_200_response.contracts_getConsentFlowContract_200_response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -104,8 +106,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -117,8 +119,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', subtitle = '', description = '', @@ -135,7 +142,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -148,9 +155,11 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ), uri = '', consenter = , @@ -164,14 +173,14 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re openapi_client.models.contracts_get_consented_contracts_200_response_records_inner.contracts_getConsentedContracts_200_response_records_inner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms.contracts_getConsentedContracts_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -194,27 +203,29 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], ), contract = openapi_client.models.contracts_get_consent_flow_contract_200_response.contracts_getConsentFlowContract_200_response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -227,8 +238,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -240,8 +251,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', subtitle = '', description = '', @@ -258,7 +274,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -271,9 +287,11 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ), uri = '', consenter = , diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner.py index c7a579798f..b8f9120a08 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner.py @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re return ContractsGetConsentedContracts200ResponseRecordsInner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms.contracts_getConsentedContracts_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -67,27 +67,29 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], ), contract = openapi_client.models.contracts_get_consent_flow_contract_200_response.contracts_getConsentFlowContract_200_response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -100,8 +102,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -113,8 +115,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', subtitle = '', description = '', @@ -131,7 +138,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -144,12 +151,14 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ), uri = '', - consenter = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + consenter = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -162,8 +171,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -175,20 +184,25 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), status = 'live' ) else: return ContractsGetConsentedContracts200ResponseRecordsInner( - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms.contracts_getConsentedContracts_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -211,27 +225,29 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], ), contract = openapi_client.models.contracts_get_consent_flow_contract_200_response.contracts_getConsentFlowContract_200_response( - contract = openapi_client.models.storage_resolve_200_response_any_of_any_of.storage_resolve_200_response_anyOf_anyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + contract = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract.contracts_getConsentFlowContract_200_response_contract( + read = openapi_client.models.contracts_get_consent_flow_contract_200_response_contract_read.contracts_getConsentFlowContract_200_response_contract_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { 'key' : }, ), personal = { 'key' : }, ), ), - owner = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + owner = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -244,8 +260,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -257,8 +273,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), name = '', subtitle = '', description = '', @@ -275,7 +296,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re '' ], writers = [ - openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -288,12 +309,14 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', role = '', - dob = '', ) + dob = '', + country = '', + approved = True, ) ], ), uri = '', - consenter = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + consenter = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -306,8 +329,8 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -319,8 +342,13 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContracts200Re fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), status = 'live', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms.py new file mode 100644 index 0000000000..7e63b8c51c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms import ContractsGetConsentedContracts200ResponseRecordsInnerTerms + +class TestContractsGetConsentedContracts200ResponseRecordsInnerTerms(unittest.TestCase): + """ContractsGetConsentedContracts200ResponseRecordsInnerTerms unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedContracts200ResponseRecordsInnerTerms: + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTerms + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedContracts200ResponseRecordsInnerTerms` + """ + model = ContractsGetConsentedContracts200ResponseRecordsInnerTerms() + if include_optional: + return ContractsGetConsentedContracts200ResponseRecordsInnerTerms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_1_write.storage_resolve_200_response_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_1_write_credentials.storage_resolve_200_response_anyOf_1_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, ), + denied_writers = [ + '' + ] + ) + else: + return ContractsGetConsentedContracts200ResponseRecordsInnerTerms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_1_write.storage_resolve_200_response_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_1_write_credentials.storage_resolve_200_response_anyOf_1_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, ), + ) + """ + + def testContractsGetConsentedContracts200ResponseRecordsInnerTerms(self): + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTerms""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read.py new file mode 100644 index 0000000000..acdae46373 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read import ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + +class TestContractsGetConsentedContracts200ResponseRecordsInnerTermsRead(unittest.TestCase): + """ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead: + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead` + """ + model = ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead() + if include_optional: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + } + ) + else: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, + ) + """ + + def testContractsGetConsentedContracts200ResponseRecordsInnerTermsRead(self): + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsRead""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py new file mode 100644 index 0000000000..d2302357fb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + +class TestContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials(unittest.TestCase): + """ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials: + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials` + """ + model = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials() + if include_optional: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + } + ) + else: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials( + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, + ) + """ + + def testContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials(self): + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py new file mode 100644 index 0000000000..0081c8ea8e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_contracts200_response_records_inner_terms_read_credentials_categories_value import ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue + +class TestContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue(unittest.TestCase): + """ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue: + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue` + """ + model = ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue() + if include_optional: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '' + ) + else: + return ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue( + ) + """ + + def testContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue(self): + """Test ContractsGetConsentedContracts200ResponseRecordsInnerTermsReadCredentialsCategoriesValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request.py index 4c7cb9d634..355560f717 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request.py @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContractsReque share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query.py index 291fb290d4..302e47a25b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query.py @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContractsReque share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read.py index 455f1d6952..553ee50be2 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read.py @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContractsReque share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials.py index fffc85a767..e093164b80 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> ContractsGetConsentedContractsReque share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials_categories_value.py new file mode 100644 index 0000000000..6b0bbbcdd3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_contracts_request_query_read_credentials_categories_value.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value import ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue + +class TestContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue(unittest.TestCase): + """ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue: + """Test ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue` + """ + model = ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue() + if include_optional: + return ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '' + ) + else: + return ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue( + ) + """ + + def testContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue(self): + """Test ContractsGetConsentedContractsRequestQueryReadCredentialsCategoriesValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response.py new file mode 100644 index 0000000000..3d8f7f5f9a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_data200_response import ContractsGetConsentedData200Response + +class TestContractsGetConsentedData200Response(unittest.TestCase): + """ContractsGetConsentedData200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedData200Response: + """Test ContractsGetConsentedData200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedData200Response` + """ + model = ContractsGetConsentedData200Response() + if include_optional: + return ContractsGetConsentedData200Response( + cursor = '', + has_more = True, + records = [ + openapi_client.models.contracts_get_consented_data_200_response_records_inner.contracts_getConsentedData_200_response_records_inner( + credentials = openapi_client.models.contracts_get_consented_data_for_contract_200_response_records_inner_credentials.contracts_getConsentedDataForContract_200_response_records_inner_credentials( + categories = { + 'key' : [ + '' + ] + }, ), + personal = { + 'key' : '' + }, + date = '', ) + ] + ) + else: + return ContractsGetConsentedData200Response( + has_more = True, + records = [ + openapi_client.models.contracts_get_consented_data_200_response_records_inner.contracts_getConsentedData_200_response_records_inner( + credentials = openapi_client.models.contracts_get_consented_data_for_contract_200_response_records_inner_credentials.contracts_getConsentedDataForContract_200_response_records_inner_credentials( + categories = { + 'key' : [ + '' + ] + }, ), + personal = { + 'key' : '' + }, + date = '', ) + ], + ) + """ + + def testContractsGetConsentedData200Response(self): + """Test ContractsGetConsentedData200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response_records_inner.py new file mode 100644 index 0000000000..99b2012c3f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_consented_data200_response_records_inner.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_consented_data200_response_records_inner import ContractsGetConsentedData200ResponseRecordsInner + +class TestContractsGetConsentedData200ResponseRecordsInner(unittest.TestCase): + """ContractsGetConsentedData200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetConsentedData200ResponseRecordsInner: + """Test ContractsGetConsentedData200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetConsentedData200ResponseRecordsInner` + """ + model = ContractsGetConsentedData200ResponseRecordsInner() + if include_optional: + return ContractsGetConsentedData200ResponseRecordsInner( + credentials = openapi_client.models.contracts_get_consented_data_for_contract_200_response_records_inner_credentials.contracts_getConsentedDataForContract_200_response_records_inner_credentials( + categories = { + 'key' : [ + '' + ] + }, ), + personal = { + 'key' : '' + }, + var_date = '' + ) + else: + return ContractsGetConsentedData200ResponseRecordsInner( + credentials = openapi_client.models.contracts_get_consented_data_for_contract_200_response_records_inner_credentials.contracts_getConsentedDataForContract_200_response_records_inner_credentials( + categories = { + 'key' : [ + '' + ] + }, ), + personal = { + 'key' : '' + }, + var_date = '', + ) + """ + + def testContractsGetConsentedData200ResponseRecordsInner(self): + """Test ContractsGetConsentedData200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_contract_sent_requests200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_contract_sent_requests200_response_inner.py new file mode 100644 index 0000000000..8497f96212 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_contract_sent_requests200_response_inner.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_contract_sent_requests200_response_inner import ContractsGetContractSentRequests200ResponseInner + +class TestContractsGetContractSentRequests200ResponseInner(unittest.TestCase): + """ContractsGetContractSentRequests200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetContractSentRequests200ResponseInner: + """Test ContractsGetContractSentRequests200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetContractSentRequests200ResponseInner` + """ + model = ContractsGetContractSentRequests200ResponseInner() + if include_optional: + return ContractsGetContractSentRequests200ResponseInner( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + read_status = 'unseen' + ) + else: + return ContractsGetContractSentRequests200ResponseInner( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + ) + """ + + def testContractsGetContractSentRequests200ResponseInner(self): + """Test ContractsGetContractSentRequests200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_request_status_for_profile200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_request_status_for_profile200_response.py new file mode 100644 index 0000000000..b2b22ccf5e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_request_status_for_profile200_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_request_status_for_profile200_response import ContractsGetRequestStatusForProfile200Response + +class TestContractsGetRequestStatusForProfile200Response(unittest.TestCase): + """ContractsGetRequestStatusForProfile200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetRequestStatusForProfile200Response: + """Test ContractsGetRequestStatusForProfile200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetRequestStatusForProfile200Response` + """ + model = ContractsGetRequestStatusForProfile200Response() + if include_optional: + return ContractsGetRequestStatusForProfile200Response( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + read_status = 'unseen' + ) + else: + return ContractsGetRequestStatusForProfile200Response( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + did = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + is_service_profile = True, + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True, ), + status = 'pending', + ) + """ + + def testContractsGetRequestStatusForProfile200Response(self): + """Test ContractsGetRequestStatusForProfile200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response.py index 957e4c6a76..34f10b6328 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response.py @@ -41,14 +41,14 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner.contracts_getTermsTransactionHistory_200_response_records_inner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms.contracts_getTermsTransactionHistory_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -59,8 +59,8 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory personal = { 'key' : '' }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_1_write.storage_resolve_200_response_anyOf_1_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_write_credentials.storage_resolve_200_response_anyOf_1_write_credentials( + write = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( categories = { 'key' : True }, ), @@ -85,14 +85,14 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner.contracts_getTermsTransactionHistory_200_response_records_inner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms.contracts_getTermsTransactionHistory_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -103,8 +103,8 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory personal = { 'key' : '' }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_1_write.storage_resolve_200_response_anyOf_1_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_write_credentials.storage_resolve_200_response_anyOf_1_write_credentials( + write = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( categories = { 'key' : True }, ), diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner.py index 34ce3311bd..696983c257 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner.py @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory return ContractsGetTermsTransactionHistory200ResponseRecordsInner( expires_at = '', one_time = True, - terms = openapi_client.models.storage_resolve_200_response_any_of_1.storage_resolve_200_response_anyOf_1( - read = openapi_client.models.storage_resolve_200_response_any_of_1_read.storage_resolve_200_response_anyOf_1_read( + terms = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms.contracts_getTermsTransactionHistory_200_response_records_inner_terms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials.storage_resolve_200_response_anyOf_1_read_credentials( + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( sharing = True, shared = [ '' @@ -55,8 +55,8 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory personal = { 'key' : '' }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_1_write.storage_resolve_200_response_anyOf_1_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_1_write_credentials.storage_resolve_200_response_anyOf_1_write_credentials( + write = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( categories = { 'key' : True }, ), diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms.py new file mode 100644 index 0000000000..69fc717577 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms + +class TestContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms(unittest.TestCase): + """ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms: + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms` + """ + model = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms() + if include_optional: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, ), + write = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, ), + denied_writers = [ + '' + ] + ) + else: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms( + read = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read.contracts_getConsentedContracts_200_response_records_inner_terms_read( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_200_response_records_inner_terms_read_credentials_categories_value.contracts_getConsentedContracts_200_response_records_inner_terms_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, ), + write = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, ), + ) + """ + + def testContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms(self): + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTerms""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write.py new file mode 100644 index 0000000000..3de4169719 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + +class TestContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite(unittest.TestCase): + """ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite: + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite` + """ + model = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite() + if include_optional: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + } + ) + else: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite( + credentials = openapi_client.models.contracts_get_terms_transaction_history_200_response_records_inner_terms_write_credentials.contracts_getTermsTransactionHistory_200_response_records_inner_terms_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, + ) + """ + + def testContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite(self): + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWrite""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py new file mode 100644 index 0000000000..cd34c844a6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history200_response_records_inner_terms_write_credentials import ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + +class TestContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials(unittest.TestCase): + """ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials: + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials` + """ + model = ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials() + if include_optional: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials( + categories = { + 'key' : True + } + ) + else: + return ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials( + categories = { + 'key' : True + }, + ) + """ + + def testContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials(self): + """Test ContractsGetTermsTransactionHistory200ResponseRecordsInnerTermsWriteCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request.py index 71e5614e2d..cf274ed32f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request.py @@ -41,13 +41,13 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory uri = '', query = openapi_client.models.contracts_get_terms_transaction_history_request_query.contracts_getTermsTransactionHistory_request_query( terms = openapi_client.models.contracts_get_terms_transaction_history_request_query_terms.contracts_getTermsTransactionHistory_request_query_terms( - read = openapi_client.models.contracts_get_consented_contracts_request_query_read.contracts_getConsentedContracts_request_query_read( + read = openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read.contracts_getTermsTransactionHistory_request_query_terms_read( anonymize = True, credentials = openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials.contracts_getConsentedContracts_request_query_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query.py index c69b1a49f8..0137873105 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query.py @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory if include_optional: return ContractsGetTermsTransactionHistoryRequestQuery( terms = openapi_client.models.contracts_get_terms_transaction_history_request_query_terms.contracts_getTermsTransactionHistory_request_query_terms( - read = openapi_client.models.contracts_get_consented_contracts_request_query_read.contracts_getConsentedContracts_request_query_read( + read = openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read.contracts_getTermsTransactionHistory_request_query_terms_read( anonymize = True, credentials = openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials.contracts_getConsentedContracts_request_query_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at.py new file mode 100644 index 0000000000..e85bc4add5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at import ContractsGetTermsTransactionHistoryRequestQueryExpiresAt + +class TestContractsGetTermsTransactionHistoryRequestQueryExpiresAt(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryExpiresAt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryExpiresAt: + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryExpiresAt` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryExpiresAt() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAt( + gt = '', + lt = '', + eq = '' + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAt( + gt = '', + lt = '', + eq = '', + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryExpiresAt(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of.py new file mode 100644 index 0000000000..2739a4a57f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + +class TestContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf: + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf( + gt = '', + lt = '' + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf( + gt = '', + lt = '', + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py new file mode 100644 index 0000000000..77405aa6bb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of1.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + +class TestContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1: + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1( + eq = '' + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1( + eq = '', + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py new file mode 100644 index 0000000000..1f927971a0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + +class TestContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf: + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf( + gt = '' + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf( + gt = '', + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py new file mode 100644 index 0000000000..138682401b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_expires_at_any_of_any_of1 import ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + +class TestContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1: + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1( + lt = '' + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1( + lt = '', + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryExpiresAtAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms.py index ef17474639..bc8549eaad 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms.py @@ -35,13 +35,13 @@ def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistory model = ContractsGetTermsTransactionHistoryRequestQueryTerms() if include_optional: return ContractsGetTermsTransactionHistoryRequestQueryTerms( - read = openapi_client.models.contracts_get_consented_contracts_request_query_read.contracts_getConsentedContracts_request_query_read( + read = openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read.contracts_getTermsTransactionHistory_request_query_terms_read( anonymize = True, credentials = openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials.contracts_getConsentedContracts_request_query_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms_read.py new file mode 100644 index 0000000000..86a591fea5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_get_terms_transaction_history_request_query_terms_read.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_get_terms_transaction_history_request_query_terms_read import ContractsGetTermsTransactionHistoryRequestQueryTermsRead + +class TestContractsGetTermsTransactionHistoryRequestQueryTermsRead(unittest.TestCase): + """ContractsGetTermsTransactionHistoryRequestQueryTermsRead unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsGetTermsTransactionHistoryRequestQueryTermsRead: + """Test ContractsGetTermsTransactionHistoryRequestQueryTermsRead + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsGetTermsTransactionHistoryRequestQueryTermsRead` + """ + model = ContractsGetTermsTransactionHistoryRequestQueryTermsRead() + if include_optional: + return ContractsGetTermsTransactionHistoryRequestQueryTermsRead( + anonymize = True, + credentials = openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials.contracts_getConsentedContracts_request_query_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + } + ) + else: + return ContractsGetTermsTransactionHistoryRequestQueryTermsRead( + ) + """ + + def testContractsGetTermsTransactionHistoryRequestQueryTermsRead(self): + """Test ContractsGetTermsTransactionHistoryRequestQueryTermsRead""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_mark_contract_request_as_seen_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_mark_contract_request_as_seen_request.py new file mode 100644 index 0000000000..717f478599 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_mark_contract_request_as_seen_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_mark_contract_request_as_seen_request import ContractsMarkContractRequestAsSeenRequest + +class TestContractsMarkContractRequestAsSeenRequest(unittest.TestCase): + """ContractsMarkContractRequestAsSeenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsMarkContractRequestAsSeenRequest: + """Test ContractsMarkContractRequestAsSeenRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsMarkContractRequestAsSeenRequest` + """ + model = ContractsMarkContractRequestAsSeenRequest() + if include_optional: + return ContractsMarkContractRequestAsSeenRequest( + contract_uri = '', + target_profile_id = '' + ) + else: + return ContractsMarkContractRequestAsSeenRequest( + contract_uri = '', + target_profile_id = '', + ) + """ + + def testContractsMarkContractRequestAsSeenRequest(self): + """Test ContractsMarkContractRequestAsSeenRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insight_share_request_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insight_share_request_request.py new file mode 100644 index 0000000000..539bddf134 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insight_share_request_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_send_ai_insight_share_request_request import ContractsSendAiInsightShareRequestRequest + +class TestContractsSendAiInsightShareRequestRequest(unittest.TestCase): + """ContractsSendAiInsightShareRequestRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsSendAiInsightShareRequestRequest: + """Test ContractsSendAiInsightShareRequestRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsSendAiInsightShareRequestRequest` + """ + model = ContractsSendAiInsightShareRequestRequest() + if include_optional: + return ContractsSendAiInsightShareRequestRequest( + child_profile_id = '', + target_profile_id = '', + share_link = '' + ) + else: + return ContractsSendAiInsightShareRequestRequest( + target_profile_id = '', + share_link = '', + ) + """ + + def testContractsSendAiInsightShareRequestRequest(self): + """Test ContractsSendAiInsightShareRequestRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insights_contract_request_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insights_contract_request_request.py new file mode 100644 index 0000000000..7d65889531 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_send_ai_insights_contract_request_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_send_ai_insights_contract_request_request import ContractsSendAiInsightsContractRequestRequest + +class TestContractsSendAiInsightsContractRequestRequest(unittest.TestCase): + """ContractsSendAiInsightsContractRequestRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsSendAiInsightsContractRequestRequest: + """Test ContractsSendAiInsightsContractRequestRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsSendAiInsightsContractRequestRequest` + """ + model = ContractsSendAiInsightsContractRequestRequest() + if include_optional: + return ContractsSendAiInsightsContractRequestRequest( + contract_uri = '', + target_profile_id = '', + share_link = '' + ) + else: + return ContractsSendAiInsightsContractRequestRequest( + contract_uri = '', + target_profile_id = '', + share_link = '', + ) + """ + + def testContractsSendAiInsightsContractRequestRequest(self): + """Test ContractsSendAiInsightsContractRequestRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request.py index ffee3bdc9b..14f9a7cb29 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request.py @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> ContractsUpdateConsentedContractTer if include_optional: return ContractsUpdateConsentedContractTermsRequest( uri = '', - terms = openapi_client.models.contracts_consent_to_contract_request_terms.contracts_consentToContract_request_terms( - read = openapi_client.models.contracts_consent_to_contract_request_terms_read.contracts_consentToContract_request_terms_read( + terms = openapi_client.models.contracts_update_consented_contract_terms_request_terms.contracts_updateConsentedContractTerms_request_terms( + read = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read.contracts_updateConsentedContractTerms_request_terms_read( anonymize = True, - credentials = openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials.contracts_consentToContract_request_terms_read_credentials( + credentials = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials.contracts_updateConsentedContractTerms_request_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' @@ -64,14 +64,14 @@ def make_instance(self, include_optional) -> ContractsUpdateConsentedContractTer else: return ContractsUpdateConsentedContractTermsRequest( uri = '', - terms = openapi_client.models.contracts_consent_to_contract_request_terms.contracts_consentToContract_request_terms( - read = openapi_client.models.contracts_consent_to_contract_request_terms_read.contracts_consentToContract_request_terms_read( + terms = openapi_client.models.contracts_update_consented_contract_terms_request_terms.contracts_updateConsentedContractTerms_request_terms( + read = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read.contracts_updateConsentedContractTerms_request_terms_read( anonymize = True, - credentials = openapi_client.models.contracts_consent_to_contract_request_terms_read_credentials.contracts_consentToContract_request_terms_read_credentials( + credentials = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials.contracts_updateConsentedContractTerms_request_terms_read_credentials( share_all = True, sharing = True, categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_1_read_credentials_categories_value( + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( sharing = True, shared = [ '' diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms.py new file mode 100644 index 0000000000..fa285b4d0d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_update_consented_contract_terms_request_terms import ContractsUpdateConsentedContractTermsRequestTerms + +class TestContractsUpdateConsentedContractTermsRequestTerms(unittest.TestCase): + """ContractsUpdateConsentedContractTermsRequestTerms unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsUpdateConsentedContractTermsRequestTerms: + """Test ContractsUpdateConsentedContractTermsRequestTerms + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsUpdateConsentedContractTermsRequestTerms` + """ + model = ContractsUpdateConsentedContractTermsRequestTerms() + if include_optional: + return ContractsUpdateConsentedContractTermsRequestTerms( + read = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read.contracts_updateConsentedContractTerms_request_terms_read( + anonymize = True, + credentials = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials.contracts_updateConsentedContractTerms_request_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + }, ), + write = openapi_client.models.contracts_consent_to_contract_request_terms_write.contracts_consentToContract_request_terms_write( + credentials = openapi_client.models.contracts_consent_to_contract_request_terms_write_credentials.contracts_consentToContract_request_terms_write_credentials( + categories = { + 'key' : True + }, ), + personal = { + 'key' : True + }, ), + denied_writers = [ + '' + ] + ) + else: + return ContractsUpdateConsentedContractTermsRequestTerms( + ) + """ + + def testContractsUpdateConsentedContractTermsRequestTerms(self): + """Test ContractsUpdateConsentedContractTermsRequestTerms""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read.py new file mode 100644 index 0000000000..830264c603 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read import ContractsUpdateConsentedContractTermsRequestTermsRead + +class TestContractsUpdateConsentedContractTermsRequestTermsRead(unittest.TestCase): + """ContractsUpdateConsentedContractTermsRequestTermsRead unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsUpdateConsentedContractTermsRequestTermsRead: + """Test ContractsUpdateConsentedContractTermsRequestTermsRead + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsUpdateConsentedContractTermsRequestTermsRead` + """ + model = ContractsUpdateConsentedContractTermsRequestTermsRead() + if include_optional: + return ContractsUpdateConsentedContractTermsRequestTermsRead( + anonymize = True, + credentials = openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials.contracts_updateConsentedContractTerms_request_terms_read_credentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + }, ), + personal = { + 'key' : '' + } + ) + else: + return ContractsUpdateConsentedContractTermsRequestTermsRead( + ) + """ + + def testContractsUpdateConsentedContractTermsRequestTermsRead(self): + """Test ContractsUpdateConsentedContractTermsRequestTermsRead""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read_credentials.py new file mode 100644 index 0000000000..316a621f3d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_update_consented_contract_terms_request_terms_read_credentials.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_update_consented_contract_terms_request_terms_read_credentials import ContractsUpdateConsentedContractTermsRequestTermsReadCredentials + +class TestContractsUpdateConsentedContractTermsRequestTermsReadCredentials(unittest.TestCase): + """ContractsUpdateConsentedContractTermsRequestTermsReadCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsUpdateConsentedContractTermsRequestTermsReadCredentials: + """Test ContractsUpdateConsentedContractTermsRequestTermsReadCredentials + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsUpdateConsentedContractTermsRequestTermsReadCredentials` + """ + model = ContractsUpdateConsentedContractTermsRequestTermsReadCredentials() + if include_optional: + return ContractsUpdateConsentedContractTermsRequestTermsReadCredentials( + share_all = True, + sharing = True, + categories = { + 'key' : openapi_client.models.contracts_get_consented_contracts_request_query_read_credentials_categories_value.contracts_getConsentedContracts_request_query_read_credentials_categories_value( + sharing = True, + shared = [ + '' + ], + share_all = True, + share_until = '', ) + } + ) + else: + return ContractsUpdateConsentedContractTermsRequestTermsReadCredentials( + ) + """ + + def testContractsUpdateConsentedContractTermsRequestTermsReadCredentials(self): + """Test ContractsUpdateConsentedContractTermsRequestTermsReadCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_request_credential.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_request_credential.py new file mode 100644 index 0000000000..b223f219f5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_request_credential.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.contracts_write_credential_to_contract_request_credential import ContractsWriteCredentialToContractRequestCredential + +class TestContractsWriteCredentialToContractRequestCredential(unittest.TestCase): + """ContractsWriteCredentialToContractRequestCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractsWriteCredentialToContractRequestCredential: + """Test ContractsWriteCredentialToContractRequestCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContractsWriteCredentialToContractRequestCredential` + """ + model = ContractsWriteCredentialToContractRequestCredential() + if include_optional: + return ContractsWriteCredentialToContractRequestCredential( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None, + protected = '', + iv = '', + ciphertext = '', + tag = '', + aad = '', + recipients = [ + openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner.credential_sendCredential_request_credential_anyOf_1_recipients_inner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', ) + ] + ) + else: + return ContractsWriteCredentialToContractRequestCredential( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + protected = '', + iv = '', + ciphertext = '', + tag = '', + ) + """ + + def testContractsWriteCredentialToContractRequestCredential(self): + """Test ContractsWriteCredentialToContractRequestCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_via_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_via_signing_authority_request.py index d20ae54ac8..351660aa6f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_via_signing_authority_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_contracts_write_credential_to_contract_via_signing_authority_request.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> ContractsWriteCredentialToContractV did = '', contract_uri = '', boost_uri = '', - signing_authority = openapi_client.models.boost_send_boost_via_signing_authority_request_signing_authority.boost_sendBoostViaSigningAuthority_request_signingAuthority( + signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( name = '', endpoint = '', ) ) @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> ContractsWriteCredentialToContractV did = '', contract_uri = '', boost_uri = '', - signing_authority = openapi_client.models.boost_send_boost_via_signing_authority_request_signing_authority.boost_sendBoostViaSigningAuthority_request_signingAuthority( + signing_authority = openapi_client.models.contracts_create_consent_flow_contract_request_autoboosts_inner_signing_authority.contracts_createConsentFlowContract_request_autoboosts_inner_signingAuthority( name = '', endpoint = '', ), ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request.py b/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request.py index 34014e03de..eb5dd04fb6 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request.py @@ -36,8 +36,11 @@ def make_instance(self, include_optional) -> CredentialAcceptCredentialRequest: if include_optional: return CredentialAcceptCredentialRequest( uri = '', - options = openapi_client.models.boost_send_boost_request_options.boost_sendBoost_request_options( - skip_notification = True, ) + options = openapi_client.models.credential_accept_credential_request_options.credential_acceptCredential_request_options( + skip_notification = True, + metadata = { + 'key' : null + }, ) ) else: return CredentialAcceptCredentialRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request_options.py b/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request_options.py new file mode 100644 index 0000000000..39f9c2a005 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_accept_credential_request_options.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.credential_accept_credential_request_options import CredentialAcceptCredentialRequestOptions + +class TestCredentialAcceptCredentialRequestOptions(unittest.TestCase): + """CredentialAcceptCredentialRequestOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialAcceptCredentialRequestOptions: + """Test CredentialAcceptCredentialRequestOptions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CredentialAcceptCredentialRequestOptions` + """ + model = CredentialAcceptCredentialRequestOptions() + if include_optional: + return CredentialAcceptCredentialRequestOptions( + skip_notification = True, + metadata = { + 'key' : null + } + ) + else: + return CredentialAcceptCredentialRequestOptions( + ) + """ + + def testCredentialAcceptCredentialRequestOptions(self): + """Test CredentialAcceptCredentialRequestOptions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_received_credentials200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_credential_received_credentials200_response_inner.py index 9c56eefb96..594038611e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_credential_received_credentials200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_received_credentials200_response_inner.py @@ -39,7 +39,10 @@ def make_instance(self, include_optional) -> CredentialReceivedCredentials200Res to = '', var_from = '', sent = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - received = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + received = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + metadata = { + 'key' : null + } ) else: return CredentialReceivedCredentials200ResponseInner( diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request.py index d91685ea3f..13dbb3aab6 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request.py @@ -35,7 +35,10 @@ def make_instance(self, include_optional) -> CredentialSendCredentialRequest: model = CredentialSendCredentialRequest() if include_optional: return CredentialSendCredentialRequest( - credential = None + credential = None, + metadata = { + 'key' : null + } ) else: return CredentialSendCredentialRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential.py index 6d2a63bdad..d2993c799a 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential.py +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential.py @@ -63,12 +63,12 @@ def make_instance(self, include_optional) -> CredentialSendCredentialRequestCred tag = '', aad = '', recipients = [ - openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner.boost_sendBoost_request_credential_anyOf_1_recipients_inner( - header = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header( + openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner.credential_sendCredential_request_credential_anyOf_1_recipients_inner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( alg = '', iv = '', tag = '', - epk = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header_epk.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header_epk( + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( kty = '', crv = '', x = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1.py new file mode 100644 index 0000000000..5173228875 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.credential_send_credential_request_credential_any_of1 import CredentialSendCredentialRequestCredentialAnyOf1 + +class TestCredentialSendCredentialRequestCredentialAnyOf1(unittest.TestCase): + """CredentialSendCredentialRequestCredentialAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialSendCredentialRequestCredentialAnyOf1: + """Test CredentialSendCredentialRequestCredentialAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CredentialSendCredentialRequestCredentialAnyOf1` + """ + model = CredentialSendCredentialRequestCredentialAnyOf1() + if include_optional: + return CredentialSendCredentialRequestCredentialAnyOf1( + protected = '', + iv = '', + ciphertext = '', + tag = '', + aad = '', + recipients = [ + openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner.credential_sendCredential_request_credential_anyOf_1_recipients_inner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', ) + ] + ) + else: + return CredentialSendCredentialRequestCredentialAnyOf1( + protected = '', + iv = '', + ciphertext = '', + tag = '', + ) + """ + + def testCredentialSendCredentialRequestCredentialAnyOf1(self): + """Test CredentialSendCredentialRequestCredentialAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner.py new file mode 100644 index 0000000000..e0813e3b8f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner + +class TestCredentialSendCredentialRequestCredentialAnyOf1RecipientsInner(unittest.TestCase): + """CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner: + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner` + """ + model = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner() + if include_optional: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '' + ) + else: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', + ) + """ + + def testCredentialSendCredentialRequestCredentialAnyOf1RecipientsInner(self): + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header.py new file mode 100644 index 0000000000..2fad814a46 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + +class TestCredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader(unittest.TestCase): + """CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader: + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader` + """ + model = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader() + if include_optional: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '' + ) + else: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader( + alg = '', + iv = '', + tag = '', + ) + """ + + def testCredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader(self): + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeader""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py new file mode 100644 index 0000000000..4d4fad0349 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_credential_send_credential_request_credential_any_of1_recipients_inner_header_epk.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.credential_send_credential_request_credential_any_of1_recipients_inner_header_epk import CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk + +class TestCredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk(unittest.TestCase): + """CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk: + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk` + """ + model = CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk() + if include_optional: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '' + ) + else: + return CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk( + ) + """ + + def testCredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk(self): + """Test CredentialSendCredentialRequestCredentialAnyOf1RecipientsInnerHeaderEpk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner.py new file mode 100644 index 0000000000..02625c6cf1 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner import DidMetadataAddDidMetadataRequestAuthenticationInner + +class TestDidMetadataAddDidMetadataRequestAuthenticationInner(unittest.TestCase): + """DidMetadataAddDidMetadataRequestAuthenticationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestAuthenticationInner: + """Test DidMetadataAddDidMetadataRequestAuthenticationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataAddDidMetadataRequestAuthenticationInner` + """ + model = DidMetadataAddDidMetadataRequestAuthenticationInner() + if include_optional: + return DidMetadataAddDidMetadataRequestAuthenticationInner( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.didMetadata_addDidMetadata_request_authentication_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataAddDidMetadataRequestAuthenticationInner( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataAddDidMetadataRequestAuthenticationInner(self): + """Test DidMetadataAddDidMetadataRequestAuthenticationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of.py new file mode 100644 index 0000000000..9360e4924a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + +class TestDidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf(unittest.TestCase): + """DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf: + """Test DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf` + """ + model = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf() + if include_optional: + return DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.didMetadata_addDidMetadata_request_authentication_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf(self): + """Test DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..b72d937d18 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_add_did_metadata_request_authentication_inner_any_of_public_key_jwk import DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk + +class TestDidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk(unittest.TestCase): + """DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk: + """Test DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk` + """ + model = DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk() + if include_optional: + return DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '' + ) + else: + return DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + ) + """ + + def testDidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk(self): + """Test DidMetadataAddDidMetadataRequestAuthenticationInnerAnyOfPublicKeyJwk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner.py index 2a4636ce16..38092a476e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner.py @@ -37,12 +37,17 @@ def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestSer return DidMetadataAddDidMetadataRequestServiceInner( id = '', type = None, - service_endpoint = None + service_endpoint = [ + null + ] ) else: return DidMetadataAddDidMetadataRequestServiceInner( id = '', type = None, + service_endpoint = [ + null + ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner_service_endpoint.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner_service_endpoint.py deleted file mode 100644 index ee0bdf3ff1..0000000000 --- a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_service_inner_service_endpoint.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - LearnCloud Network API - - API for interacting with LearnCloud Network - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from openapi_client.models.did_metadata_add_did_metadata_request_service_inner_service_endpoint import DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint - -class TestDidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint(unittest.TestCase): - """DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint: - """Test DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint` - """ - model = DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint() - if include_optional: - return DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint( - ) - else: - return DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint( - ) - """ - - def testDidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint(self): - """Test DidMetadataAddDidMetadataRequestServiceInnerServiceEndpoint""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner.py index 00669d438a..90260e9559 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestVer n = '', d = '', ), public_key_base58 = '', + public_key_multibase = '', block_chain_account_id = '' ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of.py index 2d3880e010..35a8e0aad3 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_add_did_metadata_request_verification_method_inner_any_of.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> DidMetadataAddDidMetadataRequestVer n = '', d = '', ), public_key_base58 = '', + public_key_multibase = '', block_chain_account_id = '' ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response.py new file mode 100644 index 0000000000..ddff31b609 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response import DidMetadataGetDidMetadata200Response + +class TestDidMetadataGetDidMetadata200Response(unittest.TestCase): + """DidMetadataGetDidMetadata200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200Response: + """Test DidMetadataGetDidMetadata200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200Response` + """ + model = DidMetadataGetDidMetadata200Response() + if include_optional: + return DidMetadataGetDidMetadata200Response( + context = [ + null + ], + id = '', + also_known_as = '', + controller = None, + verification_method = [ + null + ], + authentication = [ + null + ], + assertion_method = [ + null + ], + key_agreement = [ + null + ], + capability_invocation = [ + null + ], + capability_delegation = [ + null + ], + public_key = [ + null + ], + service = [ + { + 'key' : null + } + ], + proof = None + ) + else: + return DidMetadataGetDidMetadata200Response( + ) + """ + + def testDidMetadataGetDidMetadata200Response(self): + """Test DidMetadataGetDidMetadata200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner.py new file mode 100644 index 0000000000..6d0e7eae9e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner import DidMetadataGetDidMetadata200ResponseAuthenticationInner + +class TestDidMetadataGetDidMetadata200ResponseAuthenticationInner(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseAuthenticationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseAuthenticationInner: + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseAuthenticationInner` + """ + model = DidMetadataGetDidMetadata200ResponseAuthenticationInner() + if include_optional: + return DidMetadataGetDidMetadata200ResponseAuthenticationInner( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_get_did_metadata_200_response_authentication_inner_any_of_public_key_jwk.didMetadata_getDidMetadata_200_response_authentication_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseAuthenticationInner( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseAuthenticationInner(self): + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of.py new file mode 100644 index 0000000000..2cf19d0a22 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + +class TestDidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf: + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf` + """ + model = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf() + if include_optional: + return DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_get_did_metadata_200_response_authentication_inner_any_of_public_key_jwk.didMetadata_getDidMetadata_200_response_authentication_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf(self): + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..b581a8817c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_authentication_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk + +class TestDidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk: + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk` + """ + model = DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk() + if include_optional: + return DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk(self): + """Test DidMetadataGetDidMetadata200ResponseAuthenticationInnerAnyOfPublicKeyJwk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_service_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_service_inner.py new file mode 100644 index 0000000000..7d4b4b905f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_service_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_service_inner import DidMetadataGetDidMetadata200ResponseServiceInner + +class TestDidMetadataGetDidMetadata200ResponseServiceInner(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseServiceInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseServiceInner: + """Test DidMetadataGetDidMetadata200ResponseServiceInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseServiceInner` + """ + model = DidMetadataGetDidMetadata200ResponseServiceInner() + if include_optional: + return DidMetadataGetDidMetadata200ResponseServiceInner( + id = '', + type = None, + service_endpoint = [ + null + ] + ) + else: + return DidMetadataGetDidMetadata200ResponseServiceInner( + id = '', + type = None, + service_endpoint = [ + null + ], + ) + """ + + def testDidMetadataGetDidMetadata200ResponseServiceInner(self): + """Test DidMetadataGetDidMetadata200ResponseServiceInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner.py new file mode 100644 index 0000000000..f533d1bba2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner import DidMetadataGetDidMetadata200ResponseVerificationMethodInner + +class TestDidMetadataGetDidMetadata200ResponseVerificationMethodInner(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseVerificationMethodInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseVerificationMethodInner: + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseVerificationMethodInner` + """ + model = DidMetadataGetDidMetadata200ResponseVerificationMethodInner() + if include_optional: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInner( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_get_did_metadata_200_response_verification_method_inner_any_of_public_key_jwk.didMetadata_getDidMetadata_200_response_verificationMethod_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInner( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseVerificationMethodInner(self): + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py new file mode 100644 index 0000000000..bc13650c0f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + +class TestDidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf: + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf` + """ + model = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf() + if include_optional: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf( + context = [ + null + ], + id = '', + type = '', + controller = '', + public_key_jwk = openapi_client.models.did_metadata_get_did_metadata_200_response_verification_method_inner_any_of_public_key_jwk.didMetadata_getDidMetadata_200_response_verificationMethod_inner_anyOf_publicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + public_key_base58 = '', + public_key_multibase = '', + block_chain_account_id = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf( + id = '', + type = '', + controller = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf(self): + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py new file mode 100644 index 0000000000..6a53dfdd6c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_get_did_metadata200_response_verification_method_inner_any_of_public_key_jwk import DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk + +class TestDidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk(unittest.TestCase): + """DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk: + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk` + """ + model = DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk() + if include_optional: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '' + ) + else: + return DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk( + kty = '', + crv = '', + x = '', + ) + """ + + def testDidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk(self): + """Test DidMetadataGetDidMetadata200ResponseVerificationMethodInnerAnyOfPublicKeyJwk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_did_metadata_update_did_metadata_request_updates.py b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_update_did_metadata_request_updates.py new file mode 100644 index 0000000000..3dc075a69c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_did_metadata_update_did_metadata_request_updates.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.did_metadata_update_did_metadata_request_updates import DidMetadataUpdateDidMetadataRequestUpdates + +class TestDidMetadataUpdateDidMetadataRequestUpdates(unittest.TestCase): + """DidMetadataUpdateDidMetadataRequestUpdates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DidMetadataUpdateDidMetadataRequestUpdates: + """Test DidMetadataUpdateDidMetadataRequestUpdates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DidMetadataUpdateDidMetadataRequestUpdates` + """ + model = DidMetadataUpdateDidMetadataRequestUpdates() + if include_optional: + return DidMetadataUpdateDidMetadataRequestUpdates( + context = [ + null + ], + id = '', + also_known_as = '', + controller = None, + verification_method = [ + null + ], + authentication = [ + null + ], + assertion_method = [ + null + ], + key_agreement = [ + null + ], + capability_invocation = [ + null + ], + capability_delegation = [ + null + ], + public_key = [ + null + ], + service = [ + { + 'key' : null + } + ], + proof = None + ) + else: + return DidMetadataUpdateDidMetadataRequestUpdates( + ) + """ + + def testDidMetadataUpdateDidMetadataRequestUpdates(self): + """Test DidMetadataUpdateDidMetadataRequestUpdates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_error_badrequest_issues_inner.py b/packages/open-api-lcn-clients/python-client/test/test_error_badrequest_issues_inner.py new file mode 100644 index 0000000000..52bda3bf89 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_error_badrequest_issues_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.error_badrequest_issues_inner import ErrorBADREQUESTIssuesInner + +class TestErrorBADREQUESTIssuesInner(unittest.TestCase): + """ErrorBADREQUESTIssuesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ErrorBADREQUESTIssuesInner: + """Test ErrorBADREQUESTIssuesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ErrorBADREQUESTIssuesInner` + """ + model = ErrorBADREQUESTIssuesInner() + if include_optional: + return ErrorBADREQUESTIssuesInner( + message = '' + ) + else: + return ErrorBADREQUESTIssuesInner( + message = '', + ) + """ + + def testErrorBADREQUESTIssuesInner(self): + """Test ErrorBADREQUESTIssuesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_approve_guardian_request_request.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_approve_guardian_request_request.py new file mode 100644 index 0000000000..75f4dea110 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_approve_guardian_request_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_approve_guardian_request_request import InboxApproveGuardianRequestRequest + +class TestInboxApproveGuardianRequestRequest(unittest.TestCase): + """InboxApproveGuardianRequestRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxApproveGuardianRequestRequest: + """Test InboxApproveGuardianRequestRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxApproveGuardianRequestRequest` + """ + model = InboxApproveGuardianRequestRequest() + if include_optional: + return InboxApproveGuardianRequestRequest( + token = '' + ) + else: + return InboxApproveGuardianRequestRequest( + token = '', + ) + """ + + def testInboxApproveGuardianRequestRequest(self): + """Test InboxApproveGuardianRequestRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response.py new file mode 100644 index 0000000000..65bfeff8fe --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim200_response import InboxClaim200Response + +class TestInboxClaim200Response(unittest.TestCase): + """InboxClaim200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaim200Response: + """Test InboxClaim200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaim200Response` + """ + model = InboxClaim200Response() + if include_optional: + return InboxClaim200Response( + inbox_credential = openapi_client.models.inbox_claim_200_response_inbox_credential.inbox_claim_200_response_inboxCredential( + id = '', + credential = '', + is_signed = True, + current_status = 'PENDING', + is_accepted = True, + expires_at = '', + created_at = '', + issuer_did = '', + webhook_url = '', + signing_authority = openapi_client.models.inbox_claim_200_response_inbox_credential_signing_authority.inbox_claim_200_response_inboxCredential_signingAuthority( + endpoint = '', + name = '', ), ), + status = '', + recipient_did = '' + ) + else: + return InboxClaim200Response( + inbox_credential = openapi_client.models.inbox_claim_200_response_inbox_credential.inbox_claim_200_response_inboxCredential( + id = '', + credential = '', + is_signed = True, + current_status = 'PENDING', + is_accepted = True, + expires_at = '', + created_at = '', + issuer_did = '', + webhook_url = '', + signing_authority = openapi_client.models.inbox_claim_200_response_inbox_credential_signing_authority.inbox_claim_200_response_inboxCredential_signingAuthority( + endpoint = '', + name = '', ), ), + status = '', + ) + """ + + def testInboxClaim200Response(self): + """Test InboxClaim200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential.py new file mode 100644 index 0000000000..239f708ac9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim200_response_inbox_credential import InboxClaim200ResponseInboxCredential + +class TestInboxClaim200ResponseInboxCredential(unittest.TestCase): + """InboxClaim200ResponseInboxCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaim200ResponseInboxCredential: + """Test InboxClaim200ResponseInboxCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaim200ResponseInboxCredential` + """ + model = InboxClaim200ResponseInboxCredential() + if include_optional: + return InboxClaim200ResponseInboxCredential( + id = '', + credential = '', + is_signed = True, + current_status = 'PENDING', + is_accepted = True, + expires_at = '', + created_at = '', + issuer_did = '', + webhook_url = '', + signing_authority = openapi_client.models.inbox_claim_200_response_inbox_credential_signing_authority.inbox_claim_200_response_inboxCredential_signingAuthority( + endpoint = '', + name = '', ) + ) + else: + return InboxClaim200ResponseInboxCredential( + id = '', + credential = '', + is_signed = True, + current_status = 'PENDING', + expires_at = '', + created_at = '', + issuer_did = '', + ) + """ + + def testInboxClaim200ResponseInboxCredential(self): + """Test InboxClaim200ResponseInboxCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential_signing_authority.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential_signing_authority.py new file mode 100644 index 0000000000..291a16313c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim200_response_inbox_credential_signing_authority.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim200_response_inbox_credential_signing_authority import InboxClaim200ResponseInboxCredentialSigningAuthority + +class TestInboxClaim200ResponseInboxCredentialSigningAuthority(unittest.TestCase): + """InboxClaim200ResponseInboxCredentialSigningAuthority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaim200ResponseInboxCredentialSigningAuthority: + """Test InboxClaim200ResponseInboxCredentialSigningAuthority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaim200ResponseInboxCredentialSigningAuthority` + """ + model = InboxClaim200ResponseInboxCredentialSigningAuthority() + if include_optional: + return InboxClaim200ResponseInboxCredentialSigningAuthority( + endpoint = '', + name = '' + ) + else: + return InboxClaim200ResponseInboxCredentialSigningAuthority( + ) + """ + + def testInboxClaim200ResponseInboxCredentialSigningAuthority(self): + """Test InboxClaim200ResponseInboxCredentialSigningAuthority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request.py new file mode 100644 index 0000000000..442f59fdd5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim_request import InboxClaimRequest + +class TestInboxClaimRequest(unittest.TestCase): + """InboxClaimRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaimRequest: + """Test InboxClaimRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaimRequest` + """ + model = InboxClaimRequest() + if include_optional: + return InboxClaimRequest( + credential = None, + configuration = openapi_client.models.inbox_claim_request_configuration.inbox_claim_request_configuration( + publishable_key = '', + signing_authority_name = '', ) + ) + else: + return InboxClaimRequest( + credential = None, + ) + """ + + def testInboxClaimRequest(self): + """Test InboxClaimRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_configuration.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_configuration.py new file mode 100644 index 0000000000..76f2b0ec0f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_configuration.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim_request_configuration import InboxClaimRequestConfiguration + +class TestInboxClaimRequestConfiguration(unittest.TestCase): + """InboxClaimRequestConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaimRequestConfiguration: + """Test InboxClaimRequestConfiguration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaimRequestConfiguration` + """ + model = InboxClaimRequestConfiguration() + if include_optional: + return InboxClaimRequestConfiguration( + publishable_key = '', + signing_authority_name = '' + ) + else: + return InboxClaimRequestConfiguration( + publishable_key = '', + ) + """ + + def testInboxClaimRequestConfiguration(self): + """Test InboxClaimRequestConfiguration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_credential.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_credential.py new file mode 100644 index 0000000000..7b58f5f6d7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_claim_request_credential.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_claim_request_credential import InboxClaimRequestCredential + +class TestInboxClaimRequestCredential(unittest.TestCase): + """InboxClaimRequestCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxClaimRequestCredential: + """Test InboxClaimRequestCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxClaimRequestCredential` + """ + model = InboxClaimRequestCredential() + if include_optional: + return InboxClaimRequestCredential( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None, + verifiable_credential = None, + holder = '' + ) + else: + return InboxClaimRequestCredential( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testInboxClaimRequestCredential(self): + """Test InboxClaimRequestCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_finalize200_response.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_finalize200_response.py new file mode 100644 index 0000000000..2b013fb0b5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_finalize200_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_finalize200_response import InboxFinalize200Response + +class TestInboxFinalize200Response(unittest.TestCase): + """InboxFinalize200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxFinalize200Response: + """Test InboxFinalize200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxFinalize200Response` + """ + model = InboxFinalize200Response() + if include_optional: + return InboxFinalize200Response( + processed = 1.337, + claimed = 1.337, + errors = 1.337, + verifiable_credentials = [ + { + 'key' : null + } + ] + ) + else: + return InboxFinalize200Response( + processed = 1.337, + claimed = 1.337, + errors = 1.337, + verifiable_credentials = [ + { + 'key' : null + } + ], + ) + """ + + def testInboxFinalize200Response(self): + """Test InboxFinalize200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response.py index 890087656c..b21f5a6e60 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response.py @@ -42,12 +42,14 @@ def make_instance(self, include_optional) -> InboxGetMyIssuedCredentials200Respo credential = '', is_signed = True, current_status = 'PENDING', + is_accepted = True, expires_at = '', created_at = '', issuer_did = '', webhook_url = '', - signing_authority/endpoint = '', - signing_authority/name = '', ) + signing_authority = openapi_client.models.inbox_get_my_issued_credentials_200_response_records_inner_signing_authority.inbox_getMyIssuedCredentials_200_response_records_inner_signingAuthority( + endpoint = '', + name = '', ), ) ], cursor = '' ) @@ -60,12 +62,14 @@ def make_instance(self, include_optional) -> InboxGetMyIssuedCredentials200Respo credential = '', is_signed = True, current_status = 'PENDING', + is_accepted = True, expires_at = '', created_at = '', issuer_did = '', webhook_url = '', - signing_authority/endpoint = '', - signing_authority/name = '', ) + signing_authority = openapi_client.models.inbox_get_my_issued_credentials_200_response_records_inner_signing_authority.inbox_getMyIssuedCredentials_200_response_records_inner_signingAuthority( + endpoint = '', + name = '', ), ) ], ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner.py index 106e758fa8..3f5263014b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner.py @@ -39,12 +39,14 @@ def make_instance(self, include_optional) -> InboxGetMyIssuedCredentials200Respo credential = '', is_signed = True, current_status = 'PENDING', + is_accepted = True, expires_at = '', created_at = '', issuer_did = '', webhook_url = '', - signing_authority_endpoint = '', - signing_authority_name = '' + signing_authority = openapi_client.models.inbox_get_my_issued_credentials_200_response_records_inner_signing_authority.inbox_getMyIssuedCredentials_200_response_records_inner_signingAuthority( + endpoint = '', + name = '', ) ) else: return InboxGetMyIssuedCredentials200ResponseRecordsInner( diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py new file mode 100644 index 0000000000..c8ecdbe8a5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials200_response_records_inner_signing_authority.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_get_my_issued_credentials200_response_records_inner_signing_authority import InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority + +class TestInboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority(unittest.TestCase): + """InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority: + """Test InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority` + """ + model = InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority() + if include_optional: + return InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority( + endpoint = '', + name = '' + ) + else: + return InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority( + ) + """ + + def testInboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority(self): + """Test InboxGetMyIssuedCredentials200ResponseRecordsInnerSigningAuthority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request.py index 039e1063c9..b568f10da1 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request.py @@ -42,6 +42,7 @@ def make_instance(self, include_optional) -> InboxGetMyIssuedCredentialsRequest: current_status = 'PENDING', id = '', is_signed = True, + is_accepted = True, issuer_did = '', ), recipient = None ) diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_query.py index d091b8bf9c..143cc45d23 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_query.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_query.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> InboxGetMyIssuedCredentialsRequestQ current_status = 'PENDING', id = '', is_signed = True, + is_accepted = True, issuer_did = '' ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient.py new file mode 100644 index 0000000000..6125901619 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient import InboxGetMyIssuedCredentialsRequestRecipient + +class TestInboxGetMyIssuedCredentialsRequestRecipient(unittest.TestCase): + """InboxGetMyIssuedCredentialsRequestRecipient unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxGetMyIssuedCredentialsRequestRecipient: + """Test InboxGetMyIssuedCredentialsRequestRecipient + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxGetMyIssuedCredentialsRequestRecipient` + """ + model = InboxGetMyIssuedCredentialsRequestRecipient() + if include_optional: + return InboxGetMyIssuedCredentialsRequestRecipient( + type = 'email', + value = '' + ) + else: + return InboxGetMyIssuedCredentialsRequestRecipient( + type = 'email', + value = '', + ) + """ + + def testInboxGetMyIssuedCredentialsRequestRecipient(self): + """Test InboxGetMyIssuedCredentialsRequestRecipient""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient_one_of.py new file mode 100644 index 0000000000..0b2679bdfc --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_get_my_issued_credentials_request_recipient_one_of.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_get_my_issued_credentials_request_recipient_one_of import InboxGetMyIssuedCredentialsRequestRecipientOneOf + +class TestInboxGetMyIssuedCredentialsRequestRecipientOneOf(unittest.TestCase): + """InboxGetMyIssuedCredentialsRequestRecipientOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxGetMyIssuedCredentialsRequestRecipientOneOf: + """Test InboxGetMyIssuedCredentialsRequestRecipientOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxGetMyIssuedCredentialsRequestRecipientOneOf` + """ + model = InboxGetMyIssuedCredentialsRequestRecipientOneOf() + if include_optional: + return InboxGetMyIssuedCredentialsRequestRecipientOneOf( + type = 'phone', + value = '' + ) + else: + return InboxGetMyIssuedCredentialsRequestRecipientOneOf( + type = 'phone', + value = '', + ) + """ + + def testInboxGetMyIssuedCredentialsRequestRecipientOneOf(self): + """Test InboxGetMyIssuedCredentialsRequestRecipientOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response.py index 100033f096..934c962096 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> InboxIssue200Response: return InboxIssue200Response( issuance_id = '', status = 'PENDING', - recipient = None, + recipient = openapi_client.models.inbox_issue_200_response_recipient.inbox_issue_200_response_recipient(), claim_url = '', recipient_did = '' ) @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> InboxIssue200Response: return InboxIssue200Response( issuance_id = '', status = 'PENDING', - recipient = None, + recipient = openapi_client.models.inbox_issue_200_response_recipient.inbox_issue_200_response_recipient(), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of.py new file mode 100644 index 0000000000..c91c49b6ce --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_issue200_response_recipient_one_of import InboxIssue200ResponseRecipientOneOf + +class TestInboxIssue200ResponseRecipientOneOf(unittest.TestCase): + """InboxIssue200ResponseRecipientOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxIssue200ResponseRecipientOneOf: + """Test InboxIssue200ResponseRecipientOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxIssue200ResponseRecipientOneOf` + """ + model = InboxIssue200ResponseRecipientOneOf() + if include_optional: + return InboxIssue200ResponseRecipientOneOf( + type = 'email', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi' + ) + else: + return InboxIssue200ResponseRecipientOneOf( + type = 'email', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + ) + """ + + def testInboxIssue200ResponseRecipientOneOf(self): + """Test InboxIssue200ResponseRecipientOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of1.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of1.py new file mode 100644 index 0000000000..59524d633b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue200_response_recipient_one_of1.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_issue200_response_recipient_one_of1 import InboxIssue200ResponseRecipientOneOf1 + +class TestInboxIssue200ResponseRecipientOneOf1(unittest.TestCase): + """InboxIssue200ResponseRecipientOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxIssue200ResponseRecipientOneOf1: + """Test InboxIssue200ResponseRecipientOneOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxIssue200ResponseRecipientOneOf1` + """ + model = InboxIssue200ResponseRecipientOneOf1() + if include_optional: + return InboxIssue200ResponseRecipientOneOf1( + type = 'phone', + value = '' + ) + else: + return InboxIssue200ResponseRecipientOneOf1( + type = 'phone', + value = '', + ) + """ + + def testInboxIssue200ResponseRecipientOneOf1(self): + """Test InboxIssue200ResponseRecipientOneOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request.py index f8b85684f6..f327155eb5 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request.py @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> InboxIssueRequest: model = InboxIssueRequest() if include_optional: return InboxIssueRequest( - recipient = None, + recipient = openapi_client.models.inbox_issue_request_recipient.inbox_issue_request_recipient(), credential = None, configuration = openapi_client.models.inbox_issue_request_configuration.inbox_issue_request_configuration( signing_authority = openapi_client.models.inbox_issue_request_configuration_signing_authority.inbox_issue_request_configuration_signingAuthority( @@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> InboxIssueRequest: ) else: return InboxIssueRequest( - recipient = None, + recipient = openapi_client.models.inbox_issue_request_recipient.inbox_issue_request_recipient(), credential = None, ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request_recipient_one_of.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request_recipient_one_of.py index b777f6590c..87d0513b6c 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request_recipient_one_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_issue_request_recipient_one_of.py @@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> InboxIssueRequestRecipientOneOf: if include_optional: return InboxIssueRequestRecipientOneOf( type = 'email', - value = '' + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi' ) else: return InboxIssueRequestRecipientOneOf( type = 'email', - value = '', + value = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email200_response.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email200_response.py new file mode 100644 index 0000000000..3ad9e6b015 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email200_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_send_guardian_approval_email200_response import InboxSendGuardianApprovalEmail200Response + +class TestInboxSendGuardianApprovalEmail200Response(unittest.TestCase): + """InboxSendGuardianApprovalEmail200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxSendGuardianApprovalEmail200Response: + """Test InboxSendGuardianApprovalEmail200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxSendGuardianApprovalEmail200Response` + """ + model = InboxSendGuardianApprovalEmail200Response() + if include_optional: + return InboxSendGuardianApprovalEmail200Response( + message = '', + approval_url = '' + ) + else: + return InboxSendGuardianApprovalEmail200Response( + message = '', + approval_url = '', + ) + """ + + def testInboxSendGuardianApprovalEmail200Response(self): + """Test InboxSendGuardianApprovalEmail200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request.py new file mode 100644 index 0000000000..7180de8473 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_send_guardian_approval_email_request import InboxSendGuardianApprovalEmailRequest + +class TestInboxSendGuardianApprovalEmailRequest(unittest.TestCase): + """InboxSendGuardianApprovalEmailRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxSendGuardianApprovalEmailRequest: + """Test InboxSendGuardianApprovalEmailRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxSendGuardianApprovalEmailRequest` + """ + model = InboxSendGuardianApprovalEmailRequest() + if include_optional: + return InboxSendGuardianApprovalEmailRequest( + guardian_email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + ttl_hours = 0, + template = openapi_client.models.inbox_send_guardian_approval_email_request_template.inbox_sendGuardianApprovalEmail_request_template( + id = '', + model = { + 'key' : null + }, ) + ) + else: + return InboxSendGuardianApprovalEmailRequest( + guardian_email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + ) + """ + + def testInboxSendGuardianApprovalEmailRequest(self): + """Test InboxSendGuardianApprovalEmailRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request_template.py b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request_template.py new file mode 100644 index 0000000000..aebaebce7b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_inbox_send_guardian_approval_email_request_template.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.inbox_send_guardian_approval_email_request_template import InboxSendGuardianApprovalEmailRequestTemplate + +class TestInboxSendGuardianApprovalEmailRequestTemplate(unittest.TestCase): + """InboxSendGuardianApprovalEmailRequestTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InboxSendGuardianApprovalEmailRequestTemplate: + """Test InboxSendGuardianApprovalEmailRequestTemplate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InboxSendGuardianApprovalEmailRequestTemplate` + """ + model = InboxSendGuardianApprovalEmailRequestTemplate() + if include_optional: + return InboxSendGuardianApprovalEmailRequestTemplate( + id = '', + model = { + 'key' : null + } + ) + else: + return InboxSendGuardianApprovalEmailRequestTemplate( + ) + """ + + def testInboxSendGuardianApprovalEmailRequestTemplate(self): + """Test InboxSendGuardianApprovalEmailRequestTemplate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request.py new file mode 100644 index 0000000000..b2b3a972f0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_add_integration_request import IntegrationsAddIntegrationRequest + +class TestIntegrationsAddIntegrationRequest(unittest.TestCase): + """IntegrationsAddIntegrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsAddIntegrationRequest: + """Test IntegrationsAddIntegrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsAddIntegrationRequest` + """ + model = IntegrationsAddIntegrationRequest() + if include_optional: + return IntegrationsAddIntegrationRequest( + name = '', + description = '', + whitelisted_domains = [ + null + ] + ) + else: + return IntegrationsAddIntegrationRequest( + name = '', + ) + """ + + def testIntegrationsAddIntegrationRequest(self): + """Test IntegrationsAddIntegrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request_whitelisted_domains_inner.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request_whitelisted_domains_inner.py new file mode 100644 index 0000000000..fd529cb367 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_add_integration_request_whitelisted_domains_inner.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_add_integration_request_whitelisted_domains_inner import IntegrationsAddIntegrationRequestWhitelistedDomainsInner + +class TestIntegrationsAddIntegrationRequestWhitelistedDomainsInner(unittest.TestCase): + """IntegrationsAddIntegrationRequestWhitelistedDomainsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsAddIntegrationRequestWhitelistedDomainsInner: + """Test IntegrationsAddIntegrationRequestWhitelistedDomainsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsAddIntegrationRequestWhitelistedDomainsInner` + """ + model = IntegrationsAddIntegrationRequestWhitelistedDomainsInner() + if include_optional: + return IntegrationsAddIntegrationRequestWhitelistedDomainsInner( + ) + else: + return IntegrationsAddIntegrationRequestWhitelistedDomainsInner( + ) + """ + + def testIntegrationsAddIntegrationRequestWhitelistedDomainsInner(self): + """Test IntegrationsAddIntegrationRequestWhitelistedDomainsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_api.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_api.py new file mode 100644 index 0000000000..2bbbdd8a01 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_api.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.integrations_api import IntegrationsApi + + +class TestIntegrationsApi(unittest.TestCase): + """IntegrationsApi unit test stubs""" + + def setUp(self) -> None: + self.api = IntegrationsApi() + + def tearDown(self) -> None: + pass + + def test_integrations_add_integration(self) -> None: + """Test case for integrations_add_integration + + Create Integration + """ + pass + + def test_integrations_associate_integration_with_signing_authority(self) -> None: + """Test case for integrations_associate_integration_with_signing_authority + + Associate Integration with Signing Authority + """ + pass + + def test_integrations_count_integrations(self) -> None: + """Test case for integrations_count_integrations + + Count My Integrations + """ + pass + + def test_integrations_delete_integration(self) -> None: + """Test case for integrations_delete_integration + + Delete Integration + """ + pass + + def test_integrations_get_integration(self) -> None: + """Test case for integrations_get_integration + + Get Integration + """ + pass + + def test_integrations_get_integrations(self) -> None: + """Test case for integrations_get_integrations + + Get My Integrations + """ + pass + + def test_integrations_update_integration(self) -> None: + """Test case for integrations_update_integration + + Update Integration + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_associate_integration_with_signing_authority_request.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_associate_integration_with_signing_authority_request.py new file mode 100644 index 0000000000..321ad14519 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_associate_integration_with_signing_authority_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_associate_integration_with_signing_authority_request import IntegrationsAssociateIntegrationWithSigningAuthorityRequest + +class TestIntegrationsAssociateIntegrationWithSigningAuthorityRequest(unittest.TestCase): + """IntegrationsAssociateIntegrationWithSigningAuthorityRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsAssociateIntegrationWithSigningAuthorityRequest: + """Test IntegrationsAssociateIntegrationWithSigningAuthorityRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsAssociateIntegrationWithSigningAuthorityRequest` + """ + model = IntegrationsAssociateIntegrationWithSigningAuthorityRequest() + if include_optional: + return IntegrationsAssociateIntegrationWithSigningAuthorityRequest( + endpoint = '', + name = 'p', + did = '', + is_primary = True + ) + else: + return IntegrationsAssociateIntegrationWithSigningAuthorityRequest( + endpoint = '', + name = 'p', + did = '', + ) + """ + + def testIntegrationsAssociateIntegrationWithSigningAuthorityRequest(self): + """Test IntegrationsAssociateIntegrationWithSigningAuthorityRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_count_integrations_request.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_count_integrations_request.py new file mode 100644 index 0000000000..08341b7d13 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_count_integrations_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_count_integrations_request import IntegrationsCountIntegrationsRequest + +class TestIntegrationsCountIntegrationsRequest(unittest.TestCase): + """IntegrationsCountIntegrationsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsCountIntegrationsRequest: + """Test IntegrationsCountIntegrationsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsCountIntegrationsRequest` + """ + model = IntegrationsCountIntegrationsRequest() + if include_optional: + return IntegrationsCountIntegrationsRequest( + query = openapi_client.models.integrations_get_integrations_request_query.integrations_getIntegrations_request_query( + id = null, + name = null, + description = null, ) + ) + else: + return IntegrationsCountIntegrationsRequest( + ) + """ + + def testIntegrationsCountIntegrationsRequest(self): + """Test IntegrationsCountIntegrationsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integration200_response.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integration200_response.py new file mode 100644 index 0000000000..f1ccf2aec5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integration200_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_get_integration200_response import IntegrationsGetIntegration200Response + +class TestIntegrationsGetIntegration200Response(unittest.TestCase): + """IntegrationsGetIntegration200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsGetIntegration200Response: + """Test IntegrationsGetIntegration200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsGetIntegration200Response` + """ + model = IntegrationsGetIntegration200Response() + if include_optional: + return IntegrationsGetIntegration200Response( + id = '', + name = '', + description = '', + publishable_key = '', + whitelisted_domains = [ + null + ] + ) + else: + return IntegrationsGetIntegration200Response( + id = '', + name = '', + publishable_key = '', + whitelisted_domains = [ + null + ], + ) + """ + + def testIntegrationsGetIntegration200Response(self): + """Test IntegrationsGetIntegration200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response.py new file mode 100644 index 0000000000..340315674e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_get_integrations200_response import IntegrationsGetIntegrations200Response + +class TestIntegrationsGetIntegrations200Response(unittest.TestCase): + """IntegrationsGetIntegrations200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsGetIntegrations200Response: + """Test IntegrationsGetIntegrations200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsGetIntegrations200Response` + """ + model = IntegrationsGetIntegrations200Response() + if include_optional: + return IntegrationsGetIntegrations200Response( + cursor = '', + has_more = True, + records = [ + openapi_client.models.integrations_get_integrations_200_response_records_inner.integrations_getIntegrations_200_response_records_inner( + id = '', + name = '', + description = '', + publishable_key = '', + whitelisted_domains = [ + null + ], ) + ] + ) + else: + return IntegrationsGetIntegrations200Response( + has_more = True, + records = [ + openapi_client.models.integrations_get_integrations_200_response_records_inner.integrations_getIntegrations_200_response_records_inner( + id = '', + name = '', + description = '', + publishable_key = '', + whitelisted_domains = [ + null + ], ) + ], + ) + """ + + def testIntegrationsGetIntegrations200Response(self): + """Test IntegrationsGetIntegrations200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response_records_inner.py new file mode 100644 index 0000000000..9501f146aa --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations200_response_records_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_get_integrations200_response_records_inner import IntegrationsGetIntegrations200ResponseRecordsInner + +class TestIntegrationsGetIntegrations200ResponseRecordsInner(unittest.TestCase): + """IntegrationsGetIntegrations200ResponseRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsGetIntegrations200ResponseRecordsInner: + """Test IntegrationsGetIntegrations200ResponseRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsGetIntegrations200ResponseRecordsInner` + """ + model = IntegrationsGetIntegrations200ResponseRecordsInner() + if include_optional: + return IntegrationsGetIntegrations200ResponseRecordsInner( + id = '', + name = '', + description = '', + publishable_key = '', + whitelisted_domains = [ + null + ] + ) + else: + return IntegrationsGetIntegrations200ResponseRecordsInner( + id = '', + name = '', + publishable_key = '', + whitelisted_domains = [ + null + ], + ) + """ + + def testIntegrationsGetIntegrations200ResponseRecordsInner(self): + """Test IntegrationsGetIntegrations200ResponseRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request.py new file mode 100644 index 0000000000..7d787a9157 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_get_integrations_request import IntegrationsGetIntegrationsRequest + +class TestIntegrationsGetIntegrationsRequest(unittest.TestCase): + """IntegrationsGetIntegrationsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsGetIntegrationsRequest: + """Test IntegrationsGetIntegrationsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsGetIntegrationsRequest` + """ + model = IntegrationsGetIntegrationsRequest() + if include_optional: + return IntegrationsGetIntegrationsRequest( + limit = 1.337, + cursor = '', + query = openapi_client.models.integrations_get_integrations_request_query.integrations_getIntegrations_request_query( + id = null, + name = null, + description = null, ) + ) + else: + return IntegrationsGetIntegrationsRequest( + ) + """ + + def testIntegrationsGetIntegrationsRequest(self): + """Test IntegrationsGetIntegrationsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request_query.py new file mode 100644 index 0000000000..2747ee3309 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_get_integrations_request_query.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_get_integrations_request_query import IntegrationsGetIntegrationsRequestQuery + +class TestIntegrationsGetIntegrationsRequestQuery(unittest.TestCase): + """IntegrationsGetIntegrationsRequestQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsGetIntegrationsRequestQuery: + """Test IntegrationsGetIntegrationsRequestQuery + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsGetIntegrationsRequestQuery` + """ + model = IntegrationsGetIntegrationsRequestQuery() + if include_optional: + return IntegrationsGetIntegrationsRequestQuery( + id = None, + name = None, + description = None + ) + else: + return IntegrationsGetIntegrationsRequestQuery( + ) + """ + + def testIntegrationsGetIntegrationsRequestQuery(self): + """Test IntegrationsGetIntegrationsRequestQuery""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request.py new file mode 100644 index 0000000000..66b93633f8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_update_integration_request import IntegrationsUpdateIntegrationRequest + +class TestIntegrationsUpdateIntegrationRequest(unittest.TestCase): + """IntegrationsUpdateIntegrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsUpdateIntegrationRequest: + """Test IntegrationsUpdateIntegrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsUpdateIntegrationRequest` + """ + model = IntegrationsUpdateIntegrationRequest() + if include_optional: + return IntegrationsUpdateIntegrationRequest( + updates = openapi_client.models.integrations_update_integration_request_updates.integrations_updateIntegration_request_updates( + name = '', + description = '', + whitelisted_domains = [ + null + ], + rotate_publishable_key = True, ) + ) + else: + return IntegrationsUpdateIntegrationRequest( + updates = openapi_client.models.integrations_update_integration_request_updates.integrations_updateIntegration_request_updates( + name = '', + description = '', + whitelisted_domains = [ + null + ], + rotate_publishable_key = True, ), + ) + """ + + def testIntegrationsUpdateIntegrationRequest(self): + """Test IntegrationsUpdateIntegrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request_updates.py b/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request_updates.py new file mode 100644 index 0000000000..7512a92acb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_integrations_update_integration_request_updates.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.integrations_update_integration_request_updates import IntegrationsUpdateIntegrationRequestUpdates + +class TestIntegrationsUpdateIntegrationRequestUpdates(unittest.TestCase): + """IntegrationsUpdateIntegrationRequestUpdates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IntegrationsUpdateIntegrationRequestUpdates: + """Test IntegrationsUpdateIntegrationRequestUpdates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IntegrationsUpdateIntegrationRequestUpdates` + """ + model = IntegrationsUpdateIntegrationRequestUpdates() + if include_optional: + return IntegrationsUpdateIntegrationRequestUpdates( + name = '', + description = '', + whitelisted_domains = [ + null + ], + rotate_publishable_key = True + ) + else: + return IntegrationsUpdateIntegrationRequestUpdates( + ) + """ + + def testIntegrationsUpdateIntegrationRequestUpdates(self): + """Test IntegrationsUpdateIntegrationRequestUpdates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_presentation_send_presentation_request_presentation.py b/packages/open-api-lcn-clients/python-client/test/test_presentation_send_presentation_request_presentation.py index 7056e1eb9e..f44220bb5d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_presentation_send_presentation_request_presentation.py +++ b/packages/open-api-lcn-clients/python-client/test/test_presentation_send_presentation_request_presentation.py @@ -49,12 +49,12 @@ def make_instance(self, include_optional) -> PresentationSendPresentationRequest tag = '', aad = '', recipients = [ - openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner.boost_sendBoost_request_credential_anyOf_1_recipients_inner( - header = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header( + openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner.credential_sendCredential_request_credential_anyOf_1_recipients_inner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( alg = '', iv = '', tag = '', - epk = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header_epk.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header_epk( + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( kty = '', crv = '', x = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request.py index bd93825f15..76ce7d567f 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request.py @@ -45,8 +45,8 @@ def make_instance(self, include_optional) -> ProfileCreateProfileRequest: hero_image = '', website_link = '', type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.profile_create_profile_request_display.profile_createProfile_request_display( background_color = '', background_image = '', fade_background_image = True, @@ -58,8 +58,13 @@ def make_instance(self, include_optional) -> ProfileCreateProfileRequest: fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '' + dob = '', + country = '', + approved = True ) else: return ProfileCreateProfileRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request_display.py b/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request_display.py new file mode 100644 index 0000000000..a4163015f8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_create_profile_request_display.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_create_profile_request_display import ProfileCreateProfileRequestDisplay + +class TestProfileCreateProfileRequestDisplay(unittest.TestCase): + """ProfileCreateProfileRequestDisplay unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileCreateProfileRequestDisplay: + """Test ProfileCreateProfileRequestDisplay + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileCreateProfileRequestDisplay` + """ + model = ProfileCreateProfileRequestDisplay() + if include_optional: + return ProfileCreateProfileRequestDisplay( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True + ) + else: + return ProfileCreateProfileRequestDisplay( + ) + """ + + def testProfileCreateProfileRequestDisplay(self): + """Test ProfileCreateProfileRequestDisplay""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request.py new file mode 100644 index 0000000000..76c27a5f0f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_create_service_profile_request import ProfileCreateServiceProfileRequest + +class TestProfileCreateServiceProfileRequest(unittest.TestCase): + """ProfileCreateServiceProfileRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileCreateServiceProfileRequest: + """Test ProfileCreateServiceProfileRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileCreateServiceProfileRequest` + """ + model = ProfileCreateServiceProfileRequest() + if include_optional: + return ProfileCreateServiceProfileRequest( + profile_id = '012', + display_name = '', + short_bio = '', + bio = '', + is_private = True, + email = '', + image = '', + hero_image = '', + website_link = '', + type = '', + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.profile_create_service_profile_request_display.profile_createServiceProfile_request_display( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], + role = '', + dob = '', + country = '', + approved = True + ) + else: + return ProfileCreateServiceProfileRequest( + profile_id = '012', + ) + """ + + def testProfileCreateServiceProfileRequest(self): + """Test ProfileCreateServiceProfileRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request_display.py b/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request_display.py new file mode 100644 index 0000000000..f45d950493 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_create_service_profile_request_display.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_create_service_profile_request_display import ProfileCreateServiceProfileRequestDisplay + +class TestProfileCreateServiceProfileRequestDisplay(unittest.TestCase): + """ProfileCreateServiceProfileRequestDisplay unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileCreateServiceProfileRequestDisplay: + """Test ProfileCreateServiceProfileRequestDisplay + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileCreateServiceProfileRequestDisplay` + """ + model = ProfileCreateServiceProfileRequestDisplay() + if include_optional: + return ProfileCreateServiceProfileRequestDisplay( + background_color = '', + background_image = '', + fade_background_image = True, + repeat_background_image = True, + font_color = '', + accent_color = '', + accent_font_color = '', + id_background_image = '', + fade_id_background_image = True, + id_background_color = '', + repeat_id_background_image = True + ) + else: + return ProfileCreateServiceProfileRequestDisplay( + ) + """ + + def testProfileCreateServiceProfileRequestDisplay(self): + """Test ProfileCreateServiceProfileRequestDisplay""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_generate_invite_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_generate_invite_request.py index d1ba390974..d577a1a420 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_generate_invite_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_generate_invite_request.py @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> ProfileGenerateInviteRequest: if include_optional: return ProfileGenerateInviteRequest( expiration = 1.337, - challenge = '' + challenge = '', + max_uses = 0 ) else: return ProfileGenerateInviteRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response.py b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response.py index 433c382cab..f823d7ca9b 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response.py @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo has_more = True, records = [ openapi_client.models.profile_get_available_profiles_200_response_records_inner.profile_getAvailableProfiles_200_response_records_inner( - profile = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -52,8 +52,8 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -65,9 +65,14 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), - manager = openapi_client.models.boost_get_children_profile_managers_200_response_records_inner.boost_getChildrenProfileManagers_200_response_records_inner( + dob = '', + country = '', + approved = True, ), + manager = openapi_client.models.profile_get_available_profiles_200_response_records_inner_manager.profile_getAvailableProfiles_200_response_records_inner_manager( id = '', created = '', display_name = '', @@ -84,7 +89,7 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo has_more = True, records = [ openapi_client.models.profile_get_available_profiles_200_response_records_inner.profile_getAvailableProfiles_200_response_records_inner( - profile = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -97,8 +102,8 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -110,9 +115,14 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), - manager = openapi_client.models.boost_get_children_profile_managers_200_response_records_inner.boost_getChildrenProfileManagers_200_response_records_inner( + dob = '', + country = '', + approved = True, ), + manager = openapi_client.models.profile_get_available_profiles_200_response_records_inner_manager.profile_getAvailableProfiles_200_response_records_inner_manager( id = '', created = '', display_name = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner.py b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner.py index 42ea3f0587..0915acd00d 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner.py @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo model = ProfileGetAvailableProfiles200ResponseRecordsInner() if include_optional: return ProfileGetAvailableProfiles200ResponseRecordsInner( - profile = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -48,8 +48,8 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -61,9 +61,14 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), - manager = openapi_client.models.boost_get_children_profile_managers_200_response_records_inner.boost_getChildrenProfileManagers_200_response_records_inner( + dob = '', + country = '', + approved = True, ), + manager = openapi_client.models.profile_get_available_profiles_200_response_records_inner_manager.profile_getAvailableProfiles_200_response_records_inner_manager( id = '', created = '', display_name = '', @@ -76,7 +81,7 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo ) else: return ProfileGetAvailableProfiles200ResponseRecordsInner( - profile = openapi_client.models.boost_get_boost_recipients_200_response_inner_to.boost_getBoostRecipients_200_response_inner_to( + profile = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to.boost_getPaginatedBoostRecipients_200_response_records_inner_to( profile_id = '012', display_name = '', short_bio = '', @@ -89,8 +94,8 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -102,8 +107,13 @@ def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200Respo fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '', ), + dob = '', + country = '', + approved = True, ), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner_manager.py b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner_manager.py new file mode 100644 index 0000000000..99b76a7f0a --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_get_available_profiles200_response_records_inner_manager.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_get_available_profiles200_response_records_inner_manager import ProfileGetAvailableProfiles200ResponseRecordsInnerManager + +class TestProfileGetAvailableProfiles200ResponseRecordsInnerManager(unittest.TestCase): + """ProfileGetAvailableProfiles200ResponseRecordsInnerManager unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileGetAvailableProfiles200ResponseRecordsInnerManager: + """Test ProfileGetAvailableProfiles200ResponseRecordsInnerManager + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileGetAvailableProfiles200ResponseRecordsInnerManager` + """ + model = ProfileGetAvailableProfiles200ResponseRecordsInnerManager() + if include_optional: + return ProfileGetAvailableProfiles200ResponseRecordsInnerManager( + id = '', + created = '', + display_name = '', + short_bio = '', + bio = '', + email = '', + image = '', + hero_image = '', + did = '' + ) + else: + return ProfileGetAvailableProfiles200ResponseRecordsInnerManager( + id = '', + created = '', + did = '', + ) + """ + + def testProfileGetAvailableProfiles200ResponseRecordsInnerManager(self): + """Test ProfileGetAvailableProfiles200ResponseRecordsInnerManager""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_list_invites200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_profile_list_invites200_response_inner.py new file mode 100644 index 0000000000..74b7731db9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_list_invites200_response_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_list_invites200_response_inner import ProfileListInvites200ResponseInner + +class TestProfileListInvites200ResponseInner(unittest.TestCase): + """ProfileListInvites200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileListInvites200ResponseInner: + """Test ProfileListInvites200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileListInvites200ResponseInner` + """ + model = ProfileListInvites200ResponseInner() + if include_optional: + return ProfileListInvites200ResponseInner( + challenge = '', + expires_in = 1.337, + uses_remaining = 1.337, + max_uses = 1.337 + ) + else: + return ProfileListInvites200ResponseInner( + challenge = '', + expires_in = 1.337, + uses_remaining = 1.337, + max_uses = 1.337, + ) + """ + + def testProfileListInvites200ResponseInner(self): + """Test ProfileListInvites200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request.py index 15a6e9271b..6379a5cbe0 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ProfileManagerCreateChildProfileMan if include_optional: return ProfileManagerCreateChildProfileManagerRequest( parent_uri = '', - profile = openapi_client.models.profile_manager_create_profile_manager_request.profileManager_createProfileManager_request( + profile = openapi_client.models.profile_manager_create_child_profile_manager_request_profile.profileManager_createChildProfileManager_request_profile( display_name = '', short_bio = '', bio = '', @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> ProfileManagerCreateChildProfileMan else: return ProfileManagerCreateChildProfileManagerRequest( parent_uri = '', - profile = openapi_client.models.profile_manager_create_profile_manager_request.profileManager_createProfileManager_request( + profile = openapi_client.models.profile_manager_create_child_profile_manager_request_profile.profileManager_createChildProfileManager_request_profile( display_name = '', short_bio = '', bio = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request_profile.py b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request_profile.py new file mode 100644 index 0000000000..55d01cde62 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_child_profile_manager_request_profile.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_manager_create_child_profile_manager_request_profile import ProfileManagerCreateChildProfileManagerRequestProfile + +class TestProfileManagerCreateChildProfileManagerRequestProfile(unittest.TestCase): + """ProfileManagerCreateChildProfileManagerRequestProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileManagerCreateChildProfileManagerRequestProfile: + """Test ProfileManagerCreateChildProfileManagerRequestProfile + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileManagerCreateChildProfileManagerRequestProfile` + """ + model = ProfileManagerCreateChildProfileManagerRequestProfile() + if include_optional: + return ProfileManagerCreateChildProfileManagerRequestProfile( + display_name = '', + short_bio = '', + bio = '', + email = '', + image = '', + hero_image = '' + ) + else: + return ProfileManagerCreateChildProfileManagerRequestProfile( + ) + """ + + def testProfileManagerCreateChildProfileManagerRequestProfile(self): + """Test ProfileManagerCreateChildProfileManagerRequestProfile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_managed_profile_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_managed_profile_request.py index 3752963d48..e17770c0f1 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_managed_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_create_managed_profile_request.py @@ -46,8 +46,8 @@ def make_instance(self, include_optional) -> ProfileManagerCreateManagedProfileR website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.profile_create_service_profile_request_display.profile_createServiceProfile_request_display( background_color = '', background_image = '', fade_background_image = True, @@ -59,8 +59,13 @@ def make_instance(self, include_optional) -> ProfileManagerCreateManagedProfileR fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '' + dob = '', + country = '', + approved = True ) else: return ProfileManagerCreateManagedProfileRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_manager_get_managed_profiles_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_get_managed_profiles_request.py new file mode 100644 index 0000000000..331a61049d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_manager_get_managed_profiles_request.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_manager_get_managed_profiles_request import ProfileManagerGetManagedProfilesRequest + +class TestProfileManagerGetManagedProfilesRequest(unittest.TestCase): + """ProfileManagerGetManagedProfilesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileManagerGetManagedProfilesRequest: + """Test ProfileManagerGetManagedProfilesRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileManagerGetManagedProfilesRequest` + """ + model = ProfileManagerGetManagedProfilesRequest() + if include_optional: + return ProfileManagerGetManagedProfilesRequest( + limit = 1.337, + cursor = '', + sort = '', + query = openapi_client.models.boost_get_paginated_boost_recipients_request_query.boost_getPaginatedBoostRecipients_request_query( + profile_id = null, + display_name = null, + short_bio = null, + bio = null, + email = null, + website_link = null, + is_service_profile = True, + type = null, ) + ) + else: + return ProfileManagerGetManagedProfilesRequest( + ) + """ + + def testProfileManagerGetManagedProfilesRequest(self): + """Test ProfileManagerGetManagedProfilesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_search_profiles200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_profile_search_profiles200_response_inner.py index bbeef2a8a1..c8a0171d73 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_search_profiles200_response_inner.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_search_profiles200_response_inner.py @@ -47,8 +47,8 @@ def make_instance(self, include_optional) -> ProfileSearchProfiles200ResponseInn website_link = '', is_service_profile = True, type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.boost_get_paginated_boost_recipients_200_response_records_inner_to_display.boost_getPaginatedBoostRecipients_200_response_records_inner_to_display( background_color = '', background_image = '', fade_background_image = True, @@ -60,8 +60,13 @@ def make_instance(self, include_optional) -> ProfileSearchProfiles200ResponseInn fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', dob = '', + country = '', + approved = True, connection_status = 'CONNECTED' ) else: diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response.py b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response.py new file mode 100644 index 0000000000..1580719fb4 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_signing_authority200_response import ProfileSigningAuthority200Response + +class TestProfileSigningAuthority200Response(unittest.TestCase): + """ProfileSigningAuthority200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileSigningAuthority200Response: + """Test ProfileSigningAuthority200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileSigningAuthority200Response` + """ + model = ProfileSigningAuthority200Response() + if include_optional: + return ProfileSigningAuthority200Response( + signing_authority = openapi_client.models.profile_signing_authority_200_response_signing_authority.profile_signingAuthority_200_response_signingAuthority( + endpoint = '', ), + relationship = openapi_client.models.profile_signing_authority_200_response_relationship.profile_signingAuthority_200_response_relationship( + name = 'p', + did = '', + is_primary = True, ) + ) + else: + return ProfileSigningAuthority200Response( + signing_authority = openapi_client.models.profile_signing_authority_200_response_signing_authority.profile_signingAuthority_200_response_signingAuthority( + endpoint = '', ), + relationship = openapi_client.models.profile_signing_authority_200_response_relationship.profile_signingAuthority_200_response_relationship( + name = 'p', + did = '', + is_primary = True, ), + ) + """ + + def testProfileSigningAuthority200Response(self): + """Test ProfileSigningAuthority200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_relationship.py b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_relationship.py new file mode 100644 index 0000000000..024f526008 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_relationship.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_signing_authority200_response_relationship import ProfileSigningAuthority200ResponseRelationship + +class TestProfileSigningAuthority200ResponseRelationship(unittest.TestCase): + """ProfileSigningAuthority200ResponseRelationship unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileSigningAuthority200ResponseRelationship: + """Test ProfileSigningAuthority200ResponseRelationship + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileSigningAuthority200ResponseRelationship` + """ + model = ProfileSigningAuthority200ResponseRelationship() + if include_optional: + return ProfileSigningAuthority200ResponseRelationship( + name = 'p', + did = '', + is_primary = True + ) + else: + return ProfileSigningAuthority200ResponseRelationship( + name = 'p', + did = '', + ) + """ + + def testProfileSigningAuthority200ResponseRelationship(self): + """Test ProfileSigningAuthority200ResponseRelationship""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_signing_authority.py b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_signing_authority.py new file mode 100644 index 0000000000..a67af58dc3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_signing_authority200_response_signing_authority.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.profile_signing_authority200_response_signing_authority import ProfileSigningAuthority200ResponseSigningAuthority + +class TestProfileSigningAuthority200ResponseSigningAuthority(unittest.TestCase): + """ProfileSigningAuthority200ResponseSigningAuthority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProfileSigningAuthority200ResponseSigningAuthority: + """Test ProfileSigningAuthority200ResponseSigningAuthority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProfileSigningAuthority200ResponseSigningAuthority` + """ + model = ProfileSigningAuthority200ResponseSigningAuthority() + if include_optional: + return ProfileSigningAuthority200ResponseSigningAuthority( + endpoint = '' + ) + else: + return ProfileSigningAuthority200ResponseSigningAuthority( + endpoint = '', + ) + """ + + def testProfileSigningAuthority200ResponseSigningAuthority(self): + """Test ProfileSigningAuthority200ResponseSigningAuthority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_profile_update_profile_request.py b/packages/open-api-lcn-clients/python-client/test/test_profile_update_profile_request.py index 1ae562c1e2..48da5b6591 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profile_update_profile_request.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profile_update_profile_request.py @@ -45,8 +45,8 @@ def make_instance(self, include_optional) -> ProfileUpdateProfileRequest: hero_image = '', website_link = '', type = '', - notifications_webhook = 'http', - display = openapi_client.models.boost_get_boost_recipients_200_response_inner_to_display.boost_getBoostRecipients_200_response_inner_to_display( + notifications_webhook = 'httpjUR,rZ#UM/?R,Fp^l6$ARj', + display = openapi_client.models.profile_create_service_profile_request_display.profile_createServiceProfile_request_display( background_color = '', background_image = '', fade_background_image = True, @@ -58,8 +58,13 @@ def make_instance(self, include_optional) -> ProfileUpdateProfileRequest: fade_id_background_image = True, id_background_color = '', repeat_id_background_image = True, ), + highlighted_credentials = [ + '' + ], role = '', - dob = '' + dob = '', + country = '', + approved = True ) else: return ProfileUpdateProfileRequest( diff --git a/packages/open-api-lcn-clients/python-client/test/test_profiles_api.py b/packages/open-api-lcn-clients/python-client/test/test_profiles_api.py index 74979a6695..844c468b81 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_profiles_api.py +++ b/packages/open-api-lcn-clients/python-client/test/test_profiles_api.py @@ -26,6 +26,27 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_inbox_approve_guardian_request(self) -> None: + """Test case for inbox_approve_guardian_request + + Approve Guardian Request + """ + pass + + def test_inbox_approve_guardian_request_by_path(self) -> None: + """Test case for inbox_approve_guardian_request_by_path + + Approve Guardian Request (GET) + """ + pass + + def test_inbox_send_guardian_approval_email(self) -> None: + """Test case for inbox_send_guardian_approval_email + + Send Guardian Approval Email + """ + pass + def test_profile_accept_connection_request(self) -> None: """Test case for profile_accept_connection_request @@ -152,6 +173,20 @@ def test_profile_get_profile(self) -> None: """ pass + def test_profile_invalidate_invite(self) -> None: + """Test case for profile_invalidate_invite + + Invalidate an invitation + """ + pass + + def test_profile_list_invites(self) -> None: + """Test case for profile_list_invites + + List valid connection invitations + """ + pass + def test_profile_manager_create_managed_profile(self) -> None: """Test case for profile_manager_create_managed_profile diff --git a/packages/open-api-lcn-clients/python-client/test/test_schema0.py b/packages/open-api-lcn-clients/python-client/test/test_schema0.py new file mode 100644 index 0000000000..b591161b9c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_schema0.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.schema0 import Schema0 + +class TestSchema0(unittest.TestCase): + """Schema0 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Schema0: + """Test Schema0 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Schema0` + """ + model = Schema0() + if include_optional: + return Schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ] + ) + else: + return Schema0( + statement = '', + ) + """ + + def testSchema0(self): + """Test Schema0""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_schema1.py b/packages/open-api-lcn-clients/python-client/test/test_schema1.py new file mode 100644 index 0000000000..210f5699a0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_schema1.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.schema1 import Schema1 + +class TestSchema1(unittest.TestCase): + """Schema1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Schema1: + """Test Schema1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Schema1` + """ + model = Schema1() + if include_optional: + return Schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '' + ) + else: + return Schema1( + id = '', + statement = '', + type = 'skill', + status = 'active', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + ) + """ + + def testSchema1(self): + """Test Schema1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_send_api.py b/packages/open-api-lcn-clients/python-client/test/test_send_api.py new file mode 100644 index 0000000000..2ce1f720a9 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_send_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.send_api import SendApi + + +class TestSendApi(unittest.TestCase): + """SendApi unit test stubs""" + + def setUp(self) -> None: + self.api = SendApi() + + def tearDown(self) -> None: + pass + + def test_boost_send(self) -> None: + """Test case for boost_send + + Send data to a recipient + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin200_response.py new file mode 100644 index 0000000000..38256e0413 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_add_framework_admin200_response import SkillFrameworksAddFrameworkAdmin200Response + +class TestSkillFrameworksAddFrameworkAdmin200Response(unittest.TestCase): + """SkillFrameworksAddFrameworkAdmin200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksAddFrameworkAdmin200Response: + """Test SkillFrameworksAddFrameworkAdmin200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksAddFrameworkAdmin200Response` + """ + model = SkillFrameworksAddFrameworkAdmin200Response() + if include_optional: + return SkillFrameworksAddFrameworkAdmin200Response( + success = True + ) + else: + return SkillFrameworksAddFrameworkAdmin200Response( + success = True, + ) + """ + + def testSkillFrameworksAddFrameworkAdmin200Response(self): + """Test SkillFrameworksAddFrameworkAdmin200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin_request.py new file mode 100644 index 0000000000..9a9f70d003 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_add_framework_admin_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_add_framework_admin_request import SkillFrameworksAddFrameworkAdminRequest + +class TestSkillFrameworksAddFrameworkAdminRequest(unittest.TestCase): + """SkillFrameworksAddFrameworkAdminRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksAddFrameworkAdminRequest: + """Test SkillFrameworksAddFrameworkAdminRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksAddFrameworkAdminRequest` + """ + model = SkillFrameworksAddFrameworkAdminRequest() + if include_optional: + return SkillFrameworksAddFrameworkAdminRequest( + profile_id = '' + ) + else: + return SkillFrameworksAddFrameworkAdminRequest( + profile_id = '', + ) + """ + + def testSkillFrameworksAddFrameworkAdminRequest(self): + """Test SkillFrameworksAddFrameworkAdminRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_count_boosts_that_use_framework200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_count_boosts_that_use_framework200_response.py new file mode 100644 index 0000000000..827f0656db --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_count_boosts_that_use_framework200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_count_boosts_that_use_framework200_response import SkillFrameworksCountBoostsThatUseFramework200Response + +class TestSkillFrameworksCountBoostsThatUseFramework200Response(unittest.TestCase): + """SkillFrameworksCountBoostsThatUseFramework200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksCountBoostsThatUseFramework200Response: + """Test SkillFrameworksCountBoostsThatUseFramework200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksCountBoostsThatUseFramework200Response` + """ + model = SkillFrameworksCountBoostsThatUseFramework200Response() + if include_optional: + return SkillFrameworksCountBoostsThatUseFramework200Response( + count = 1.337 + ) + else: + return SkillFrameworksCountBoostsThatUseFramework200Response( + count = 1.337, + ) + """ + + def testSkillFrameworksCountBoostsThatUseFramework200Response(self): + """Test SkillFrameworksCountBoostsThatUseFramework200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request.py new file mode 100644 index 0000000000..602a353e61 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_create_managed_batch_request import SkillFrameworksCreateManagedBatchRequest + +class TestSkillFrameworksCreateManagedBatchRequest(unittest.TestCase): + """SkillFrameworksCreateManagedBatchRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksCreateManagedBatchRequest: + """Test SkillFrameworksCreateManagedBatchRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksCreateManagedBatchRequest` + """ + model = SkillFrameworksCreateManagedBatchRequest() + if include_optional: + return SkillFrameworksCreateManagedBatchRequest( + frameworks = [ + openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner.skillFrameworks_createManagedBatch_request_frameworks_inner( + id = '', + name = '0', + description = '', + image = '', + source_uri = '', + status = 'active', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + boost_uris = [ + '' + ], ) + ] + ) + else: + return SkillFrameworksCreateManagedBatchRequest( + frameworks = [ + openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner.skillFrameworks_createManagedBatch_request_frameworks_inner( + id = '', + name = '0', + description = '', + image = '', + source_uri = '', + status = 'active', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + boost_uris = [ + '' + ], ) + ], + ) + """ + + def testSkillFrameworksCreateManagedBatchRequest(self): + """Test SkillFrameworksCreateManagedBatchRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request_frameworks_inner.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request_frameworks_inner.py new file mode 100644 index 0000000000..8c544db2f6 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_batch_request_frameworks_inner.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_create_managed_batch_request_frameworks_inner import SkillFrameworksCreateManagedBatchRequestFrameworksInner + +class TestSkillFrameworksCreateManagedBatchRequestFrameworksInner(unittest.TestCase): + """SkillFrameworksCreateManagedBatchRequestFrameworksInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksCreateManagedBatchRequestFrameworksInner: + """Test SkillFrameworksCreateManagedBatchRequestFrameworksInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksCreateManagedBatchRequestFrameworksInner` + """ + model = SkillFrameworksCreateManagedBatchRequestFrameworksInner() + if include_optional: + return SkillFrameworksCreateManagedBatchRequestFrameworksInner( + id = '', + name = '0', + description = '', + image = '', + source_uri = '', + status = 'active', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + boost_uris = [ + '' + ] + ) + else: + return SkillFrameworksCreateManagedBatchRequestFrameworksInner( + name = '0', + ) + """ + + def testSkillFrameworksCreateManagedBatchRequestFrameworksInner(self): + """Test SkillFrameworksCreateManagedBatchRequestFrameworksInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_request.py new file mode 100644 index 0000000000..66b5fa77f2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_managed_request.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_create_managed_request import SkillFrameworksCreateManagedRequest + +class TestSkillFrameworksCreateManagedRequest(unittest.TestCase): + """SkillFrameworksCreateManagedRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksCreateManagedRequest: + """Test SkillFrameworksCreateManagedRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksCreateManagedRequest` + """ + model = SkillFrameworksCreateManagedRequest() + if include_optional: + return SkillFrameworksCreateManagedRequest( + id = '', + name = '0', + description = '', + image = '', + source_uri = '', + status = 'active', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + boost_uris = [ + '' + ] + ) + else: + return SkillFrameworksCreateManagedRequest( + name = '0', + ) + """ + + def testSkillFrameworksCreateManagedRequest(self): + """Test SkillFrameworksCreateManagedRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_request.py new file mode 100644 index 0000000000..0a823bdc00 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_create_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_create_request import SkillFrameworksCreateRequest + +class TestSkillFrameworksCreateRequest(unittest.TestCase): + """SkillFrameworksCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksCreateRequest: + """Test SkillFrameworksCreateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksCreateRequest` + """ + model = SkillFrameworksCreateRequest() + if include_optional: + return SkillFrameworksCreateRequest( + framework_id = '' + ) + else: + return SkillFrameworksCreateRequest( + framework_id = '', + ) + """ + + def testSkillFrameworksCreateRequest(self): + """Test SkillFrameworksCreateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_boosts_that_use_framework_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_boosts_that_use_framework_request.py new file mode 100644 index 0000000000..719f445a62 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_boosts_that_use_framework_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_get_boosts_that_use_framework_request import SkillFrameworksGetBoostsThatUseFrameworkRequest + +class TestSkillFrameworksGetBoostsThatUseFrameworkRequest(unittest.TestCase): + """SkillFrameworksGetBoostsThatUseFrameworkRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksGetBoostsThatUseFrameworkRequest: + """Test SkillFrameworksGetBoostsThatUseFrameworkRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksGetBoostsThatUseFrameworkRequest` + """ + model = SkillFrameworksGetBoostsThatUseFrameworkRequest() + if include_optional: + return SkillFrameworksGetBoostsThatUseFrameworkRequest( + limit = 1, + cursor = '', + query = None + ) + else: + return SkillFrameworksGetBoostsThatUseFrameworkRequest( + ) + """ + + def testSkillFrameworksGetBoostsThatUseFrameworkRequest(self): + """Test SkillFrameworksGetBoostsThatUseFrameworkRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response.py new file mode 100644 index 0000000000..114dc3d250 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_get_by_id200_response import SkillFrameworksGetById200Response + +class TestSkillFrameworksGetById200Response(unittest.TestCase): + """SkillFrameworksGetById200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksGetById200Response: + """Test SkillFrameworksGetById200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksGetById200Response` + """ + model = SkillFrameworksGetById200Response() + if include_optional: + return SkillFrameworksGetById200Response( + framework = openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = openapi_client.models.skill_frameworks_get_by_id_200_response_skills.skillFrameworks_getById_200_response_skills( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], ) + ) + else: + return SkillFrameworksGetById200Response( + framework = openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = openapi_client.models.skill_frameworks_get_by_id_200_response_skills.skillFrameworks_getById_200_response_skills( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], ), + ) + """ + + def testSkillFrameworksGetById200Response(self): + """Test SkillFrameworksGetById200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response_skills.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response_skills.py new file mode 100644 index 0000000000..b06d663d1e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_get_by_id200_response_skills.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_get_by_id200_response_skills import SkillFrameworksGetById200ResponseSkills + +class TestSkillFrameworksGetById200ResponseSkills(unittest.TestCase): + """SkillFrameworksGetById200ResponseSkills unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksGetById200ResponseSkills: + """Test SkillFrameworksGetById200ResponseSkills + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksGetById200ResponseSkills` + """ + model = SkillFrameworksGetById200ResponseSkills() + if include_optional: + return SkillFrameworksGetById200ResponseSkills( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ] + ) + else: + return SkillFrameworksGetById200ResponseSkills( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], + ) + """ + + def testSkillFrameworksGetById200ResponseSkills(self): + """Test SkillFrameworksGetById200ResponseSkills""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_remove_framework_admin200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_remove_framework_admin200_response.py new file mode 100644 index 0000000000..057e52e14d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_remove_framework_admin200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_remove_framework_admin200_response import SkillFrameworksRemoveFrameworkAdmin200Response + +class TestSkillFrameworksRemoveFrameworkAdmin200Response(unittest.TestCase): + """SkillFrameworksRemoveFrameworkAdmin200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksRemoveFrameworkAdmin200Response: + """Test SkillFrameworksRemoveFrameworkAdmin200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksRemoveFrameworkAdmin200Response` + """ + model = SkillFrameworksRemoveFrameworkAdmin200Response() + if include_optional: + return SkillFrameworksRemoveFrameworkAdmin200Response( + success = True + ) + else: + return SkillFrameworksRemoveFrameworkAdmin200Response( + success = True, + ) + """ + + def testSkillFrameworksRemoveFrameworkAdmin200Response(self): + """Test SkillFrameworksRemoveFrameworkAdmin200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills200_response.py new file mode 100644 index 0000000000..c1fc8fdbb3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills200_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_replace_skills200_response import SkillFrameworksReplaceSkills200Response + +class TestSkillFrameworksReplaceSkills200Response(unittest.TestCase): + """SkillFrameworksReplaceSkills200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksReplaceSkills200Response: + """Test SkillFrameworksReplaceSkills200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksReplaceSkills200Response` + """ + model = SkillFrameworksReplaceSkills200Response() + if include_optional: + return SkillFrameworksReplaceSkills200Response( + created = 0, + updated = 0, + deleted = 0, + unchanged = 0, + total = 0 + ) + else: + return SkillFrameworksReplaceSkills200Response( + created = 0, + updated = 0, + deleted = 0, + unchanged = 0, + total = 0, + ) + """ + + def testSkillFrameworksReplaceSkills200Response(self): + """Test SkillFrameworksReplaceSkills200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills_request.py new file mode 100644 index 0000000000..004946f71c --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_replace_skills_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_replace_skills_request import SkillFrameworksReplaceSkillsRequest + +class TestSkillFrameworksReplaceSkillsRequest(unittest.TestCase): + """SkillFrameworksReplaceSkillsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksReplaceSkillsRequest: + """Test SkillFrameworksReplaceSkillsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksReplaceSkillsRequest` + """ + model = SkillFrameworksReplaceSkillsRequest() + if include_optional: + return SkillFrameworksReplaceSkillsRequest( + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ] + ) + else: + return SkillFrameworksReplaceSkillsRequest( + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + ) + """ + + def testSkillFrameworksReplaceSkillsRequest(self): + """Test SkillFrameworksReplaceSkillsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_update_request.py b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_update_request.py new file mode 100644 index 0000000000..52ca9cb2ec --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skill_frameworks_update_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skill_frameworks_update_request import SkillFrameworksUpdateRequest + +class TestSkillFrameworksUpdateRequest(unittest.TestCase): + """SkillFrameworksUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillFrameworksUpdateRequest: + """Test SkillFrameworksUpdateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillFrameworksUpdateRequest` + """ + model = SkillFrameworksUpdateRequest() + if include_optional: + return SkillFrameworksUpdateRequest( + name = '0', + description = '', + image = '', + source_uri = '', + status = 'active' + ) + else: + return SkillFrameworksUpdateRequest( + ) + """ + + def testSkillFrameworksUpdateRequest(self): + """Test SkillFrameworksUpdateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag200_response_inner.py new file mode 100644 index 0000000000..cd6896b4da --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag200_response_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_add_skill_tag200_response_inner import SkillsAddSkillTag200ResponseInner + +class TestSkillsAddSkillTag200ResponseInner(unittest.TestCase): + """SkillsAddSkillTag200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsAddSkillTag200ResponseInner: + """Test SkillsAddSkillTag200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsAddSkillTag200ResponseInner` + """ + model = SkillsAddSkillTag200ResponseInner() + if include_optional: + return SkillsAddSkillTag200ResponseInner( + id = '', + name = '0', + slug = '0', + created_at = '', + updated_at = '' + ) + else: + return SkillsAddSkillTag200ResponseInner( + id = '', + name = '0', + slug = '0', + ) + """ + + def testSkillsAddSkillTag200ResponseInner(self): + """Test SkillsAddSkillTag200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request.py b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request.py new file mode 100644 index 0000000000..4a6415c916 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_add_skill_tag_request import SkillsAddSkillTagRequest + +class TestSkillsAddSkillTagRequest(unittest.TestCase): + """SkillsAddSkillTagRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsAddSkillTagRequest: + """Test SkillsAddSkillTagRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsAddSkillTagRequest` + """ + model = SkillsAddSkillTagRequest() + if include_optional: + return SkillsAddSkillTagRequest( + framework_id = '', + tag = openapi_client.models.skills_add_skill_tag_request_tag.skills_addSkillTag_request_tag( + slug = '0', + name = '0', ) + ) + else: + return SkillsAddSkillTagRequest( + framework_id = '', + tag = openapi_client.models.skills_add_skill_tag_request_tag.skills_addSkillTag_request_tag( + slug = '0', + name = '0', ), + ) + """ + + def testSkillsAddSkillTagRequest(self): + """Test SkillsAddSkillTagRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request_tag.py b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request_tag.py new file mode 100644 index 0000000000..a75128dc8f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_add_skill_tag_request_tag.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_add_skill_tag_request_tag import SkillsAddSkillTagRequestTag + +class TestSkillsAddSkillTagRequestTag(unittest.TestCase): + """SkillsAddSkillTagRequestTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsAddSkillTagRequestTag: + """Test SkillsAddSkillTagRequestTag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsAddSkillTagRequestTag` + """ + model = SkillsAddSkillTagRequestTag() + if include_optional: + return SkillsAddSkillTagRequestTag( + slug = '0', + name = '0' + ) + else: + return SkillsAddSkillTagRequestTag( + slug = '0', + name = '0', + ) + """ + + def testSkillsAddSkillTagRequestTag(self): + """Test SkillsAddSkillTagRequestTag""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_api.py b/packages/open-api-lcn-clients/python-client/test/test_skills_api.py new file mode 100644 index 0000000000..d3e970e0f3 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_api.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.skills_api import SkillsApi + + +class TestSkillsApi(unittest.TestCase): + """SkillsApi unit test stubs""" + + def setUp(self) -> None: + self.api = SkillsApi() + + def tearDown(self) -> None: + pass + + def test_skill_frameworks_add_framework_admin(self) -> None: + """Test case for skill_frameworks_add_framework_admin + + Add framework admin + """ + pass + + def test_skill_frameworks_count_boosts_that_use_framework(self) -> None: + """Test case for skill_frameworks_count_boosts_that_use_framework + + Count boosts that use a framework + """ + pass + + def test_skill_frameworks_create(self) -> None: + """Test case for skill_frameworks_create + + Link Skill Framework + """ + pass + + def test_skill_frameworks_create_managed(self) -> None: + """Test case for skill_frameworks_create_managed + + Create and manage a custom skill framework + """ + pass + + def test_skill_frameworks_create_managed_batch(self) -> None: + """Test case for skill_frameworks_create_managed_batch + + Create multiple custom skill frameworks + """ + pass + + def test_skill_frameworks_delete(self) -> None: + """Test case for skill_frameworks_delete + + Delete a managed skill framework + """ + pass + + def test_skill_frameworks_get_boosts_that_use_framework(self) -> None: + """Test case for skill_frameworks_get_boosts_that_use_framework + + Get boosts that use a framework + """ + pass + + def test_skill_frameworks_get_by_id(self) -> None: + """Test case for skill_frameworks_get_by_id + + Get Skill Framework with skills + """ + pass + + def test_skill_frameworks_list_framework_admins(self) -> None: + """Test case for skill_frameworks_list_framework_admins + + List framework admins + """ + pass + + def test_skill_frameworks_list_mine(self) -> None: + """Test case for skill_frameworks_list_mine + + List Skill Frameworks I manage + """ + pass + + def test_skill_frameworks_remove_framework_admin(self) -> None: + """Test case for skill_frameworks_remove_framework_admin + + Remove framework admin + """ + pass + + def test_skill_frameworks_replace_skills(self) -> None: + """Test case for skill_frameworks_replace_skills + + Replace all skills in a framework + """ + pass + + def test_skill_frameworks_update(self) -> None: + """Test case for skill_frameworks_update + + Update a managed skill framework + """ + pass + + def test_skills_add_skill_tag(self) -> None: + """Test case for skills_add_skill_tag + + Add a tag to a skill + """ + pass + + def test_skills_count_skills(self) -> None: + """Test case for skills_count_skills + + Count skills in a framework + """ + pass + + def test_skills_create(self) -> None: + """Test case for skills_create + + Create a skill + """ + pass + + def test_skills_create_many(self) -> None: + """Test case for skills_create_many + + Create many skills + """ + pass + + def test_skills_delete(self) -> None: + """Test case for skills_delete + + Delete a skill + """ + pass + + def test_skills_get_framework_skill_tree(self) -> None: + """Test case for skills_get_framework_skill_tree + + Get framework skill tree (roots + first children) + """ + pass + + def test_skills_get_full_skill_tree(self) -> None: + """Test case for skills_get_full_skill_tree + + Get complete skill tree for a framework + """ + pass + + def test_skills_get_skill(self) -> None: + """Test case for skills_get_skill + + Get a skill by ID + """ + pass + + def test_skills_get_skill_children_tree(self) -> None: + """Test case for skills_get_skill_children_tree + + Get children for a skill (framework-scoped, paginated) + """ + pass + + def test_skills_get_skill_path(self) -> None: + """Test case for skills_get_skill_path + + Get breadcrumb path for a skill + """ + pass + + def test_skills_list_skill_tags(self) -> None: + """Test case for skills_list_skill_tags + + List tags for a skill + """ + pass + + def test_skills_remove_skill_tag(self) -> None: + """Test case for skills_remove_skill_tag + + Remove a tag from a skill + """ + pass + + def test_skills_search_framework_skills(self) -> None: + """Test case for skills_search_framework_skills + + Search skills in a framework + """ + pass + + def test_skills_sync_framework_skills(self) -> None: + """Test case for skills_sync_framework_skills + + Sync Framework Skills + """ + pass + + def test_skills_update(self) -> None: + """Test case for skills_update + + Update a skill + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_count_skills200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_count_skills200_response.py new file mode 100644 index 0000000000..95bfad0d4b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_count_skills200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_count_skills200_response import SkillsCountSkills200Response + +class TestSkillsCountSkills200Response(unittest.TestCase): + """SkillsCountSkills200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsCountSkills200Response: + """Test SkillsCountSkills200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsCountSkills200Response` + """ + model = SkillsCountSkills200Response() + if include_optional: + return SkillsCountSkills200Response( + count = 0 + ) + else: + return SkillsCountSkills200Response( + count = 0, + ) + """ + + def testSkillsCountSkills200Response(self): + """Test SkillsCountSkills200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_create200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_create200_response.py new file mode 100644 index 0000000000..6d4ac7178b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_create200_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_create200_response import SkillsCreate200Response + +class TestSkillsCreate200Response(unittest.TestCase): + """SkillsCreate200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsCreate200Response: + """Test SkillsCreate200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsCreate200Response` + """ + model = SkillsCreate200Response() + if include_optional: + return SkillsCreate200Response( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '' + ) + else: + return SkillsCreate200Response( + id = '', + statement = '', + type = 'skill', + status = 'active', + ) + """ + + def testSkillsCreate200Response(self): + """Test SkillsCreate200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_create_many_request.py b/packages/open-api-lcn-clients/python-client/test/test_skills_create_many_request.py new file mode 100644 index 0000000000..a473c19675 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_create_many_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_create_many_request import SkillsCreateManyRequest + +class TestSkillsCreateManyRequest(unittest.TestCase): + """SkillsCreateManyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsCreateManyRequest: + """Test SkillsCreateManyRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsCreateManyRequest` + """ + model = SkillsCreateManyRequest() + if include_optional: + return SkillsCreateManyRequest( + framework_id = '', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + parent_id = '' + ) + else: + return SkillsCreateManyRequest( + framework_id = '', + skills = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ) + ], + ) + """ + + def testSkillsCreateManyRequest(self): + """Test SkillsCreateManyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_create_request.py b/packages/open-api-lcn-clients/python-client/test/test_skills_create_request.py new file mode 100644 index 0000000000..4b93c07fa5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_create_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_create_request import SkillsCreateRequest + +class TestSkillsCreateRequest(unittest.TestCase): + """SkillsCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsCreateRequest: + """Test SkillsCreateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsCreateRequest` + """ + model = SkillsCreateRequest() + if include_optional: + return SkillsCreateRequest( + framework_id = '', + skill = openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ), + parent_id = '' + ) + else: + return SkillsCreateRequest( + framework_id = '', + skill = openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', + children = [ + openapi_client.models.__schema0.__schema0( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active', ) + ], ), + ) + """ + + def testSkillsCreateRequest(self): + """Test SkillsCreateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_delete200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_delete200_response.py new file mode 100644 index 0000000000..abbe3a9274 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_delete200_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_delete200_response import SkillsDelete200Response + +class TestSkillsDelete200Response(unittest.TestCase): + """SkillsDelete200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsDelete200Response: + """Test SkillsDelete200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsDelete200Response` + """ + model = SkillsDelete200Response() + if include_optional: + return SkillsDelete200Response( + success = True, + deleted_count = 1.337 + ) + else: + return SkillsDelete200Response( + success = True, + deleted_count = 1.337, + ) + """ + + def testSkillsDelete200Response(self): + """Test SkillsDelete200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_get_framework_skill_tree200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_get_framework_skill_tree200_response.py new file mode 100644 index 0000000000..30cb400a67 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_get_framework_skill_tree200_response.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_get_framework_skill_tree200_response import SkillsGetFrameworkSkillTree200Response + +class TestSkillsGetFrameworkSkillTree200Response(unittest.TestCase): + """SkillsGetFrameworkSkillTree200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsGetFrameworkSkillTree200Response: + """Test SkillsGetFrameworkSkillTree200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsGetFrameworkSkillTree200Response` + """ + model = SkillsGetFrameworkSkillTree200Response() + if include_optional: + return SkillsGetFrameworkSkillTree200Response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ] + ) + else: + return SkillsGetFrameworkSkillTree200Response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], + ) + """ + + def testSkillsGetFrameworkSkillTree200Response(self): + """Test SkillsGetFrameworkSkillTree200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_get_full_skill_tree200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_get_full_skill_tree200_response.py new file mode 100644 index 0000000000..be45d26343 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_get_full_skill_tree200_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_get_full_skill_tree200_response import SkillsGetFullSkillTree200Response + +class TestSkillsGetFullSkillTree200Response(unittest.TestCase): + """SkillsGetFullSkillTree200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsGetFullSkillTree200Response: + """Test SkillsGetFullSkillTree200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsGetFullSkillTree200Response` + """ + model = SkillsGetFullSkillTree200Response() + if include_optional: + return SkillsGetFullSkillTree200Response( + skills = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ] + ) + else: + return SkillsGetFullSkillTree200Response( + skills = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], + ) + """ + + def testSkillsGetFullSkillTree200Response(self): + """Test SkillsGetFullSkillTree200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill200_response.py new file mode 100644 index 0000000000..56e64d2104 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill200_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_get_skill200_response import SkillsGetSkill200Response + +class TestSkillsGetSkill200Response(unittest.TestCase): + """SkillsGetSkill200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsGetSkill200Response: + """Test SkillsGetSkill200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsGetSkill200Response` + """ + model = SkillsGetSkill200Response() + if include_optional: + return SkillsGetSkill200Response( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '' + ) + else: + return SkillsGetSkill200Response( + id = '', + statement = '', + type = 'skill', + status = 'active', + ) + """ + + def testSkillsGetSkill200Response(self): + """Test SkillsGetSkill200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill_path200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill_path200_response.py new file mode 100644 index 0000000000..db9dbd1918 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_get_skill_path200_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_get_skill_path200_response import SkillsGetSkillPath200Response + +class TestSkillsGetSkillPath200Response(unittest.TestCase): + """SkillsGetSkillPath200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsGetSkillPath200Response: + """Test SkillsGetSkillPath200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsGetSkillPath200Response` + """ + model = SkillsGetSkillPath200Response() + if include_optional: + return SkillsGetSkillPath200Response( + path = [ + openapi_client.models.skills_create_200_response.skills_create_200_response( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', ) + ] + ) + else: + return SkillsGetSkillPath200Response( + path = [ + openapi_client.models.skills_create_200_response.skills_create_200_response( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', ) + ], + ) + """ + + def testSkillsGetSkillPath200Response(self): + """Test SkillsGetSkillPath200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_list_skill_tags200_response_inner.py b/packages/open-api-lcn-clients/python-client/test/test_skills_list_skill_tags200_response_inner.py new file mode 100644 index 0000000000..fb83d4ce94 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_list_skill_tags200_response_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_list_skill_tags200_response_inner import SkillsListSkillTags200ResponseInner + +class TestSkillsListSkillTags200ResponseInner(unittest.TestCase): + """SkillsListSkillTags200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsListSkillTags200ResponseInner: + """Test SkillsListSkillTags200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsListSkillTags200ResponseInner` + """ + model = SkillsListSkillTags200ResponseInner() + if include_optional: + return SkillsListSkillTags200ResponseInner( + id = '', + name = '0', + slug = '0', + created_at = '', + updated_at = '' + ) + else: + return SkillsListSkillTags200ResponseInner( + id = '', + name = '0', + slug = '0', + ) + """ + + def testSkillsListSkillTags200ResponseInner(self): + """Test SkillsListSkillTags200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request.py b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request.py new file mode 100644 index 0000000000..dd606949f0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_search_framework_skills_request import SkillsSearchFrameworkSkillsRequest + +class TestSkillsSearchFrameworkSkillsRequest(unittest.TestCase): + """SkillsSearchFrameworkSkillsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsSearchFrameworkSkillsRequest: + """Test SkillsSearchFrameworkSkillsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsSearchFrameworkSkillsRequest` + """ + model = SkillsSearchFrameworkSkillsRequest() + if include_optional: + return SkillsSearchFrameworkSkillsRequest( + id = '', + query = None, + limit = 1, + cursor = '' + ) + else: + return SkillsSearchFrameworkSkillsRequest( + id = '', + query = None, + ) + """ + + def testSkillsSearchFrameworkSkillsRequest(self): + """Test SkillsSearchFrameworkSkillsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query.py b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query.py new file mode 100644 index 0000000000..b84e6a7bd0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_search_framework_skills_request_query import SkillsSearchFrameworkSkillsRequestQuery + +class TestSkillsSearchFrameworkSkillsRequestQuery(unittest.TestCase): + """SkillsSearchFrameworkSkillsRequestQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsSearchFrameworkSkillsRequestQuery: + """Test SkillsSearchFrameworkSkillsRequestQuery + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsSearchFrameworkSkillsRequestQuery` + """ + model = SkillsSearchFrameworkSkillsRequestQuery() + if include_optional: + return SkillsSearchFrameworkSkillsRequestQuery( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_1.boost_searchSkillsAvailableForBoost_request_query_anyOf_1( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + id = None, + statement = None, + description = None, + code = None, + type = None, + status = None + ) + else: + return SkillsSearchFrameworkSkillsRequestQuery( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_1.boost_searchSkillsAvailableForBoost_request_query_anyOf_1( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + ) + """ + + def testSkillsSearchFrameworkSkillsRequestQuery(self): + """Test SkillsSearchFrameworkSkillsRequestQuery""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query_any_of.py new file mode 100644 index 0000000000..fa5bbea751 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_search_framework_skills_request_query_any_of.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_search_framework_skills_request_query_any_of import SkillsSearchFrameworkSkillsRequestQueryAnyOf + +class TestSkillsSearchFrameworkSkillsRequestQueryAnyOf(unittest.TestCase): + """SkillsSearchFrameworkSkillsRequestQueryAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsSearchFrameworkSkillsRequestQueryAnyOf: + """Test SkillsSearchFrameworkSkillsRequestQueryAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsSearchFrameworkSkillsRequestQueryAnyOf` + """ + model = SkillsSearchFrameworkSkillsRequestQueryAnyOf() + if include_optional: + return SkillsSearchFrameworkSkillsRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_1.boost_searchSkillsAvailableForBoost_request_query_anyOf_1( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ] + ) + else: + return SkillsSearchFrameworkSkillsRequestQueryAnyOf( + var_or = [ + openapi_client.models.boost_search_skills_available_for_boost_request_query_any_of_1.boost_searchSkillsAvailableForBoost_request_query_anyOf_1( + id = null, + statement = null, + description = null, + code = null, + type = null, + status = null, ) + ], + ) + """ + + def testSkillsSearchFrameworkSkillsRequestQueryAnyOf(self): + """Test SkillsSearchFrameworkSkillsRequestQueryAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_sync_framework_skills200_response.py b/packages/open-api-lcn-clients/python-client/test/test_skills_sync_framework_skills200_response.py new file mode 100644 index 0000000000..0db1f08a00 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_sync_framework_skills200_response.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_sync_framework_skills200_response import SkillsSyncFrameworkSkills200Response + +class TestSkillsSyncFrameworkSkills200Response(unittest.TestCase): + """SkillsSyncFrameworkSkills200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsSyncFrameworkSkills200Response: + """Test SkillsSyncFrameworkSkills200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsSyncFrameworkSkills200Response` + """ + model = SkillsSyncFrameworkSkills200Response() + if include_optional: + return SkillsSyncFrameworkSkills200Response( + framework = openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = openapi_client.models.skills_get_framework_skill_tree_200_response.skills_getFrameworkSkillTree_200_response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], ) + ) + else: + return SkillsSyncFrameworkSkills200Response( + framework = openapi_client.models.boost_get_boost_frameworks_200_response_records_inner.boost_getBoostFrameworks_200_response_records_inner( + id = '', + name = '', + description = '', + image = '', + source_uri = '', + status = 'active', + created_at = '', + updated_at = '', ), + skills = openapi_client.models.skills_get_framework_skill_tree_200_response.skills_getFrameworkSkillTree_200_response( + has_more = True, + cursor = '', + records = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + openapi_client.models.__schema1.__schema1( + id = '', + statement = '', + description = '', + code = '', + icon = '', + type = 'skill', + status = 'active', + framework_id = '', + created_at = '', + updated_at = '', + children = [ + + ], + has_children = True, + children_cursor = '', ) + ], + has_children = True, + children_cursor = '', ) + ], ), + ) + """ + + def testSkillsSyncFrameworkSkills200Response(self): + """Test SkillsSyncFrameworkSkills200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_skills_update_request.py b/packages/open-api-lcn-clients/python-client/test/test_skills_update_request.py new file mode 100644 index 0000000000..dd864ba680 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_skills_update_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.skills_update_request import SkillsUpdateRequest + +class TestSkillsUpdateRequest(unittest.TestCase): + """SkillsUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SkillsUpdateRequest: + """Test SkillsUpdateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SkillsUpdateRequest` + """ + model = SkillsUpdateRequest() + if include_optional: + return SkillsUpdateRequest( + framework_id = '', + statement = '', + description = '', + code = '', + icon = '', + type = '', + status = 'active' + ) + else: + return SkillsUpdateRequest( + framework_id = '', + ) + """ + + def testSkillsUpdateRequest(self): + """Test SkillsUpdateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response.py index e8c20bb63a..06904cd9be 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response.py @@ -63,12 +63,12 @@ def make_instance(self, include_optional) -> StorageResolve200Response: tag = '', aad = '', recipients = [ - openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner.boost_sendBoost_request_credential_anyOf_1_recipients_inner( - header = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header( + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( alg = '', iv = '', tag = '', - epk = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header_epk.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header_epk( + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( kty = '', crv = '', x = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of.py index af3b08cd64..214c0cc98e 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of.py @@ -63,12 +63,12 @@ def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOf: tag = '', aad = '', recipients = [ - openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner.boost_sendBoost_request_credential_anyOf_1_recipients_inner( - header = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header( + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( alg = '', iv = '', tag = '', - epk = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header_epk.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header_epk( + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( kty = '', crv = '', x = '', @@ -80,26 +80,30 @@ def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOf: apu = '', ), encrypted_key = '', ) ], - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + read = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read.storage_resolve_200_response_anyOf_anyOf_1_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ) ) else: @@ -115,26 +119,30 @@ def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOf: iv = '', ciphertext = '', tag = '', - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( + read = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read.storage_resolve_200_response_anyOf_anyOf_1_read( anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ), ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of.py index 5814a85cae..06e0f0a4de 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of.py @@ -35,51 +35,65 @@ def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf model = StorageResolve200ResponseAnyOfAnyOf() if include_optional: return StorageResolve200ResponseAnyOfAnyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( - anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ) + context = [ + null + ], + id = '', + type = None, + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None, + verifiable_credential = None, + holder = '', + protected = '', + iv = '', + ciphertext = '', + tag = '', + aad = '', + recipients = [ + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', ) + ] ) else: return StorageResolve200ResponseAnyOfAnyOf( - read = openapi_client.models.storage_resolve_200_response_any_of_any_of_read.storage_resolve_200_response_anyOf_anyOf_read( - anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - write = openapi_client.models.storage_resolve_200_response_any_of_any_of_write.storage_resolve_200_response_anyOf_anyOf_write( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), + context = [ + null + ], + type = None, + issuer = None, + credential_subject = None, + proof = None, + protected = '', + iv = '', + ciphertext = '', + tag = '', ) """ diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1.py new file mode 100644 index 0000000000..7a61e150c5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOf1 + +class TestStorageResolve200ResponseAnyOfAnyOf1(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1: + """Test StorageResolve200ResponseAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1` + """ + model = StorageResolve200ResponseAnyOfAnyOf1() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOf1( + read = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read.storage_resolve_200_response_anyOf_anyOf_1_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ) + ) + else: + return StorageResolve200ResponseAnyOfAnyOf1( + read = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read.storage_resolve_200_response_anyOf_anyOf_1_read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + write = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write.storage_resolve_200_response_anyOf_anyOf_1_write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOf1(self): + """Test StorageResolve200ResponseAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read.py new file mode 100644 index 0000000000..063ff7330d --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read import StorageResolve200ResponseAnyOfAnyOf1Read + +class TestStorageResolve200ResponseAnyOfAnyOf1Read(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1Read unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1Read: + """Test StorageResolve200ResponseAnyOfAnyOf1Read + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1Read` + """ + model = StorageResolve200ResponseAnyOfAnyOf1Read() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOf1Read( + anonymize = True, + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + } + ) + else: + return StorageResolve200ResponseAnyOfAnyOf1Read( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials.storage_resolve_200_response_anyOf_anyOf_1_read_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOf1Read(self): + """Test StorageResolve200ResponseAnyOfAnyOf1Read""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials.py new file mode 100644 index 0000000000..6c7f91a9af --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials import StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + +class TestStorageResolve200ResponseAnyOfAnyOf1ReadCredentials(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1ReadCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1ReadCredentials: + """Test StorageResolve200ResponseAnyOfAnyOf1ReadCredentials + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1ReadCredentials` + """ + model = StorageResolve200ResponseAnyOfAnyOf1ReadCredentials() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOf1ReadCredentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + } + ) + else: + return StorageResolve200ResponseAnyOfAnyOf1ReadCredentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_1_read_credentials_categories_value( + required = True, + default_enabled = True, ) + }, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOf1ReadCredentials(self): + """Test StorageResolve200ResponseAnyOfAnyOf1ReadCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py new file mode 100644 index 0000000000..605995f9d8 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_credentials_categories_value.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue + +class TestStorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue: + """Test StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue` + """ + model = StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue( + required = True, + default_enabled = True + ) + else: + return StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue( + required = True, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue(self): + """Test StorageResolve200ResponseAnyOfAnyOf1ReadCredentialsCategoriesValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_personal_value.py similarity index 52% rename from packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py rename to packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_personal_value.py index f0a1bde940..066de57d43 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials_categories_value.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_read_personal_value.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials_categories_value import StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue +from openapi_client.models.storage_resolve200_response_any_of_any_of1_read_personal_value import StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue -class TestStorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue(unittest.TestCase): - """StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue unit test stubs""" +class TestStorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue unit test stubs""" def setUp(self): pass @@ -25,26 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue: - """Test StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue: + """Test StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue` + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue` """ - model = StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue() + model = StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue() if include_optional: - return StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue( - required = True + return StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue( + required = True, + default_enabled = True ) else: - return StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue( + return StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue( required = True, ) """ - def testStorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue(self): - """Test StorageResolve200ResponseAnyOfAnyOfReadCredentialsCategoriesValue""" + def testStorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue(self): + """Test StorageResolve200ResponseAnyOfAnyOf1ReadPersonalValue""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write.py new file mode 100644 index 0000000000..727219e8d7 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write import StorageResolve200ResponseAnyOfAnyOf1Write + +class TestStorageResolve200ResponseAnyOfAnyOf1Write(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1Write unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1Write: + """Test StorageResolve200ResponseAnyOfAnyOf1Write + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1Write` + """ + model = StorageResolve200ResponseAnyOfAnyOf1Write() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOf1Write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + } + ) + else: + return StorageResolve200ResponseAnyOfAnyOf1Write( + credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_1_write_credentials.storage_resolve_200_response_anyOf_anyOf_1_write_credentials( + categories = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, ), + personal = { + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) + }, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOf1Write(self): + """Test StorageResolve200ResponseAnyOfAnyOf1Write""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write_credentials.py similarity index 51% rename from packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials.py rename to packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write_credentials.py index f0fffd920d..48e6fcd68a 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read_credentials.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of1_write_credentials.py @@ -14,10 +14,10 @@ import unittest -from openapi_client.models.storage_resolve200_response_any_of_any_of_read_credentials import StorageResolve200ResponseAnyOfAnyOfReadCredentials +from openapi_client.models.storage_resolve200_response_any_of_any_of1_write_credentials import StorageResolve200ResponseAnyOfAnyOf1WriteCredentials -class TestStorageResolve200ResponseAnyOfAnyOfReadCredentials(unittest.TestCase): - """StorageResolve200ResponseAnyOfAnyOfReadCredentials unit test stubs""" +class TestStorageResolve200ResponseAnyOfAnyOf1WriteCredentials(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOf1WriteCredentials unit test stubs""" def setUp(self): pass @@ -25,32 +25,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfReadCredentials: - """Test StorageResolve200ResponseAnyOfAnyOfReadCredentials + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOf1WriteCredentials: + """Test StorageResolve200ResponseAnyOfAnyOf1WriteCredentials include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfReadCredentials` + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOf1WriteCredentials` """ - model = StorageResolve200ResponseAnyOfAnyOfReadCredentials() + model = StorageResolve200ResponseAnyOfAnyOf1WriteCredentials() if include_optional: - return StorageResolve200ResponseAnyOfAnyOfReadCredentials( + return StorageResolve200ResponseAnyOfAnyOf1WriteCredentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) } ) else: - return StorageResolve200ResponseAnyOfAnyOfReadCredentials( + return StorageResolve200ResponseAnyOfAnyOf1WriteCredentials( categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) + 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_1_read_personal_value.storage_resolve_200_response_anyOf_anyOf_1_read_personal_value( + required = True, + default_enabled = True, ) }, ) """ - def testStorageResolve200ResponseAnyOfAnyOfReadCredentials(self): - """Test StorageResolve200ResponseAnyOfAnyOfReadCredentials""" + def testStorageResolve200ResponseAnyOfAnyOf1WriteCredentials(self): + """Test StorageResolve200ResponseAnyOfAnyOf1WriteCredentials""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of.py new file mode 100644 index 0000000000..cc3552563e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOf + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOf(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOf: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOf` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOf() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOf( + context = [ + null + ], + id = '', + type = None, + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None, + verifiable_credential = None, + holder = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOf( + context = [ + null + ], + type = None, + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOf(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..572439252f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOf1 + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOf1(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOf1: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOf1` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOf1() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1( + protected = '', + iv = '', + ciphertext = '', + tag = '', + aad = '', + recipients = [ + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', ) + ] + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1( + protected = '', + iv = '', + ciphertext = '', + tag = '', + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOf1(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py new file mode 100644 index 0000000000..6b0dcfabab --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner( + header = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '', ), + encrypted_key = '', + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py new file mode 100644 index 0000000000..1f931dd213 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader( + alg = '', + iv = '', + tag = '', + epk = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_1_recipients_inner_header_epk.storage_resolve_200_response_anyOf_anyOf_anyOf_1_recipients_inner_header_epk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '', ), + kid = '', + apv = '', + apu = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader( + alg = '', + iv = '', + tag = '', + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeader""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py new file mode 100644 index 0000000000..26ee6d8a70 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of1_recipients_inner_header_epk import StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk( + kty = '', + crv = '', + x = '', + y = '', + n = '', + d = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk( + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOf1RecipientsInnerHeaderEpk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of.py new file mode 100644 index 0000000000..9ced26c8ed --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..7cc7d7a724 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1( + context = [ + null + ], + id = '', + type = None, + verifiable_credential = None, + holder = '', + proof = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1( + context = [ + null + ], + type = None, + proof = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py new file mode 100644 index 0000000000..028807c12f --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of1_verifiable_credential import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOf1VerifiableCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py new file mode 100644 index 0000000000..27f3a4ec68 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py new file mode 100644 index 0000000000..bd3ac23fbb --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of1 import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1( + context = [ + null + ], + id = '', + type = [ + '' + ], + issuer = None, + credential_subject = None, + refresh_service = None, + credential_schema = None, + issuance_date = '', + expiration_date = '', + credential_status = None, + name = '', + description = '', + valid_from = '', + valid_until = '', + status = None, + terms_of_use = None, + evidence = None, + proof = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1( + context = [ + null + ], + type = [ + '' + ], + issuer = None, + credential_subject = None, + proof = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOf1""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py new file mode 100644 index 0000000000..7d725378cf --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer( + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py new file mode 100644 index 0000000000..d695dd69c5 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf( + id = '', + type = None, + name = '', + url = '', + phone = '', + description = '', + endorsement = [ + null + ], + image = None, + email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi', + address = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_address( + type = null, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ), ), + other_identifier = [ + openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_otherIdentifier_inner( + type = null, + identifier = '', + identifier_type = null, ) + ], + official = '', + parent_org = None, + family_name = '', + given_name = '', + additional_name = '', + patronymic_name = '', + honorific_prefix = '', + honorific_suffix = '', + family_name_prefix = '', + date_of_birth = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf( + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py new file mode 100644 index 0000000000..7761e9dec0 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress( + type = None, + address_country = '', + address_country_code = '', + address_region = '', + address_locality = '', + street_address = '', + post_office_box_number = '', + postal_code = '', + geo = openapi_client.models.storage_resolve_200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.storage_resolve_200_response_anyOf_anyOf_anyOf_anyOf_anyOf_issuer_anyOf_address_geo( + type = null, + latitude = 1.337, + longitude = 1.337, ) + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress( + type = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddress""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py new file mode 100644 index 0000000000..6a29c3c0a2 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_address_geo import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337 + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo( + type = None, + latitude = 1.337, + longitude = 1.337, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfAddressGeo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py new file mode 100644 index 0000000000..f93a4eab57 --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage( + id = '', + type = '', + caption = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage( + id = '', + type = '', + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py new file mode 100644 index 0000000000..f93accd5ca --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_image_any_of import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf( + id = '', + type = '', + caption = '' + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf( + id = '', + type = '', + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfImageAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py new file mode 100644 index 0000000000..6d78dc8b3e --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_resolve200_response_any_of_any_of_any_of_any_of_any_of_issuer_any_of_other_identifier_inner import StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner + +class TestStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner(unittest.TestCase): + """StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner: + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner` + """ + model = StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner() + if include_optional: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None + ) + else: + return StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner( + type = None, + identifier = '', + identifier_type = None, + ) + """ + + def testStorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner(self): + """Test StorageResolve200ResponseAnyOfAnyOfAnyOfAnyOfAnyOfIssuerAnyOfOtherIdentifierInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read.py deleted file mode 100644 index 6b7488761e..0000000000 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_read.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - LearnCloud Network API - - API for interacting with LearnCloud Network - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from openapi_client.models.storage_resolve200_response_any_of_any_of_read import StorageResolve200ResponseAnyOfAnyOfRead - -class TestStorageResolve200ResponseAnyOfAnyOfRead(unittest.TestCase): - """StorageResolve200ResponseAnyOfAnyOfRead unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfRead: - """Test StorageResolve200ResponseAnyOfAnyOfRead - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfRead` - """ - model = StorageResolve200ResponseAnyOfAnyOfRead() - if include_optional: - return StorageResolve200ResponseAnyOfAnyOfRead( - anonymize = True, - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - } - ) - else: - return StorageResolve200ResponseAnyOfAnyOfRead( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, - ) - """ - - def testStorageResolve200ResponseAnyOfAnyOfRead(self): - """Test StorageResolve200ResponseAnyOfAnyOfRead""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_write.py b/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_write.py deleted file mode 100644 index 87ab658e80..0000000000 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_resolve200_response_any_of_any_of_write.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - LearnCloud Network API - - API for interacting with LearnCloud Network - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from openapi_client.models.storage_resolve200_response_any_of_any_of_write import StorageResolve200ResponseAnyOfAnyOfWrite - -class TestStorageResolve200ResponseAnyOfAnyOfWrite(unittest.TestCase): - """StorageResolve200ResponseAnyOfAnyOfWrite unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StorageResolve200ResponseAnyOfAnyOfWrite: - """Test StorageResolve200ResponseAnyOfAnyOfWrite - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StorageResolve200ResponseAnyOfAnyOfWrite` - """ - model = StorageResolve200ResponseAnyOfAnyOfWrite() - if include_optional: - return StorageResolve200ResponseAnyOfAnyOfWrite( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - } - ) - else: - return StorageResolve200ResponseAnyOfAnyOfWrite( - credentials = openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials.storage_resolve_200_response_anyOf_anyOf_read_credentials( - categories = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, ), - personal = { - 'key' : openapi_client.models.storage_resolve_200_response_any_of_any_of_read_credentials_categories_value.storage_resolve_200_response_anyOf_anyOf_read_credentials_categories_value( - required = True, ) - }, - ) - """ - - def testStorageResolve200ResponseAnyOfAnyOfWrite(self): - """Test StorageResolve200ResponseAnyOfAnyOfWrite""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item.py b/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item.py index 9a8504a19c..c96d7c8255 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item.py +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item.py @@ -63,12 +63,12 @@ def make_instance(self, include_optional) -> StorageStoreRequestItem: tag = '', aad = '', recipients = [ - openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner.boost_sendBoost_request_credential_anyOf_1_recipients_inner( - header = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header( + openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner.credential_sendCredential_request_credential_anyOf_1_recipients_inner( + header = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header( alg = '', iv = '', tag = '', - epk = openapi_client.models.boost_send_boost_request_credential_any_of_1_recipients_inner_header_epk.boost_sendBoost_request_credential_anyOf_1_recipients_inner_header_epk( + epk = openapi_client.models.credential_send_credential_request_credential_any_of_1_recipients_inner_header_epk.credential_sendCredential_request_credential_anyOf_1_recipients_inner_header_epk( kty = '', crv = '', x = '', diff --git a/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item_any_of_any_of.py b/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item_any_of_any_of.py new file mode 100644 index 0000000000..13c0606a6b --- /dev/null +++ b/packages/open-api-lcn-clients/python-client/test/test_storage_store_request_item_any_of_any_of.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + LearnCloud Network API + + API for interacting with LearnCloud Network + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.storage_store_request_item_any_of_any_of import StorageStoreRequestItemAnyOfAnyOf + +class TestStorageStoreRequestItemAnyOfAnyOf(unittest.TestCase): + """StorageStoreRequestItemAnyOfAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StorageStoreRequestItemAnyOfAnyOf: + """Test StorageStoreRequestItemAnyOfAnyOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `StorageStoreRequestItemAnyOfAnyOf` + """ + model = StorageStoreRequestItemAnyOfAnyOf() + if include_optional: + return StorageStoreRequestItemAnyOfAnyOf( + context = [ + null + ], + id = '', + type = None, + verifiable_credential = None, + holder = '', + proof = None + ) + else: + return StorageStoreRequestItemAnyOfAnyOf( + context = [ + null + ], + type = None, + proof = None, + ) + """ + + def testStorageStoreRequestItemAnyOfAnyOf(self): + """Test StorageStoreRequestItemAnyOfAnyOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/open-api-lcn-clients/python-client/test/test_universal_inbox_api.py b/packages/open-api-lcn-clients/python-client/test/test_universal_inbox_api.py index ff52e2e9c5..ea44c1c1ff 100644 --- a/packages/open-api-lcn-clients/python-client/test/test_universal_inbox_api.py +++ b/packages/open-api-lcn-clients/python-client/test/test_universal_inbox_api.py @@ -26,6 +26,34 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_inbox_approve_guardian_request(self) -> None: + """Test case for inbox_approve_guardian_request + + Approve Guardian Request + """ + pass + + def test_inbox_approve_guardian_request_by_path(self) -> None: + """Test case for inbox_approve_guardian_request_by_path + + Approve Guardian Request (GET) + """ + pass + + def test_inbox_claim(self) -> None: + """Test case for inbox_claim + + Claim Universal Inbox Credential + """ + pass + + def test_inbox_finalize(self) -> None: + """Test case for inbox_finalize + + Finalize Universal Inbox Credentials + """ + pass + def test_inbox_get_inbox_credential(self) -> None: """Test case for inbox_get_inbox_credential @@ -47,6 +75,13 @@ def test_inbox_issue(self) -> None: """ pass + def test_inbox_send_guardian_approval_email(self) -> None: + """Test case for inbox_send_guardian_approval_email + + Send Guardian Approval Email + """ + pass + if __name__ == '__main__': unittest.main()